@if(!isset($invoice))
@endif
{{__('Payments')}}
@php $payments_count=0; @endphp @if(isset($invoice)) @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
{{$payment['date']}}
{{$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']}} {{now()->format('Y-m-d H:i')}}
@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')}}
@if(isset($invoice)) {{count($invoice['all_tests'])+count($invoice['all_cultures'])}} @else 0 @endif
{{$parent_test['test']['name']}}
@foreach($parent_test['invoice_childs'] as $child) @endforeach
{{__('Test')}} {{__('To lab')}} {{__('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')}} {{__('To lab')}}
{{$test['test']['name']}}
{{$culture['culture']['name']}}
{{format_money($package['price'])}} @can('delete_invoice_test') @endcan

{{__('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
{{--
--}}