@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')
@if($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($invoice['discount']||$invoice['p_c_discount']||$invoice['sample_collection_fees']||$invoice['tax']||$invoice['paid_points_amount']) @endif @if($invoice['discount']) @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')}} {{__('Discount')}} {{__('Tax')}} {{__('Total')}}
{{format_money($test['price'])}} {{format_money($test['discount'])}} {{format_money($test['tax'])}} {{format_money($test['price_after_tax'])}}
{{format_money($culture['price'])}} {{format_money($culture['discount'])}} {{format_money($culture['tax'])}} {{format_money($culture['price_after_tax'])}}
{{format_money($package['price'])}} {{format_money($package['discount'])}} {{format_money($package['tax'])}} {{format_money($package['price_after_tax'])}}
{{__('Subtotal')}} {{format_money($invoice['subtotal'])}}
{{__('Discount')}} {{format_money($invoice['discount'])}}
{{__('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['patient_due'])}}
{{__('You have earned')}} {{format_money($invoice['earned_points'])}} {{__('points')}}
{{__('Your points balance has became')}} {{format_money($invoice['patient']['points_balance'])}} {{__('points')}}
@endsection