@extends('layouts.report_pdf') @section('title') {{__('Delegate')}}-{{$data['sample_collector']['name']}}-{{date('Y-m-d')}} @endsection @section('content')
{{-- --}}
|
{{__('Delegate report')}} |
{{__('Delegate')}} : {{$data['sample_collector']['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']))}} |
| {{__('Invoices')}} | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| # | {{__('Status')}} | {{__('Date')}} | {{__('Laboratory')}} | {{__('Patient Name')}} | {{__('Tests')}} | {{__('Total')}} | {{__('Paid')}} | {{__('Due')}} | {{__('Commission')}} | {{__('Commission paid')}} | {{__('Commission balance')}} | ||||||
| {{$invoice['id']}} |
@if($invoice['canceled'])
|
{{date('d-m-Y H:i',strtotime($invoice['created_at']))}} | @if(isset($invoice['from_laboratory'])) {{$invoice['from_laboratory']['name']}} @endif | @if(isset($invoice['patient'])) {{$invoice['patient']['name']}} @endif |
|
{{format_money($invoice['total'])}} | {{format_money($invoice['paid'])}} | {{format_money($invoice['due'])}} | {{format_money($invoice['sample_collector_commission'])}} | {{format_money($invoice['sample_collector_paid'])}} | {{format_money($invoice['sample_collector_due'])}} | ||||||
| {{__('Payments')}} | |||||
|---|---|---|---|---|---|
| {{__('Laboratory')}} | {{__('Invoice no.')}} | {{__('Cashier')}} | {{__('Date')}} | {{__('Amount')}} | {{__('Payment method')}} |
| @if(isset($payment['invoice'])&&isset($payment['invoice']['from_laboratory'])) {{$payment['invoice']['from_laboratory']['name']}} @endif | {{$payment['invoice_id']}} | @if(isset($payment['user'])) {{$payment['user']['name']}} @endif | {{$payment['date']}} | {{format_money($payment['amount'])}} | @if(isset($payment['payment_method'])) {{$payment['payment_method']['name']}} @endif |
| {{__('Payouts')}} | |||
|---|---|---|---|
| # | {{__('Date')}} | {{__('Amount')}} | {{__('Payment method')}} |
| {{$payout['id']}} | {{date('d-m-Y',strtotime($payout['date']))}} | {{format_money($payout['amount'])}} | @if(isset($payout['payment_method'])) {{$payout['payment_method']['name']}} @endif |
| {{__('Tests')}} | ||
|---|---|---|
| {{__('Name')}} | {{__('Count')}} | {{__('Total')}} |
| {{$test['test_name']}} | {{$test['count']}} | {{$test['total']}} |
| {{__('Cultures')}} | ||
|---|---|---|
| {{__('Name')}} | {{__('Count')}} | {{__('Total')}} |
| {{$culture['culture_name']}} | {{$culture['count']}} | {{$culture['total']}} |
| {{__('Packages')}} | ||
|---|---|---|
| {{__('Name')}} | {{__('Count')}} | {{__('Total')}} |
| {{$package['package_name']}} | {{$package['count']}} | {{$package['total']}} |
| {{__('Summary')}} | |
|---|---|
| getLocale()=='ar') align="right" @else align="left" @endif>{{__('Invoices total')}} | {{format_money($data['total'])}} |
| getLocale()=='ar') align="right" @else align="left" @endif>{{__('Paid')}} | {{format_money($data['total'])}} |
| getLocale()=='ar') align="right" @else align="left" @endif>{{__('Due')}} | {{format_money($data['total'])}} |
| getLocale()=='ar') align="right" @else align="left" @endif>{{__('Total commissions')}} | {{format_money($data['commission'])}} |
| getLocale()=='ar') align="right" @else align="left" @endif>{{__('Commissions paid')}} | {{format_money($data['commission_paid'])}} |
| getLocale()=='ar') align="right" @else align="left" @endif>{{__('Commissions balance')}} | {{format_money($data['commission_due'])}} |