{{__('Patient details')}}

{{__('Avatar')}}
{{--
--}}
{{--
--}}
{{--
--}}
{{__('Card photo')}}
{{-- --}}
@if(isset($invoice)&&isset($invoice['model_no_image'])) @endif
@can('edit_referral') @endcan @can('create_referral') @endcan
@if($current_branch['branch']['lab_to_lab'])
@endif
{{--
--}}
@foreach($questions as $question) @endforeach
@if($question['type']=='checkbox')
@elseif($question['type']=='number') @elseif($question['type']=='date') @elseif($question['type']=='text') @elseif($question['type']=='select') @endif
@if(isset($invoice)) @foreach($invoice['invoice_uploads'] as $upload) @endforeach @endif @if(isset($booking)) @foreach($booking['invoice_uploads'] as $upload) @endforeach @endif
{{__('Name')}} {{__('File')}}
@if(setting('subscription')['upload_google_drive']) @if($upload['type']=='image') @else @endif @else @if($upload['type']=='image') @else @endif @endif
@if(setting('subscription')['upload_google_drive']) @if($upload['type']=='image') @else @endif @else @if($upload['type']=='image') @else @endif @endif
{{__('Tests')}}
@if(isset($invoice)) {{count($invoice['all_tests'])+count($invoice['all_cultures'])}} @else 0 @endif
@if(isset($invoice)) @foreach($invoice['parent_tests'] as $parent_test) @endforeach @foreach($invoice['other_tests'] as $test) @endforeach @foreach($invoice['cultures'] as $culture) @endforeach @foreach($invoice['packages'] as $package) @endforeach @endif
{{__('Name')}} {{__('Patient copayment')}} {{__('Contract copayment')}} {{__('Price')}}
{{$parent_test['test']['name']}}
@foreach($parent_test['invoice_childs'] as $child) @endforeach
{{__('Test')}} {{__('Patient copayment')}} {{__('Contract copayment')}} {{__('Price')}}
{{$child['test']['name']}} {{format_money($child['price'])}} @can('delete_invoice_test') @endcan
{{format_money($parent_test['price'])}} @can('delete_invoice_test') @endcan
{{$test['test']['name']}}
{{format_money($test['price'])}} @can('delete_invoice_test') @endcan
{{$culture['culture']['name']}}
{{format_money($culture['price'])}} @can('delete_invoice_test') @endcan
{{$package['package']['name']}}
{{count($package['tests'])+count($package['cultures'])}}
{{__('Tests')}}
@foreach($package['tests'] as $test) @endforeach @foreach($package['cultures'] as $culture) @endforeach
{{$test['test']['name']}}
{{$culture['culture']['name']}}
{{count($package['tests'])+count($package['cultures'])}}
{{__('Tests')}}
@foreach($package['tests'] as $test) @endforeach @foreach($package['cultures'] as $culture) @endforeach
{{$test['test']['name']}}
{{$culture['culture']['name']}}
{{format_money($package['price'])}} @can('delete_invoice_test') @endcan
{{__('Payments')}}
@can('create_payment_method') @endcan
@php $payments_count=0; @endphp @if(isset($invoice)&&!isset($clone)) @foreach($invoice['patient_payments'] as $payment) @if( auth()->guard('admin')->user()->can('edit_other_payment_invoice')|| (auth()->guard('admin')->user()->can('edit_payment_invoice')&&$payment['user_id']==$current_user['id']) ) @else @endif @php $payments_count++; @endphp @endforeach @elseif(auth()->guard('admin')->user()->can('add_payment_invoice')) @php $payments_count++; @endphp @endif
{{__('Cashier')}} {{__('Date')}} {{__('Amount')}} {{__('Payment method')}} {{__('Transaction ID')}} @can('add_payment_invoice') @endcan
@if(isset($payment['user'])) {{$payment['user']['name']}} @endif
@if( ( auth()->guard('admin')->user()->can('edit_other_payment_invoice') || (auth()->guard('admin')->user()->can('edit_payment_invoice')&&$payment['user_id']==$current_user['id']) ) && auth()->guard('admin')->user()->can('edit_payment_date_invoice') ) @else {{$payment['date']}} @endif
{{$payment['amount']}}
@if(isset($payment['payment_method'])) {{$payment['payment_method']['name']}} @endif
{{$payment['kent_id']}}
@if(auth()->guard('admin')->user()->can('delete_other_payment_invoice')||(auth()->guard('admin')->user()->can('delete_payment_invoice')&&$current_user['id']==$payment['user_id'])) @endcan
{{$current_user['name']}} @if(auth()->guard('admin')->user()->can('edit_payment_date_invoice'))
@else {{now()->format('Y-m-d H:i')}} @endif

{{__('Invoice summary')}}

@if(isset($invoice)&&isset($invoice['promo_code']))
@else
@endif
@if(isset($invoice)&&$invoice['p_c_discount_percentage']) {{__('A percentage discount applied of')}} {{$invoice['p_c_discount_percentage']}}% {{__('with amount of')}} {{$invoice['p_c_discount']}} @else {{__('A percentage discount applied of')}} % {{__('with amount of')}} @endif
{{--
--}}
@if(!isset($invoice)) @endif
{{-- Prisma offers --}} {{-- @php $offers=\App\Models\Offer::with('tests.offerable') ->where('active',true) ->get(); @endphp
@foreach($offers as $offer)
@foreach($offer['tests'] as $test) @endforeach
@endforeach
--}} {{-- End Prisma offers --}}