From 10fdbcc7744baf0078c81ee34fd4a75826614ec9 Mon Sep 17 00:00:00 2001 From: edmondlang Date: Sun, 5 Nov 2023 00:12:51 +0800 Subject: [PATCH] update template --- ...ny_account_statement_transaction.blade.php | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/resources/views/pages/pdfs/company_account_statement_transaction.blade.php b/resources/views/pages/pdfs/company_account_statement_transaction.blade.php index aa9484c8..7bbdb3a2 100644 --- a/resources/views/pages/pdfs/company_account_statement_transaction.blade.php +++ b/resources/views/pages/pdfs/company_account_statement_transaction.blade.php @@ -23,7 +23,7 @@ Tel: 03-8082 1252 -
Account
Statement
Transactions
+
Account
Statement
Transactions
 
@@ -54,9 +54,8 @@ No - Date + Date Description - Incoming Outgoing Balance
(RM) @@ -80,28 +79,28 @@ switch ($transaction->type) { case 1: if ($transaction->owner_type === "App\Models\Booking") { - $description = "Payment - " . $transaction->bill_no; + $description = "Payment
" . $transaction->bill_no; $marking = $transaction->owner->marking; } else { - $description = "Payment - " . $transaction->bill_no; + $description = "Payment
" . $transaction->bill_no; $marking = App\Models\Transaction::where('payment_reference', $transaction->bill_no)->first()->owner->marking; } $outgoing = number_format($transaction->amount, $roundOff); $runningBalance = $runningBalance + $transaction->amount; break; case 2: - $description = "Invoice - " . $transaction->bill_no; + $description = "Invoice
" . $transaction->bill_no; $incoming = number_format(($transaction->amount / $transaction->currency_rate + $transaction->service_charge), $roundOff); $runningBalance = $runningBalance - ($transaction->amount / $transaction->currency_rate + $transaction->service_charge); $marking = $transaction->owner->marking; break; case 5: - $description = "Top Up - " . $transaction->payment_reference; + $description = "Top Up
" . $transaction->payment_reference; $incoming = number_format($transaction->amount, $roundOff); $runningBalance = $runningBalance - $transaction->amount; break; case 9: - $description = "Credit Note - " . $transaction->payment_reference; + $description = "Credit Note
" . $transaction->payment_reference; $incoming = number_format($transaction->amount, $roundOff); $runningBalance = $runningBalance - $transaction->amount; break; @@ -111,15 +110,15 @@ @endphp {{ $key + 1 }} - {{ \Carbon\Carbon::parse($transaction->created_at)->format('Y-m-d') }} - {{ $description }} - {{$marking}} + {{ \Carbon\Carbon::parse($transaction->created_at)->format('Y-m-d') }} + {!! $description !!}
{{$marking}} {{ $incoming }} - + {{ $outgoing }} - + {{ number_format($current_running_balance, $roundOff) }}