@php $business_name = optional($expense->business)->name ?? session('business.name', ''); $is_rtl = in_array(app()->getLocale(), ['ar', 'fa', 'ur'], true); $logo = optional($expense->business)->logo; // Translation fallbacks $verified_by_label = __('accounting::lang.verified_by'); if ($verified_by_label == 'accounting::lang.verified_by') { $verified_by_label = 'Verified By'; } @endphp
|
{{ $business_name }}
@if(!empty($expense->location))
{{ $expense->location->name }}
@if(!empty($expense->location->landmark)) {{ $expense->location->landmark }}, @endif
@if(!empty($expense->location->city)) {{ $expense->location->city }} @endif
@if(!empty($expense->location->state)) , {{ $expense->location->state }} @endif
@if(!empty($expense->location->zip_code)) - {{ $expense->location->zip_code }} @endif
@if(!empty($expense->location->mobile))
@endif
@lang('contact.mobile'): {{ $expense->location->mobile }} @endif |
@if(!empty($logo))
|
||
| @lang('purchase.ref_no'): | #{{ $expense->ref_no }} | @lang('messages.date'): | {{ @format_datetime($expense->transaction_date) }} |
| @lang('expense.expense_category'): | {{ $category_name ?: '—' }} | @lang('sale.payment_status'): | {{ __('lang_v1.' . $expense->payment_status) }} |
| @lang('expense.expense_for'): | {{ $expense_for_user ? trim($expense_for_user->user_full_name) : '-' }} | @lang('contact.contact'): | {{ $expense->contact ? $expense->contact->name : '-' }} |
| @lang('lang_v1.added_by'): | {{ $added_by_user ? trim($added_by_user->user_full_name) : '-' }} | ||
| @lang('lang_v1.description') | @lang('sale.total_amount') |
|---|---|
|
{{ $category_name ?: __('expense.expense') }}
{{ $expense->additional_notes ?: '' }}
@if(!empty($expense->tax))
@lang('product.tax'): {{ $expense->tax->name }} ({{ $expense->tax->amount }}%)
@endif
|
@if($expense->type == 'expense_refund') - @endif @format_currency($expense->final_total) |
| @lang('sale.total_amount') |
@if($expense->type == 'expense_refund') - @endif @format_currency($expense->final_total)
|
| @lang('lang_v1.payment_details') | ||
|---|---|---|
| @lang('lang_v1.payment_method') | @lang('lang_v1.payment_note') | @lang('sale.amount') |
|
@php
$method_key = 'lang_v1.' . $payment->method;
$method_label = \Illuminate\Support\Facades\Lang::has($method_key)
? __($method_key)
: ucfirst(str_replace('_', ' ', (string) $payment->method));
@endphp
{{ $method_label }}
@if(!empty($payment->payment_account))
({{ $payment->payment_account->name }}) @endif |
{{ $payment->note ?: '—' }} | @format_currency($payment->amount) |
|
@lang('expense.prepared_by')
|
{{ $verified_by_label }}
|
@lang('expense.approved_by')
|