@extends('layouts.main') @section('page-title') {{ __('Invoice Detail') }} @endsection @section('page-breadcrumb') {{ __('Invoice Detail') }} @endsection @push('css') @endpush @push('scripts') @endpush @section('page-action')
@endsection @section('content') @if (\Auth::user()->type == 'company') @if ($invoice->status != 4)

{{ __('Create Invoice') }}

{{ __('Created on ') }}{{ company_date_formate($invoice->issue_date, $invoice->created_by, $invoice->workspace) }}

@permission('invoice edit') {{ __('Edit') }} @endpermission
{{ __('Send Invoice') }}

@if ($invoice->status != 0) {{ __('Sent on') }} {{ company_date_formate($invoice->send_date, $invoice->created_by, $invoice->workspace) }} @else {{ __('Status') }} : {{ __('Not Sent') }} @endif

@stack('recurring_type') @if ($invoice->status == 0) @permission('invoice send') {{ __('Send') }} @endpermission @endif
{{ __('Get Paid') }}

{{ __('Status') }} : @if ($invoice->status == 0) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 1) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 2) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 3) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 4) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @endif

@if ($invoice->status != 0) @permission('invoice payment create') {{ __('Add Payment') }}
@endpermission @endif
@endif @endif @if ($invoice->status != 0 && \Auth::user()->type == 'company')
@permission('creditnote create') @if (!empty($customer) && $invoice->status != 4) @endif @endpermission @if ($invoice->status != 4) @endif
@else
@endif

{{ __('Invoice') }}

{{ __('Issue Date') }} : {{ company_date_formate($invoice->issue_date) }}

{{ __('Due Date') }} : {{ company_date_formate($invoice->due_date) }}

{{ \App\Models\Invoice::invoiceNumberFormat($invoice->invoice_id) }}

@if ( $invoice->invoice_module == 'taskly' || $invoice->invoice_module == 'account' || $invoice->invoice_module == 'cmms' || $invoice->invoice_module == 'cardealership' || $invoice->invoice_module == 'musicinstitute' || $invoice->invoice_module == 'rent')

{{ __('Name ') }} : {{ !empty($customer->name) ? $customer->name : '' }}

@if (!empty($customer->billing_name) && !empty($customer->billing_address) && !empty($customer->billing_zip))

{{ __('Billed To') }} : {{ !empty($customer->billing_name) ? $customer->billing_name : '' }} {{ !empty($customer->billing_address) ? $customer->billing_address : '' }} {{ !empty($customer->billing_city) ? $customer->billing_city . ' ,' : '' }} {{ !empty($customer->billing_state) ? $customer->billing_state . ' ,' : '' }} {{ !empty($customer->billing_zip) ? $customer->billing_zip : '' }} {{ !empty($customer->billing_country) ? $customer->billing_country : '' }}

{{ !empty($customer->billing_phone) ? $customer->billing_phone : '' }}

{{ __('Tax Number ') }} : {{ !empty($customer->tax_number) ? $customer->tax_number : '' }}

@endif

{{ __('Email ') }} : {{ !empty($customer->email) ? $customer->email : '' }}

@if (!empty($company_settings['invoice_shipping_display']) && ($company_settings['invoice_shipping_display'] == 'on')) @if (!empty($customer->shipping_name) && !empty($customer->shipping_address) && !empty($customer->shipping_zip))

{{ __('Shipped To') }} : {{ !empty($customer->shipping_name) ? $customer->shipping_name : '' }} {{ !empty($customer->shipping_address) ? $customer->shipping_address : '' }} {{ !empty($customer->shipping_city) ? $customer->shipping_city . ' ,' : '' }} {{ !empty($customer->shipping_state) ? $customer->shipping_state . ' ,' : '' }} {{ !empty($customer->shipping_zip) ? $customer->shipping_zip : '' }} {{ !empty($customer->shipping_country) ? $customer->shipping_country : '' }}

{{ !empty($customer->shipping_phone) ? $customer->shipping_phone : '' }}

{{ __('Tax Number ') }} : {{ !empty($customer->tax_number) ? $customer->tax_number : '' }}

@endif @endif
@endif @if ($invoice->invoice_module == 'mobileservice' && !empty($mobileCustomer))

{{ $mobileCustomer->customer_name }}

{{ $mobileCustomer->mobile_no }}

{{ $mobileCustomer->email }}

{{ $mobileCustomer->getServiceCreatedName->name }}

@if ($mobileCustomer->is_approve == 1) {{ __('Accepted') }} @else {{ __('Rejected') }} @endif
@endif @if ( ($invoice->invoice_module == 'legalcase' || $invoice->invoice_module == 'lms' || $invoice->invoice_module == 'sales' || $invoice->invoice_module == 'newspaper' || $invoice->invoice_module == 'RestaurantMenu' || $invoice->invoice_module == 'Fleet') && !empty($commonCustomer))

{{ $commonCustomer['name'] }}

{{ $commonCustomer['email'] }}
@endif @if ($invoice->invoice_module == 'childcare' && !empty($childCustomer))
{{ __('Child Detail') }}

{{ __('Name :') }} {{ $childCustomer['child']->first_name . ' ' . $childCustomer['child']->last_name }}
{{ __('Date Of Birth :') }} {{ $childCustomer['child']->dob }}
{{ __('Gender :') }} {{ $childCustomer['child']->gender }}
{{ __('Age :') }} {{ $childCustomer['child']->age }}
{{ __('Class :') }} {{ !empty($childCustomer['child']->class) ? $childCustomer['child']->class->class_level : '' }}

{{ __('Parent Detail') }}

{{ __('Name :') }} {{ $childCustomer['parent']->name }}
{{ __('Email : ') }} {{ $childCustomer['parent']->email }}
{{ __('Contact Number :') }} {{ $childCustomer['parent']->contact_number }}
{{ __('Address :') }} {{ $childCustomer['parent']->address }}

@endif @if ($invoice->invoice_module == 'vehicleinspection') @php $inspectionRequest = Workdo\VehicleInspectionManagement\Entities\InspectionRequest::find( $invoice->customer_id, ); $vehicle_details = Workdo\VehicleInspectionManagement\Entities\InspectionVehicle::find( $inspectionRequest->vehicle_id, ); @endphp @if (!empty($inspectionRequest->inspector_name) && !empty($inspectionRequest->inspector_email))

{{ __('Request Number') }} : {{ !empty($invoice->customer_id) ? \Workdo\VehicleInspectionManagement\Entities\InspectionRequest::inspectionRequestIdFormat($invoice->customer_id, $invoice->created_by, $invoice->workspace) : '' }}

{{ __('Billed To') }} : {{ !empty($inspectionRequest->inspector_name) ? $inspectionRequest->inspector_name : '' }}
{{ !empty($inspectionRequest->inspector_email) ? $inspectionRequest->inspector_email : '' }}

{{ __('Vehicle Details') }} :

{{ __('Model') }}
: {{ !empty($vehicle_details->model) ? $vehicle_details->model : '' }}
{{ __('ID Number') }}
: {{ !empty($vehicle_details->vehicle_id_number) ? $vehicle_details->vehicle_id_number : '' }}
{{ __('Current Mileage') }}
: {{ !empty($vehicle_details->mileage) ? $vehicle_details->mileage : '' }}
{{ __('Manufacture Year') }}
: {{ !empty($vehicle_details->manufacture_year) ? $vehicle_details->manufacture_year : '' }}

@endif @endif @if ($invoice->invoice_module == 'machinerepair' && !empty($invoice->customer_id)) @php $repair_request = \Workdo\MachineRepairManagement\Entities\MachineRepairRequest::find( $invoice->customer_id, ); $machine_details = \Workdo\MachineRepairManagement\Entities\Machine::find( $repair_request->machine_id, ); @endphp

{{ __('Request Number') }} :
{{ !empty($invoice->customer_id) ? \Workdo\MachineRepairManagement\Entities\MachineRepairRequest::machineRepairNumberFormat($invoice->customer_id, $invoice->created_by, $invoice->workspace) : '' }}

{{ __('Billed To') }} :
{{ !empty($repair_request->customer_name) ? $repair_request->customer_name : '' }}
{{ !empty($repair_request->customer_email) ? $repair_request->customer_email : '' }}

{{ __('Machine Details') }} :

{{ __('Name') }}
: {{ !empty($machine_details->name) ? $machine_details->name : '' }}
{{ __('Model') }}
: {{ !empty($machine_details->model) ? $machine_details->model : '' }}
{{ __('Manufacturer') }}
: {{ !empty($machine_details->manufacturer) ? $machine_details->manufacturer : '' }}

@endif
{{ __('Status') }} : @if ($invoice->status == 0) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 1) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 2) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 3) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 4) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @endif
@if (!empty($company_settings['invoice_qr_display']) && $company_settings['invoice_qr_display'] == 'on')
@if (module_is_active('Zatca'))
@include('zatca::zatca_qr_code', [ 'invoice_id' => $invoice->id, ])
@else
{!! DNS2D::getBarcodeHTML( route('pay.invoice', \Illuminate\Support\Facades\Crypt::encrypt($invoice->id)), 'QRCODE', 2, 2, ) !!}
@endif
@endif
@if (!empty($customFields) && count($invoice->customField) > 0)
@foreach ($customFields as $field)
{{ $field->name }} @if ($field->type == 'attachment') @else

{{ !empty($invoice->customField[$field->id]) ? $invoice->customField[$field->id] : '-' }}

@endif
@endforeach
@endif

{{ __('Item Summary') }}

@if ( $invoice->invoice_module == 'account' || $invoice->invoice_module == 'cmms' || $invoice->invoice_module == 'rent' || $invoice->invoice_module == 'machinerepair' || $invoice->invoice_module == 'musicinstitute' || $invoice->invoice_module == 'vehicleinspection') @elseif($invoice->invoice_module == 'taskly') @elseif($invoice->invoice_module == 'lms') @elseif($invoice->invoice_module == 'childcare') @elseif( $invoice->invoice_module == 'cardealership' || $invoice->invoice_module == 'sales' || $invoice->invoice_module == 'newspaper' || $invoice->invoice_module == 'mobileservice') @elseif($invoice->invoice_module == 'legalcase') @elseif($invoice->invoice_module == 'Fleet') @elseif($invoice->invoice_module == 'RestaurantMenu') @endif @if ( $invoice->invoice_module !== 'Fleet' && $invoice->invoice_module !== 'taskly' && $invoice->invoice_module !== 'childcare') @endif @if ($invoice->invoice_module != 'Fleet' && $invoice->invoice_module != 'childcare') @endif @php $totalQuantity = 0; $totalRate = 0; $totalTaxPrice = 0; $totalDiscount = 0; $commonSubtotal = 0; $taxesData = []; $TaxPrice_array = []; @endphp @foreach ($iteams as $key => $iteam) @php $commonSubtotal += $iteam->price; @endphp @if (!empty($iteam->tax)) @php if ($invoice->invoice_module == 'newspaper'){ $taxes = \Workdo\Newspaper\Entities\NewspaperTax::tax($iteam->tax); $totalQuantity += $iteam->quantity; $totalRate += $iteam->price; foreach ($taxes as $taxe) { $taxDataPrice = \Workdo\Newspaper\Entities\NewspaperTax::taxRate( $taxe->percentage, $iteam->price, $iteam->quantity ); if (array_key_exists($taxe->name, $taxesData)) { $taxesData[$taxe->name] = $taxesData[$taxe->name] + $taxDataPrice; } else { $taxesData[$taxe->name] = $taxDataPrice; } } } else{ $taxes = \App\Models\Invoice::tax($iteam->tax); $totalQuantity += $iteam->quantity; $totalRate += $iteam->price; $totalDiscount += $iteam->discount; foreach ($taxes as $taxe) { $taxDataPrice = \App\Models\Invoice::taxRate( $taxe->rate, $iteam->price, $iteam->quantity, $iteam->discount, ); if (array_key_exists($taxe->name, $taxesData)) { $taxesData[$taxe->name] = $taxesData[$taxe->name] + $taxDataPrice; } else { $taxesData[$taxe->name] = $taxDataPrice; } } } @endphp @elseif ($invoice->invoice_module == 'Fleet') @php $totalRate += $iteam->price; @endphp @endif @if ( $invoice->invoice_module == 'account' || $invoice->invoice_module == 'machinerepair' || $invoice->invoice_module == 'musicinstitute' || $invoice->invoice_module == 'vehicleinspection') @elseif ($invoice->invoice_module == 'taskly') @elseif ($invoice->invoice_module == 'cmms' || $invoice->invoice_module == 'rent') @elseif ($invoice->invoice_module == 'lms') @elseif ($invoice->invoice_module == 'childcare' || $invoice->invoice_module == 'legalcase') @elseif ( $invoice->invoice_module == 'cardealership' || $invoice->invoice_module == 'sales' || $invoice->invoice_module == 'newspaper' || $invoice->invoice_module == 'mobileservice') @elseif ($invoice->invoice_module == 'RestaurantMenu') @endif @if ($invoice->invoice_module == 'Fleet') @elseif($invoice->invoice_module == 'taskly' || $invoice->invoice_module == 'childcare') @else @endif @if ($invoice->invoice_module != 'Fleet' && $invoice->invoice_module != 'childcare') @endif @php $tr_tex = array_key_exists($key, $TaxPrice_array) == true ? $TaxPrice_array[$key] : 0; @endphp @endforeach @if ($invoice->invoice_module == 'account') @endif @if ( $invoice->invoice_module == 'cmms' || $invoice->invoice_module == 'rent' || $invoice->invoice_module == 'vehicleinspection' || $invoice->invoice_module == 'musicinstitute' || $invoice->invoice_module == 'machinerepair') @else @endif @if ($invoice->invoice_module == 'Fleet') @elseif($invoice->invoice_module == 'taskly') @elseif($invoice->invoice_module == 'cmms') @elseif($invoice->invoice_module == 'childcare') @else @endif @php $colspan = 6; $customerInvoices = ['taskly', 'account', 'cmms', 'cardealership', 'RestaurantMenu', 'rent' , 'Fleet','vehicleinspection','machinerepair']; if (in_array($invoice->invoice_module, $customerInvoices)) { $colspan = 7; } if ($invoice->invoice_module == 'taskly') { $colspan = 5; } if ( $invoice->invoice_module == 'Fleet' || $invoice->invoice_module == 'childcare' ) { $colspan = 3; } @endphp @if ($invoice->invoice_module != 'Fleet') @if($invoice->invoice_module != 'childcare') @endif @endif @if (!empty($taxesData)) @foreach ($taxesData as $taxName => $taxPrice) @endforeach @endif @if($invoice->invoice_module == 'machinerepair' || $invoice->invoice_module == 'mobileservice' || $invoice->invoice_module == 'vehicleinspection') @endif
# {{ __('Item Type') }} {{ __('Item') }} {{ __('Project') }} {{ __('Course') }} {{ __('Name') }} {{ __('Items') }} {{ __('PARTICULARS') }} {{ __('Distance') }} {{ __('Item Name') }} {{ __('Quantity') }}{{ __('Rate') }} {{ __('Discount') }} {{ __('Tax') }} {{ __('Description') }} {{ __('Price') }}
{{ $key + 1 }}{{ !empty($iteam->product_type) ? Str::ucfirst($iteam->product_type) : '--' }} {{ !empty($iteam->product()) ? $iteam->product()->name : '' }} {{ !empty($iteam->product()) ? $iteam->product()->title : '' }} {{ !empty($iteam->product_type) ? Str::ucfirst($iteam->product_type) : '--' }} {{ !empty($iteam->product()) ? $iteam->product()->name : '' }} {{ !empty($iteam->product()) ? $iteam->product()->title : '' }} {{ !empty($iteam->product_name) ? $iteam->product_name : '' }} {{ !empty($iteam->product()) ? $iteam->product()->name : '' }} {{ !empty($iteam->product_name) ? $iteam->product_name : '' }} {{ !empty($iteam->product()) ? $iteam->product()->distance : 0 }} {{ $iteam->quantity }}{{ currency_format_with_sym($iteam->price) }}{{ currency_format_with_sym($iteam->discount) }} @if (!empty($iteam->tax)) @php $totalTaxRate = 0; $data = 0; @endphp @foreach ($taxes as $tax) @php if ($invoice->invoice_module == 'newspaper'){ $taxPrice = \Workdo\Newspaper\Entities\NewspaperTax::taxRate( $tax->percentage, $iteam->price, $iteam->quantity ); } else { $taxPrice = \App\Models\Invoice::taxRate( $tax->rate, $iteam->price, $iteam->quantity, $iteam->discount, ); } $totalTaxPrice += $taxPrice; $data += $taxPrice; @endphp @endforeach @php array_push($TaxPrice_array, $data); @endphp
{{ $tax->name . ' (' . $tax->rate . '%)' }} {{ currency_format_with_sym($taxPrice) }}
@else - @endif
{{ !empty($iteam->description) ? $iteam->description : '-' }} @if ($invoice->invoice_module == 'childcare') {{ currency_format_with_sym($iteam->price) }} @elseif ($invoice->invoice_module == 'Fleet') @php $distance = !empty($iteam->product()) ? $iteam->product()->distance : 0; $price = $iteam->price * $iteam->product()->distance; @endphp {{ currency_format_with_sym($price) }} @else {{ currency_format_with_sym($iteam->price * $iteam->quantity - $iteam->discount + $tr_tex) }} @endif
{{ __('Total') }}{{ __('Total') }} {{ currency_format_with_sym($totalRate) }} {{ currency_format_with_sym($totalRate) }} {{ currency_format_with_sym($totalDiscount) }} {{ currency_format_with_sym($totalTaxPrice) }}{{ $totalQuantity }} {{ currency_format_with_sym($totalRate) }} {{ currency_format_with_sym($totalDiscount) }} {{ currency_format_with_sym($totalTaxPrice) }} {{ currency_format_with_sym($commonSubtotal) }} {{ $totalQuantity }} {{ currency_format_with_sym($totalRate) }} {{ currency_format_with_sym($totalDiscount) }} {{ currency_format_with_sym($totalTaxPrice) }}
{{ __('Sub Total') }} @if ($invoice->invoice_module == 'childcare') {{ currency_format_with_sym($commonSubtotal) }} @else {{ currency_format_with_sym($invoice->getSubTotal()) }} @endif
{{ __('Discount') }} {{ currency_format_with_sym($invoice->getTotalDiscount()) }}
{{ $taxName }} {{ currency_format_with_sym($taxPrice) }}
{{ __('Service Charge') }} {{ currency_format_with_sym($invoice->category_id) }}
{{ __('Total') }} @if ($invoice->invoice_module == 'childcare') {{ currency_format_with_sym($commonSubtotal) }} @elseif ($invoice->invoice_module == 'Fleet') {{ currency_format_with_sym($invoice->getFleetSubTotal()) }} @else {{ currency_format_with_sym($invoice->getTotal()) }} @endif
{{ __('Paid') }} {{ currency_format_with_sym($invoice->getTotal() - $invoice->getDue() - $invoice->invoiceTotalCreditNote()) }}
{{ __('Credit Note Applied') }} {{ currency_format_with_sym($invoice->invoiceTotalCreditNote()) }}
{{ __('Credit note issued') }} {{ currency_format_with_sym($invoice->invoiceTotalCustomerCreditNote()) }}
{{ __('Due') }} {{ currency_format_with_sym($invoice->getDue()) }}
{{--
{{ __('Receipt Summary') }}
--}}
@permission('invoice payment delete') @endpermission @if (!empty($invoice->payments) || !empty($bank_transfer_payments)) @foreach ($bank_transfer_payments as $bank_transfer_payment) @endforeach @foreach ($invoice->payments as $key => $payment) @if (module_is_active('Account')) @else @endif @permission('invoice payment delete') @endpermission @endforeach @else @include('layouts.nodatafound') @endif
{{ __('Date') }} {{ __('Amount') }} {{ __('Payment Type') }} {{ __('Account') }} {{ __('Reference') }} {{ __('Description') }} {{ __('Receipt') }} {{ __('OrderId') }}{{ __('Action') }}
{{ company_datetime_formate($bank_transfer_payment->created_at) }} {{ currency_format_with_sym($bank_transfer_payment->price) }} {{ $bank_transfer_payment->payment_type }} - - - @if (!empty($bank_transfer_payment->attachment)) @else -- @endif {{ $bank_transfer_payment->order_id }}
@if ($bank_transfer_payment->payment_type == 'Bank Transfer') @elseif($bank_transfer_payment->payment_type == 'Bank Account') @endif
@if ($bank_transfer_payment->payment_type == 'Bank Transfer') {{ Form::open(['route' => ['bank-transfer-request.destroy', $bank_transfer_payment->id], 'class' => 'm-0']) }} @method('DELETE') {{ Form::close() }} @elseif($bank_transfer_payment->payment_type == 'Bank Account') {{ Form::open(['route' => ['invoice.bankaccount.request.destroy', $bank_transfer_payment->id], 'class' => 'm-0']) }} @method('DELETE') {{ Form::close() }} @endif
{{ company_date_formate($payment->date) }} {{ currency_format_with_sym($payment->amount) }} {{ $payment->payment_type }}{{ !empty($payment->bankAccount) ? $payment->bankAccount->bank_name . ' ' . $payment->bankAccount->holder_name : '--' }} --{{ !empty($payment->reference) ? $payment->reference : '--' }} {{ !empty($payment->description) ? $payment->description : '--' }} @if (!empty($payment->add_receipt) && empty($payment->receipt) && check_file($payment->add_receipt)) @elseif (!empty($payment->receipt) && empty($payment->add_receipt) && $payment->payment_type == 'Stripe') @elseif($payment->payment_type == 'Bank Transfer' || $payment->payment_type == 'Bank Account') @else -- @endif {{ !empty($payment->order_id) ? $payment->order_id : '--' }}
{{ Form::open(['route' => ['invoice.payment.destroy', $invoice->id, $payment->id], 'class' => 'm-0']) }} {{ Form::close() }}
@if (module_is_active('Account')) @include('account::invoice.invoice_section') @endif
{{--
{{ __('Attachments') }}
--}}
{{ __('Drop files here to upload') }}
@forelse($invoice_attachment as $key =>$attachment) @empty @include('layouts.nodatafound') @endforelse
{{ __('#') }} {{ __('File Name') }} {{ __('File Size') }} {{ __('Date Created') }} {{ __('Action') }}
{{ ++$key }} {{ $attachment->file_name }} {{ $attachment->file_size }} {{ company_date_formate($attachment->created_at) }}
{{ Form::open(['route' => ['invoice.attachment.destroy', $attachment->id], 'class' => 'm-0']) }} @method('DELETE') {{ Form::close() }}
@stack('add_recurring_pills')
@if (\Auth::user()->type != 'company')
{{ __('Receipt Summary') }}
@if (!empty($invoice->payments) || !empty($bank_transfer_payments)) @foreach ($bank_transfer_payments as $bank_transfer_payment) @endforeach @foreach ($invoice->payments as $key => $payment) @if (module_is_active('Account')) @else @endif @endforeach @else @include('layouts.nodatafound') @endif
{{ __('Date') }} {{ __('Amount') }} {{ __('Payment Type') }} {{ __('Account') }} {{ __('Reference') }} {{ __('Description') }} {{ __('Receipt') }} {{ __('OrderId') }}
{{ company_datetime_formate($bank_transfer_payment->created_at) }} {{ currency_format_with_sym($bank_transfer_payment->price) }} {{ $bank_transfer_payment->payment_type }} - - - @if (!empty($bank_transfer_payment->attachment)) @else -- @endif {{ $bank_transfer_payment->order_id }}
{{ company_date_formate($payment->date) }} {{ currency_format_with_sym($payment->amount) }} {{ $payment->payment_type }}{{ !empty($payment->bankAccount) ? $payment->bankAccount->bank_name . ' ' . $payment->bankAccount->holder_name : '--' }} --{{ !empty($payment->reference) ? $payment->reference : '--' }} {{ !empty($payment->description) ? $payment->description : '--' }} @if (!empty($payment->add_receipt) && empty($payment->receipt) && check_file($payment->add_receipt)) @elseif (!empty($payment->receipt) && empty($payment->add_receipt) && $payment->payment_type == 'Stripe') @elseif($payment->payment_type == 'Bank Transfer' || $payment->payment_type == 'Bank Account') @else -- @endif {{ !empty($payment->order_id) ? $payment->order_id : '--' }}
@endif @endsection