added account-statements for specific norujukan

This commit is contained in:
Cyclone
2025-11-29 22:12:39 +08:00
committed by Nur Izzati
parent 9cf010b7ea
commit 554d570710
3 changed files with 494 additions and 0 deletions
+55
View File
@@ -6,6 +6,7 @@ use App\Http\Controllers\OnlineTransactionController;
use App\Http\Controllers\OnlineTransactionGadaianController;
use App\Http\Controllers\OnlineTransactionLogController;
use App\Http\Controllers\OnlineTransactionTrailController;
use App\Http\Controllers\AccountStatementController;
use App\Http\Controllers\AutoSerahanController;
use App\Http\Controllers\SimulasiWTDController;
use App\Http\Controllers\WTDController;
@@ -219,6 +220,60 @@ Route::get('/autoserahan/reject', [AutoSerahanController::class,'reject'])->nam
Route::get('/autoserahan/list', [AutoSerahanController::class,'getList'])->name('autoserahan.get');
Route::get('/autoserahan/rekod', [AutoSerahanController::class,'record'])->name('autoserahan.rekod');
//Account Statements
Route::get('/autoserahan/rekod', [AutoSerahanController::class,'record'])->name('autoserahan.rekod');
Route::get('/accounts/statements', [AccountStatementController::class,'showStatement'])->name('accountstatement.rekod');
// Route::get('/accounts', function () {
// $accountHolder = [
// 'name' => 'John Smith',
// 'address' => '2450 Courage St, STE 108',
// 'city_state_zip' => 'Brownsville, TX 78521',
// ];
// $bankDetails = [
// 'name' => 'PERMODALAN KELANTAN BERHAD',
// 'address' => '231 Valley Farms Street Santa Monica, CA 90403',
// 'email' => 'firstcitizensbank@domain.com',
// 'branch' => 'Main Branch - Santa Monica',
// 'account_number' => '111-234-567-890',
// 'statement_date' => '10/31/2025',
// 'period_covered' => '10/01/2025 to 10/31/2025',
// ];
// $summary = [
// 'opening_balance' => 175800.00,
// 'total_credit' => 510000.00,
// 'total_debit' => 94000.00,
// 'closing_balance' => 591800.00,
// 'account_type' => 'Current Account',
// 'transaction_count' => 8,
// ];
// $transactions = [
// // Note: The PDF format has Debit/Credit columns reversed in some tools,
// // but standard accounting puts Credits first. We'll follow the PDF logic
// // where amounts are placed under the correct column (Credit or Debit).
// ['date' => '10/02/2025', 'description' => 'Payment - Credit Card', 'credit' => null, 'debit' => 5400.00, 'balance' => 170400.00],
// ['date' => '10/03/2025', 'description' => 'Payment - Insurance', 'credit' => null, 'debit' => 3000.00, 'balance' => 167400.00],
// ['date' => '10/05/2025', 'description' => 'Account Transfer In', 'credit' => 500000.00, 'debit' => null, 'balance' => 667400.00],
// ['date' => '10/10/2025', 'description' => 'Cheque Deposit', 'credit' => 10000.00, 'debit' => null, 'balance' => 677400.00],
// ['date' => '10/15/2025', 'description' => 'Payment - Electricity', 'credit' => null, 'debit' => 1500.00, 'balance' => 675900.00],
// ['date' => '10/20/2025', 'description' => 'Payment - Water Utility', 'credit' => null, 'debit' => 600.00, 'balance' => 675300.00],
// ['date' => '10/25/2025', 'description' => 'Payment - Car Loan', 'credit' => null, 'debit' => 3500.00, 'balance' => 671800.00],
// ['date' => '10/30/2025', 'description' => 'Account Transfer Out', 'credit' => null, 'debit' => 80000.00, 'balance' => 591800.00],
// ];
// return view('accounts-statements', compact('accountHolder', 'bankDetails', 'summary', 'transactions'));
// });
Route::get('{any}', function () {
return view('home');
})->where('any','.*');