@extends('layouts.base_pdf') @section('inner_content')

{{$supplier->name}} {{\Carbon\Carbon::now('Asia/Singapore')->format('d-m-Y h:s')}}

@foreach($transactions as $transaction) @endforeach
Reference Marking Rate Amount Bank in Details
{{$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}}
Bank in Amount: {{$transaction->original_currency->short_code}} {{$transaction->original_amount}}
@php $sub_total_booking_amount = number_format((float)$transactions->sum('original_amount'), 2, '.', ''); @endphp @php $transfer_fee = number_format((float)$transferFeeTransactions->sum('service_charge'), 2, '.', ''); @endphp @php $total_booking_amount = number_format((float) ($transactions->sum('original_amount') + $transfer_fee), 2, '.', ''); @endphp @php $sub_total_amount = number_format((float)$transactions->sum('amount') + ($transfer_fee * 1/$transactions[0]->currency_rate), 2, '.', ''); @endphp @php $service_charge = number_format((float)$transactions->sum('service_charge'), 2, '.', ''); @endphp @php $total_amount = number_format((float)$sub_total_amount + $service_charge, 2, '.', ''); @endphp
Sub total booking amount: RMB {{$sub_total_booking_amount}}
Transfer fee: RMB {{$transfer_fee}}
Total booking amount: RMB {{$total_booking_amount}}
Sub total amount: MYR {{$sub_total_amount}}
Service charge: MYR {{$service_charge}}
Total amount: MYR {{$total_amount}}
Page {PAGENO} of {nbpg}
@endsection