diff --git a/resources/views/pages/pdfs/currency_vendor_order.blade.php b/resources/views/pages/pdfs/currency_vendor_order.blade.php index 881ca2ca..c88e07ed 100644 --- a/resources/views/pages/pdfs/currency_vendor_order.blade.php +++ b/resources/views/pages/pdfs/currency_vendor_order.blade.php @@ -36,13 +36,27 @@ Bank in Details @foreach($transactions as $transaction) + @php + $attributes = $transaction->owner->owner->modelAttributes()->where('name', 'ORDER_REFERENCE_NO')->pluck('value')->toArray(); + $order_reference_no = implode(', ', $attributes); + @endphp {{$transaction->owner->owner->marking}} {{$transaction->owner->owner->company->reference}} {{$transaction->currency_rate}} {{$transaction->currency->short_code}} {{number_format((float)$transaction->amount, 2, '.', '')}} - Account Holder Name: {{$transaction->owner->owner->bank->holder_name}}
{{$transaction->owner->owner->bank->bank_name}}: {{$transaction->owner->owner->bank->account_no}} -
Branch: {{$transaction->owner->owner->bank->bank_branch}}@if($transaction->original_currency->short_code === 'USD')
Swift Code: {{$transaction->owner->owner->bank->swift}}@endif
Bank in Amount: {{$transaction->original_currency->short_code}} {{$transaction->original_amount}} + + Account Holder Name: {{$transaction->owner->owner->bank->holder_name}} +
{{$transaction->owner->owner->bank->bank_name}}: {{$transaction->owner->owner->bank->account_no}} +
Branch: {{$transaction->owner->owner->bank->bank_branch}} + @if($transaction->original_currency->short_code === 'USD') +
Swift Code: {{$transaction->owner->owner->bank->swift}} + @endif +
Bank in Amount: {{$transaction->original_currency->short_code}} {{$transaction->original_amount}} + @if ($order_reference_no) +
Order Reference No: {{ $order_reference_no }} + @endif + @endforeach