@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

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

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

@endif

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

{{$claim_details->claim_number}}

@endif
Invoice number
Date
Location
Provider Number

@if($item) @foreach($item as $tid) @if( isset( $tid->appointment_type ) ) @endif @endforeach @endif @if($product) @foreach($product as $prod) @endforeach @endif @if($invioceproduct) @foreach($invioceproduct as $prod) @endforeach @endif
Item Code Cost Qty Total
{{ $tid->appointment_type->code }} {{ number_format($tid->app_cost,2) }} {{$tid->item_qty ?? '-'}} {{ number_format($total,2)}}
{{$prod->product_iteams->product_code}} {{number_format($prod->product_cost,2)}} {{$prod->deduct_quantity}} {{number_format(($prod->deduct_quantity * $prod->product_cost) , 2)}}
{{$prod->notes_product_name->product_code}} {{number_format($prod->price,2)}} {{$prod->quantity}} {{number_format(($prod->quantity * $prod->price) , 2)}}
Add a Service Add a Product

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'}}


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