@extends('layouts.receipt_pdf') @section('title') @if($invoice['quotation']) {{'quotation_'.$invoice['barcode'].'_'.date('d-m-Y_H-i',strtotime($invoice['created_at'])).'.pdf'}} @else {{'receipt_'.$invoice['barcode'].'_'.date('d-m-Y_H-i',strtotime($invoice['created_at'])).'.pdf'}} @endif @endsection @section('content') @php $total_saved=0; $total_original=0; @endphp
@if(isset($receipt_settings['show_tests']) && $receipt_settings['show_tests']) @foreach($invoice['tests'] as $test) @endforeach @foreach($invoice['cultures'] as $culture) @endforeach @foreach($invoice['packages'] as $package) @endforeach @endif @if($receipt_settings['summary']['show']) @if($total_saved||$invoice['p_c_discount']||$invoice['sample_collection_fees']||$invoice['tax']||$invoice['paid_points_amount']) @endif @if($total_saved>0) @endif @if($invoice['p_c_discount']) @endif @if($invoice['sample_collection_fees']) @endif @if($invoice['tax']) @endif @if($invoice['paid_points_amount']) @endif @if(auth()->guard('contract')->check()) @else @if($invoice['contract_payment_amount']) @endif @if(!$invoice['quotation']) @foreach($invoice['patient_payments'] as $payment) @endforeach @if($invoice['earned_points']) @endif @endif @endif @endif
{{__('Test')}} {{__('Price')}}
{{format_money($test['price_after_discount']+$saved)}}
{{format_money($culture['price_after_discount']+$saved)}}
{{format_money($package['price_after_discount']+$saved)}}
{{__('Subtotal')}} {{format_money($invoice['total']+$total_saved)}}
{{__('We saved you')}} {{format_money($total_saved)}}
{{__('Promo code discount')}} {{format_money($invoice['p_c_discount'])}}
{{__('Sample collection fees')}} {{format_money($invoice['sample_collection_fees'])}}
{{__('Tax')}} ({{round($invoice['tax_percentage'],2)}}%) {{format_money($invoice['tax'])}}
{{__('Points discount')}} {{format_money($invoice['paid_points_amount'])}}
{{__('Total')}} {{format_money($invoice['subtotal_2'])}}
{{__('Contract copayment')}} {{format_money($invoice['contract_payment_amount'])}}
{{__('Contract paid')}} {{format_money($invoice['contract_paid'])}}
{{__('Contract due')}} {{format_money($invoice['contract_due'])}}
{{__('Total')}} {{format_money($invoice['total'])}}
{{__('Copayment')}} {{format_money($invoice['patient_payment_total'])}}
{{__('Paid')}} {{format_money($invoice['patient_paid'])}}
{{$payment['payment_method']['name']}}

{{$payment['date']}}

{{format_money($payment['amount'])}}
{{__('Due')}} {{ format_money($invoice['contract'] ? $invoice['patient_due'] : $invoice['due']) }}
{{__('You have earned')}} {{format_money($invoice['earned_points'])}} {{__('points')}}
{{__('Your points balance has became')}} {{format_money($invoice['patient']['points_balance'])}} {{__('points')}}
@endsection