@extends('layouts.report_pdf') @section('title') {{__('Laboratory report')}}-{{$data['laboratory']['id']}}-{{date('Y-m-d')}} @endsection @section('content')
{{-- --}}
|
{{__('Laboratory report')}} |
{{__('Laboratory')}} : {{$data['laboratory']['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']))}} |
|---|
| {{__('Purchase invoices')}} | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| # | {{__('Date')}} | {{__('Patient Name')}} | {{__('Tests')}} | {{--{{__('Subtotal')}} | {{__('Discount')}} | {{__('Tax')}} | --}}{{__('Total')}} | {{__('Paid')}} | {{__('Due')}} | ||||||
| {{$invoice['id']}} | {{date('Y-m-d H:i',strtotime($invoice['created_at']))}} | @if(isset($invoice['patient'])) {{$invoice['patient']['name']}} @endif |
|
{{-- {{$invoice['subtotal']}} | {{$invoice['discount']}} | {{$invoice['tax']}} | --}}{{format_money($invoice['total'])}} | {{format_money($invoice['paid'])}} | {{format_money($invoice['due'])}} | ||||||
| {{__('Summary')}} | {{format_money(round($data['sales_total'],2))}} | {{format_money(round($data['sales_paid'],2))}} | {{format_money(round($data['sales_due'],2))}} | ||||||||||||
| {{__('Sales invoices')}} | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| # | {{__('Date')}} | {{__('Patient Name')}} | {{__('Tests')}} | {{__('Total')}} | {{__('Paid')}} | {{__('Due')}} | ||||
| {{$invoice['id']}} | {{date('Y-m-d H:i',strtotime($invoice['created_at']))}} | @if(isset($invoice['patient'])) {{$invoice['patient']['name']}} @endif |
|
@if(count($invoice['laboratory_costs'])) {{format_money($invoice['laboratory_costs'][0]['total'])}} @endif | @if(count($invoice['laboratory_costs'])) {{format_money($invoice['laboratory_costs'][0]['paid'])}} @endif | @if(count($invoice['laboratory_costs'])) {{format_money($invoice['laboratory_costs'][0]['due'])}} @endif | ||||
| {{__('Summary')}} | {{format_money(round($data['purchase_total'],2))}} | {{format_money(round($data['purchase_paid'],2))}} | {{format_money(round($data['purchase_due'],2))}} | |||||||
| {{__('Payouts')}} | |||
|---|---|---|---|
| {{__('Invoice')}} | {{__('Date')}} | {{__('Amount')}} | {{__('Payment method')}} |
| {{$payment['invoice_id']}} | {{$payment['date']}} | {{format_money($payment['amount'])}} | @if(isset($payment['payment_method'])) {{$payment['payment_method']['name']}} @endif |
| {{__('Payments')}} | |||
|---|---|---|---|
| {{__('Invoice')}} | {{__('Date')}} | {{__('Amount')}} | {{__('Payment method')}} |
| {{$payout['invoice_id']}} | {{$payout['date']}} | {{format_money($payout['amount'])}} | @if(isset($payout['payment_method'])) {{$payout['payment_method']['name']}} @endif |
| {{__('Summary')}} | |
|---|---|
| {{__('Purchases')}} | |
| {{__('Total')}} | {{format_money($data['sales_total'])}} |
| {{__('Paid')}} | {{format_money($data['sales_paid'])}} |
| {{__('Due')}} | {{format_money($data['sales_due'])}} |
| {{__('Sales')}} | |
| {{__('Total')}} | {{format_money($data['purchase_total'])}} |
| {{__('Paid')}} | {{format_money($data['purchase_paid'])}} |
| {{__('Due')}} | {{format_money($data['purchase_due'])}} |
| {{__('Your balance')}} | {{format_money($data['laboratory_balance'])}} |