+
+ | Sub total booking amount: |
+ @php
+ $sub_total_booking_amount = number_format((float)$transactions->sum('original_amount'), 2, '.', '');
+ @endphp
+ RMB {{$sub_total_booking_amount}} |
+
+
+ | Transfer fee (0.002%): |
+ @php
+ $transfer_fee = number_format((float)$transferFeeTransactions->sum('service_charge'), 2, '.', '');
+ @endphp
+ RMB {{$transfer_fee}} |
+
+
+ | Total booking amount: |
+ @php
+ $total_booking_amount = number_format((float) ($transactions->sum('original_amount') + $transfer_fee), 2, '.', '');
+ @endphp
+ RMB {{$total_booking_amount}} |
+
+
+ | Sub total amount: |
+ @php
+ $sub_total_amount = number_format((float)$transactions->sum('amount') + ($transfer_fee * 1/$transactions[0]->currency_rate), 2, '.', '');
+ @endphp
+ MYR {{$sub_total_amount}} |
+
+
+ | Service charge ({{ $supplier->id == 2 ? '0.00' : '0.75%' }}): |
+ @php
+ $service_charge = number_format((float)$sub_total_amount * 0.75 / 100, 2, '.', '');
+ @endphp
+ MYR {{$service_charge}} |
+
| Total amount: |
- MYR {{number_format((float)$transactions->sum('amount'), 2, '.', '')}} |
+ @php
+ $total_amount = number_format((float)$sub_total_amount + $service_charge, 2, '.', '');
+ @endphp
+ MYR {{$total_amount}} |
+
+
+