@extends('front.inner-layout.app') @section('content')

My Invoice

@include('front.inner-layout.header')
{{-- @dump(request()->segment(4)) --}}
{{----}}

{{ ucwords( $client['name']. ' ' .$client['last_name'] ) }} @if(isset($invoiceSettings) && $invoiceSettings->client_email==1) {{ $client['email'] }} @endif @if(isset($invoiceSettings) && $invoiceSettings->client_address==1) {{ $client['address'] }} @endif @if(isset($invoiceSettings) && $invoiceSettings->phone_number==1) {{ $client['phone'] }} @endif

Number of sessions remaining : 4

@if($display == 1 && isset($phf) && isset($chf))

@endif
@if(isset($claim_details) && $claim_details->claim_number !='')

{{$claim_details->claim_number}}

@endif
@if(isset($cc) && $cc->expiry_date)

Conssesion card holder expiry {{ \Carbon\Carbon::parse($cc->expiry_date)->format('d/m/y')}}

@endif
Invoice number
Date
{{----}}
Location
Service Provider
Provider Number

@if($charge) @else @if( $blank_invoice_for_cancel_charge == 0 ) @if(empty($hasinvoice)) @endif @if(isset($invioceproduct)) @foreach($invioceproduct as $ip) @endforeach @endif @endif @endif
Item Code Cost Qty Total
- {{ $charge ?? '0.00' }} - {{ $charge ?? '0.00' }}
{{ $appointmentType->code }} {{ $appointmentType->fee }} 1 {{$appointmentType->fee}}
{{$ip->notes_product_name->product_code ?? ''}} {{$ip->price ?? ''}} {{$ip->quantity ?? ''}} {{number_format(($ip->quantity * $ip->price),2) ?? ''}}

Shipping

Discount

Total

@if( isset( $history ) && !empty( $history ) )
@foreach( $history as $key => $value )
@if( $value->paymentType != '' || $value->paymentType != null )

{{ $value->paymentType->name }} @if( $value->is_deposite_by_patient == 1 ) {{ $value->created_at->format('d/m/y') }} @endif

@endif

{{ number_format( $value->paid_amount, 2 ) }}

@endforeach
@endif

{{ (isset($oldinvoice) && $oldinvoice != '' && isset($oldinvoice->paymentType)) ? $oldinvoice->paymentType->name : 'Payment'}}

{{ (isset($oldinvoice) && $oldinvoice != '') ? $oldinvoice->amount_paid : '0.00'}}


Add payment


Current balance

{{(isset($oldinvoice) && $oldinvoice != '') ? number_format(($oldinvoice->total - $oldinvoice->amount_paid),2) : '0.00'}}

Process Payment


{{----}}
Save
@endsection @section('css') @endsection @section('js') @endsection