@extends('layouts.report_pdf') @section('title') {{__('Company report')}}-{{$data['company']['name']}}-{{date('Y-m-d')}} @endsection @section('content')
{{-- --}} {{__('Company report')}} {{__('Company')}} : {{$data['company']['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('invoices')) @foreach($data['invoices'] as $invoice) @endforeach
{{__('Invoices')}}
# {{__('Date')}} {{__('Branch')}} {{__('Patient Name')}} {{__('Contract')}} {{__('Tests')}} {{__('Total')}}
{{$invoice['id']}} {{date('d-m-Y H:i',strtotime($invoice['created_at']))}} @if(isset($invoice['patient'])) {{$invoice['branch']['name_'.$locale]}} @endif @if(isset($invoice['patient'])) {{$invoice['patient']['name']}} @endif @if(isset($invoice['contract'])) {{$invoice['contract']['name']}} @endif @foreach($invoice['tests'] as $test) @endforeach @foreach($invoice['cultures'] as $culture) @endforeach @foreach($invoice['packages'] as $package) @endforeach
{{$test['test']['name']}} {{$test['price']}}
{{$culture['culture']['name']}} {{$culture['price']}}
{{$package['package']['name']}} {{$package['price']}}
{{$invoice['total']}}
@endif @if(count($data['tests_statistics'])&&request()->has('tests_statistics')) @if(count($data['tests_statistics'])==0) @endif @foreach($data['tests_statistics'] as $test) @endforeach
{{__('Tests')}}
{{__('Name')}} {{__('Count')}} {{__('Total')}}
{{__('No data available')}}
{{$test['test_name']}} {{$test['count']}} {{$test['total']}}
@endif @if(count($data['cultures_statistics'])&&request()->has('cultures_statistics')) @if(count($data['cultures_statistics'])==0) @endif @foreach($data['cultures_statistics'] as $culture) @endforeach
{{__('Cultures')}}
{{__('Name')}} {{__('Count')}} {{__('Total')}}
{{__('No data available')}}
{{$culture['culture_name']}} {{$culture['count']}} {{$culture['total']}}
@endif @if(count($data['packages_statistics'])&&request()->has('packages_statistics')) @if(count($data['packages_statistics'])==0) @endif @foreach($data['packages_statistics'] as $package) @endforeach
{{__('Packages')}}
{{__('Name')}} {{__('Count')}} {{__('Total')}}
{{__('No data available')}}
{{$package['package_name']}} {{$package['count']}} {{$package['total']}}
@endif @if(request()->has('summary'))
{{__('Summary')}}
{{__('Total')}} {{$data['total']}}
@endif @endsection