@extends('layouts.report_pdf') @section('title') {{__('Contract report')}}-{{$data['contract']['name']}}-{{date('Y-m-d')}} @endsection @section('content')
{{-- --}} {{__('Contract report')}} {{__('Contract')}} : {{$data['contract']['name']}}
{{__('Date')}} : {{date('Y-m-d H:i')}}
{{__('Date range')}} : {{date('Y-m-d H:i',strtotime($data['from']))}} - {{date('Y-m-d H:i',strtotime($data['to']))}}
@if(count($data['invoices'])&&request()->has('print.invoices')) {{-- --}} {{-- --}} @foreach($data['invoices'] as $invoice) {{-- --}} {{-- --}} @endforeach
{{__('Invoices')}}
# {{__('Status')}} {{__('Date')}} {{__('Patient Name')}}{{__('Company')}}{{__('Card ID')}} {{__('Approval No')}} {{__('Model No')}} {{__('Tests')}}{{__('Subtotal')}} {{__('Discount')}} {{__('Sample collection fees')}} {{__('Tax')}}{{__('Total')}} {{__('Contract copayment')}} {{__('Contract discount')}} {{__('Claim net amount')}} {{__('Paid')}} {{__('Due')}}
{{$invoice['id']}} @if($invoice['canceled']) @else @endif {{date('d-m-Y H:i',strtotime($invoice['created_at']))}} @if(isset($invoice['patient'])) {{$invoice['patient']['name']}} @endif {{$invoice['company']['name']}} @if(isset($invoice['patient'])) {{$invoice['patient']['insurance_card_id']}} @endif {{$invoice['approval_no']}} {{$invoice['model_no']}} @foreach($invoice['tests'] as $test) @if(isset($test['test'])) @endif @endforeach @foreach($invoice['cultures'] as $culture) @if(isset($culture['culture'])) @endif @endforeach @foreach($invoice['packages'] as $package) @endforeach
{{$test['test']['name']}} {{$test['price']}}
{{$culture['culture']['name']}} {{$culture['price']}}
@if(isset($package['package'])) {{$package['package']['name']}} @endif
    @foreach($package['tests'] as $test) @if(isset($test['test']))
  • {{$test['test']['name']}}
  • @endif @endforeach @foreach($package['cultures'] as $culture) @if(isset($culture['culture']))
  • {{$culture['culture']['name']}}
  • @endif @endforeach
{{$package['price']}}
{{$invoice['subtotal']}} {{$invoice['discount']}} {{$invoice['sample_collection_fees']}} {{$invoice['tax']}}{{format_money($invoice['subtotal_2'])}} {{format_money($invoice['contract_payment_amount'])}} {{format_money($invoice['contract_payment_discount'])}} {{format_money($invoice['contract_payment_total'])}} {{format_money($invoice['contract_paid'])}} {{format_money($invoice['contract_due'])}}
@endif @if(count($data['payments'])&&request()->has('print.payments')) @foreach($data['payments'] as $payment) @endforeach
{{__('Payments')}}
#{{__('Invoice')}} {{__('Date')}} {{__('Amount')}} {{__('Payment method')}}
{{$payment['invoice_id']}} {{$payment['date']}} {{format_money($payment['amount'])}} @if(isset($payment['payment_method'])) {{$payment['payment_method']['name']}} @endif
@endif @if(request()->has('print.summary'))
{{__('Summary')}}
{{__('Total')}} {{format_money($data['total'])}}
{{__('Copayment')}} {{format_money($data['copayment'])}}
{{__('Discount')}} {{format_money($data['discount'])}}
{{__('Claim net amount')}} {{format_money($data['claim_amount'])}}
{{__('Paid')}} {{format_money($data['paid'])}}
{{__('Due')}} {{format_money($data['due'])}}
@endif @endsection