@extends('docs.master', ['title' => 'Payment Receipt '.$model->number]) @section('content')
Payment From:
{{$model->client->person}},
{{$model->client->company}},
{{$model->client->billing_address}}
 
Document Payment Receipt
Number: {{$model->number}}




 
@if($model->payment_reference) @endif @if($model->quotation) @endif
Payment Date: {{$model->payment_date}}
Payment Mode: {{$model->payment_mode}}
Payment Reference: {{$model->payment_reference}}
Quotation: {{$model->quotation->number}}
Currency: {{$model->currency->code}}
Amount Received: {{moneyFormat($model->amount_received, $model->currency, false)}}
Description
{{$model->description}}
@if($model->applied_amount && $model->applied_date)
Amount Applied to Invoices {{moneyFormat($model->applied_amount, $model->currency, false)}}
Amount Applied Date {{$model->applied_date}}

@foreach($model->items as $item) @endforeach
Invoice Date Invoice Number Invoice Total Amount Applied
{{$item->invoice->date}} {{$item->invoice->number}} {{moneyFormat($item->invoice->total, $model->currency, false)}} {{moneyFormat($item->amount_applied, $model->currency, false)}}
Amount Received {{moneyFormat($model->amount_received, $model->currency, false)}}
Amount Applied to Invoices {{moneyFormat($model->applied_amount, $model->currency, false)}}
@endif
@endsection