From 07be5c5175af814b73c35a129e2292b45fadd658 Mon Sep 17 00:00:00 2001 From: Amirah Date: Sun, 14 Dec 2025 13:24:19 +0800 Subject: [PATCH 1/3] Add reporting saringan gadaian untuk tebus gadai balik v3 --- app/Exports/GadaianDetailExport.php | 60 ++++++ .../Controllers/SaringanGadaianController.php | 112 +++++++++++ resources/views/indexOverallReport.blade.php | 6 + .../reports/saringan-gadaian/excel.blade.php | 39 ++++ .../reports/saringan-gadaian/index.blade.php | 185 ++++++++++++++++++ routes/reports.php | 4 + 6 files changed, 406 insertions(+) create mode 100644 app/Exports/GadaianDetailExport.php create mode 100644 app/Http/Controllers/SaringanGadaianController.php create mode 100644 resources/views/reports/saringan-gadaian/excel.blade.php create mode 100644 resources/views/reports/saringan-gadaian/index.blade.php diff --git a/app/Exports/GadaianDetailExport.php b/app/Exports/GadaianDetailExport.php new file mode 100644 index 0000000..fa53486 --- /dev/null +++ b/app/Exports/GadaianDetailExport.php @@ -0,0 +1,60 @@ +kodcaw = $kodcaw; + $this->startDate = $startDate; + $this->endDate = $endDate; + } + + public function view(): View + { + $hostname = config('api.url'); + $gadaian = Http::get($hostname . '/api/reports/saringan/gadaian', [ + 'startDate' => $this->startDate, + 'endDate' => $this->endDate, + ])->json(); + + $branch = collect($gadaian)->firstWhere('kodcaw', $this->kodcaw); + + $details = collect($branch['details'] ?? []) + ->sort(function ($a, $b) { + $aTag = isset($a['taglel_lama']) && $a['taglel_lama'] == 1 ? 0 : 1; + $bTag = isset($b['taglel_lama']) && $b['taglel_lama'] == 1 ? 0 : 1; + + if ($aTag !== $bTag) { + return $aTag <=> $bTag; + } + + + return ($a['t_gadai'] ?? '') <=> ($b['t_gadai'] ?? ''); + }) + ->values() + ->all(); + + + $total_berat = collect($details)->sum('berat'); + $total_nm = collect($details)->sum('nilaimarhun'); + $total_pinjam = collect($details)->sum('pinjaman'); + + return view('reports.saringan-gadaian.excel', compact( + 'details', + 'total_berat', + 'total_nm', + 'total_pinjam', + 'branch' + )); + } +} diff --git a/app/Http/Controllers/SaringanGadaianController.php b/app/Http/Controllers/SaringanGadaianController.php new file mode 100644 index 0000000..2ec6835 --- /dev/null +++ b/app/Http/Controllers/SaringanGadaianController.php @@ -0,0 +1,112 @@ +toDateString(); + }; + + $request->hostname = config('api.url'); + + $startDate = $getReportDate($request->startDate); + $endDate = $getReportDate($request->endDate); + + + $gadaian = Http::get($request->hostname . '/api/reports/saringan/gadaian', [ + 'startDate' => $startDate, + 'endDate' => $endDate, + ])->json(); + + return view('reports.saringan-gadaian.index', compact('gadaian', 'startDate', 'endDate')); + } + + public function exportExcel(Request $request, $kodcaw) + { + $startDate = $request->startDate ?? now()->startOfMonth()->toDateString(); + $endDate = $request->endDate ?? now()->endOfMonth()->toDateString(); + + $fileName = "Saringan_Gadaian_{$kodcaw}_{$startDate}_to_{$endDate}.xlsx"; + + return Excel::download(new GadaianDetailExport($kodcaw, $startDate, $endDate), $fileName); + } + + + /** + * Show the form for creating a new resource. + * + * @return \Illuminate\Http\Response + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function show($id) + { + // + } + + /** + * Show the form for editing the specified resource. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function edit($id) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param int $id + * @return \Illuminate\Http\Response + */ + public function update(Request $request, $id) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function destroy($id) + { + // + } +} diff --git a/resources/views/indexOverallReport.blade.php b/resources/views/indexOverallReport.blade.php index 70f93b4..6a5bc19 100644 --- a/resources/views/indexOverallReport.blade.php +++ b/resources/views/indexOverallReport.blade.php @@ -104,6 +104,12 @@

Transaksi Segera(By Masa)

+
+ +

Saringan Gadaian

+
+
diff --git a/resources/views/reports/saringan-gadaian/excel.blade.php b/resources/views/reports/saringan-gadaian/excel.blade.php new file mode 100644 index 0000000..b5edd21 --- /dev/null +++ b/resources/views/reports/saringan-gadaian/excel.blade.php @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + @foreach ($details as $i => $item) + + + + + + + + + + + + @endforeach + + + + + + + + + + +
BilNo Rujukan TebusNo Rujukan Gadai BalikNo KPBerat (g)Nilai Marhun (RM)Pinjaman (RM)Tag LelongTarikh Gadai
{{ $i + 1 }}{{ $item['norujukan_tebus'] }}{{ $item['norujukan_gadai_balik'] }}{{ $item['nokp'] }}{{ number_format($item['berat'], 2) }}{{ number_format($item['nilaimarhun'], 2) }}{{ number_format($item['pinjaman'], 2) }}{{ isset($item['taglel_lama']) && $item['taglel_lama'] == 1 ? 'Ya' : 'Tidak' }}{{ $item['t_gadai'] }}
Jumlah Keseluruhan{{ number_format($total_berat, 2) }}{{ number_format($total_nm, 2) }}{{ number_format($total_pinjam, 2) }}
diff --git a/resources/views/reports/saringan-gadaian/index.blade.php b/resources/views/reports/saringan-gadaian/index.blade.php new file mode 100644 index 0000000..0b9c059 --- /dev/null +++ b/resources/views/reports/saringan-gadaian/index.blade.php @@ -0,0 +1,185 @@ +@extends('layouts.app') + +@section('content') + +
+
+ +
+ + + + +
+
+
+
Laporan Saringan Pembiayaan
+
+
+
+
+ Mula + + Hingga + + +
+ +
+
+
+
+
+
+
+
+ + +
+
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + @php + $totalbilgadai = 0; + $totalberat = 0; + $totalnm = 0; + $totalpinjaman = 0; + @endphp + + + @forelse ($gadaian as $gadai) + @php + $totalbilgadai += $gadai['total_gadai_balik']; + $totalberat += $gadai['sum_berat']; + $totalnm += $gadai['sum_nilai_marhun']; + $totalpinjaman += $gadai['sum_pinjaman']; + @endphp + + + + + + + + + + + + @empty + + + + @endforelse + + + + + + + + + + +
+ No + + Kod Cawangan + + Cawangan + + Bil Pembiayaan + + Berat (g) + + Nilai Marhun(RM) + + Pinjaman(RM) + + Action +
+
{{ $loop->iteration }}
+
+
{{ $gadai['kodcaw'] }}
+
+
{{ $gadai['details_caw'] }}
+
+
{{ $gadai['total_gadai_balik'] }}
+
+
{{ number_format($gadai['sum_berat'], 2) }}
+
+
{{ number_format($gadai['sum_nilai_marhun'], 2) }}
+
+
{{ number_format($gadai['sum_pinjaman'], 2) }}
+
+ +
+ Data not available +
+ Jumlah Keseluruhan + + {{ $totalbilgadai }} + + {{ number_format($totalberat, 2) }} + + {{ number_format($totalnm, 2) }} + + {{ number_format($totalpinjaman, 2) }} +
+ +
+
+
+ @include('layouts.footer') +
+@endsection diff --git a/routes/reports.php b/routes/reports.php index 29312eb..60e3404 100644 --- a/routes/reports.php +++ b/routes/reports.php @@ -13,6 +13,7 @@ use App\Http\Controllers\Reports\OutstandingController; use App\Http\Controllers\Reports\PetibesiController; use App\Http\Controllers\Reports\AnalisaController; use App\Http\Controllers\Reports\BakiLelongController; +use App\Http\Controllers\SaringanGadaianController; use Illuminate\Support\Facades\Route; Route::middleware(['roleChecker:admin,akaun,operasi,kpo,callcenter, null'])->group(function () { @@ -45,4 +46,7 @@ Route::middleware(['roleChecker:admin,akaun,operasi,kpo,callcenter, null'])->gro Route::get('gadaitebus', [GadaianController::class, 'gadaitebus'])->name('reports.gadaitebus.index'); Route::get('gadaitebusmasa', [GadaianController::class, 'gadaitebusmasa'])->name('reports.gadaitebusmasa.index'); Route::get('gadaitebusmasa/{kod_cawangan}', [GadaianController::class, 'downloadGadaiTebusMasaCawanganExcel'])->name('reports.gadaitebusmasa.cawangan.excel'); + + Route::get('saringan-gadaian-index', [SaringanGadaianController::class, 'index'])->name('reports.saringan-gadaian.index'); + Route::get('saringan-gadaian-excel/{kodcaw}', [SaringanGadaianController::class, 'exportExcel'])->name('reports.gadaian.cawangan.excel'); }); From 9bca680f4396a453036ee952122816a9a2ac6bfc Mon Sep 17 00:00:00 2001 From: Amirah Date: Sun, 14 Dec 2025 17:05:38 +0800 Subject: [PATCH 2/3] Add laporan gadai, tgb lelong, tgb biasa --- app/Exports/GadaianDetailExport.php | 83 +++++---- .../Controllers/SaringanGadaianController.php | 15 +- .../reports/saringan-gadaian/excel.blade.php | 173 ++++++++++++++++-- .../reports/saringan-gadaian/index.blade.php | 71 +++++-- 4 files changed, 276 insertions(+), 66 deletions(-) diff --git a/app/Exports/GadaianDetailExport.php b/app/Exports/GadaianDetailExport.php index fa53486..2c12368 100644 --- a/app/Exports/GadaianDetailExport.php +++ b/app/Exports/GadaianDetailExport.php @@ -19,42 +19,63 @@ class GadaianDetailExport implements FromView $this->endDate = $endDate; } - public function view(): View - { - $hostname = config('api.url'); - $gadaian = Http::get($hostname . '/api/reports/saringan/gadaian', [ - 'startDate' => $this->startDate, - 'endDate' => $this->endDate, - ])->json(); + public function view(): View +{ + $generatedAt = now()->format('d-m-Y'); - $branch = collect($gadaian)->firstWhere('kodcaw', $this->kodcaw); + $data = Http::get(config('api.url') . '/api/reports/saringan/gadaian', [ + 'startDate' => $this->startDate, + 'endDate' => $this->endDate, + ])->json(); - $details = collect($branch['details'] ?? []) - ->sort(function ($a, $b) { - $aTag = isset($a['taglel_lama']) && $a['taglel_lama'] == 1 ? 0 : 1; - $bTag = isset($b['taglel_lama']) && $b['taglel_lama'] == 1 ? 0 : 1; + $branch = collect($data)->firstWhere('kodcaw', $this->kodcaw); + $details = collect($branch['details'] ?? []); - if ($aTag !== $bTag) { - return $aTag <=> $bTag; - } + $tgb_lelong = $details->where('jenis', 'TGB_LELONG')->values(); + $tgb_biasa = $details->where('jenis', 'TGB_BIASA')->values(); + $gadai_biasa = $details->where('jenis', 'GADAI_BIASA')->values(); - - return ($a['t_gadai'] ?? '') <=> ($b['t_gadai'] ?? ''); - }) - ->values() - ->all(); + $subtotal = [ + 'tgb_lelong' => [ + 'berat' => $tgb_lelong->sum('berat'), + 'nilai' => $tgb_lelong->sum('nilaimarhun'), + 'pinjaman' => $tgb_lelong->sum('pinjaman'), + ], + 'tgb_biasa' => [ + 'berat' => $tgb_biasa->sum('berat'), + 'nilai' => $tgb_biasa->sum('nilaimarhun'), + 'pinjaman' => $tgb_biasa->sum('pinjaman'), + ], + 'gadai_biasa' => [ + 'berat' => $gadai_biasa->sum('berat'), + 'nilai' => $gadai_biasa->sum('nilaimarhun'), + 'pinjaman' => $gadai_biasa->sum('pinjaman'), + ], + ]; + $grandTotal = [ + 'berat' => $subtotal['tgb_lelong']['berat'] + + $subtotal['tgb_biasa']['berat'] + + $subtotal['gadai_biasa']['berat'], - $total_berat = collect($details)->sum('berat'); - $total_nm = collect($details)->sum('nilaimarhun'); - $total_pinjam = collect($details)->sum('pinjaman'); + 'nilai' => $subtotal['tgb_lelong']['nilai'] + + $subtotal['tgb_biasa']['nilai'] + + $subtotal['gadai_biasa']['nilai'], + + 'pinjaman' => $subtotal['tgb_lelong']['pinjaman'] + + $subtotal['tgb_biasa']['pinjaman'] + + $subtotal['gadai_biasa']['pinjaman'], + ]; + + return view('reports.saringan-gadaian.excel', compact( + 'branch', + 'generatedAt', + 'tgb_lelong', + 'tgb_biasa', + 'gadai_biasa', + 'subtotal', + 'grandTotal' + )); +} - return view('reports.saringan-gadaian.excel', compact( - 'details', - 'total_berat', - 'total_nm', - 'total_pinjam', - 'branch' - )); - } } diff --git a/app/Http/Controllers/SaringanGadaianController.php b/app/Http/Controllers/SaringanGadaianController.php index 2ec6835..4f4e14a 100644 --- a/app/Http/Controllers/SaringanGadaianController.php +++ b/app/Http/Controllers/SaringanGadaianController.php @@ -35,15 +35,18 @@ class SaringanGadaianController extends Controller public function exportExcel(Request $request, $kodcaw) { - $startDate = $request->startDate ?? now()->startOfMonth()->toDateString(); - $endDate = $request->endDate ?? now()->endOfMonth()->toDateString(); - - $fileName = "Saringan_Gadaian_{$kodcaw}_{$startDate}_to_{$endDate}.xlsx"; - - return Excel::download(new GadaianDetailExport($kodcaw, $startDate, $endDate), $fileName); + return Excel::download( + new GadaianDetailExport( + $kodcaw, + $request->startDate, + $request->endDate + ), + "Saringan_Gadaian_{$kodcaw}.xlsx" + ); } + /** * Show the form for creating a new resource. * diff --git a/resources/views/reports/saringan-gadaian/excel.blade.php b/resources/views/reports/saringan-gadaian/excel.blade.php index b5edd21..364b613 100644 --- a/resources/views/reports/saringan-gadaian/excel.blade.php +++ b/resources/views/reports/saringan-gadaian/excel.blade.php @@ -1,6 +1,32 @@ + + + + + + + + + + + + +
+ LAPORAN SARINGAN PEMBIAYAAN +
+ Cawangan : {{ $branch['details_caw'] ?? '-' }} ({{ $branch['kodcaw'] ?? '-' }}) +
+ Tempoh : {{ request()->startDate }} hingga {{ request()->endDate }} +
+ Tarikh Dijana : {{ $generatedAt }} +
+ +
+ + + - + @@ -12,28 +38,139 @@ + - @foreach ($details as $i => $item) + + {{-- ================= TGB LELONG ================= --}} + + + + + @php + $bil = 1; + $subBerat = $subNM = $subPinjam = 0; + @endphp + + @foreach ($tgb_lelong as $item) - - - - - - - - - + + + + + + + + + + + @php + $subBerat += $item['berat'] ?? 0; + $subNM += $item['nilaimarhun'] ?? 0; + $subPinjam += $item['pinjaman'] ?? 0; + @endphp @endforeach - - - - - - - + + + + + + + + {{-- ================= TGB BIASA ================= --}} + + + + + @php + $bil = 1; + $subBerat = $subNM = $subPinjam = 0; + @endphp + + @foreach ($tgb_biasa as $item) + + + + + + + + + + + + + @php + $subBerat += $item['berat'] ?? 0; + $subNM += $item['nilaimarhun'] ?? 0; + $subPinjam += $item['pinjaman'] ?? 0; + @endphp + @endforeach + + + + + + + + + + {{-- ================= GADAI BIASA ================= --}} + + + + + @php + $bil = 1; + $subBerat = $subNM = $subPinjam = 0; + @endphp + + @foreach ($gadai_biasa as $item) + + + + + + + + + + + + + @php + $subBerat += $item['berat'] ?? 0; + $subNM += $item['nilaimarhun'] ?? 0; + $subPinjam += $item['pinjaman'] ?? 0; + @endphp + @endforeach + + + + + + + + +
Bil No Rujukan Tebus No Rujukan Gadai BalikTarikh Gadai
TGB LELONG
{{ $i + 1 }}{{ $item['norujukan_tebus'] }}{{ $item['norujukan_gadai_balik'] }}{{ $item['nokp'] }}{{ number_format($item['berat'], 2) }}{{ number_format($item['nilaimarhun'], 2) }}{{ number_format($item['pinjaman'], 2) }}{{ isset($item['taglel_lama']) && $item['taglel_lama'] == 1 ? 'Ya' : 'Tidak' }}{{ $item['t_gadai'] }}{{ $bil++ }}{{ $item['norujukan_tebus'] ?? null }}{{ $item['norujukan_gadai_balik'] ?? null }}{{ $item['nokp'] ?? null }}{{ $item['berat'] ?? 0 }}{{ $item['nilaimarhun'] ?? 0 }}{{ $item['pinjaman'] ?? 0 }}Ya{{ $item['t_gadai'] ?? null }}
Jumlah Keseluruhan{{ number_format($total_berat, 2) }}{{ number_format($total_nm, 2) }}{{ number_format($total_pinjam, 2) }}
Subtotal{{ number_format($subBerat, 2) }}{{ number_format($subNM, 2) }}{{ number_format($subPinjam, 2) }}
TGB BIASA
{{ $bil++ }}{{ $item['norujukan_tebus'] ?? null }}{{ $item['norujukan_gadai_balik'] ?? null }}{{ $item['nokp'] ?? null }}{{ $item['berat'] ?? 0 }}{{ $item['nilaimarhun'] ?? 0 }}{{ $item['pinjaman'] ?? 0 }}Tidak{{ $item['t_gadai'] ?? null }}
Subtotal{{ number_format($subBerat, 2) }}{{ number_format($subNM, 2) }}{{ number_format($subPinjam, 2) }}
GADAI BIASA
{{ $bil++ }}{{ $item['norujukan_gadai_balik'] ?? null }}{{ $item['nokp'] ?? null }}{{ $item['berat'] ?? 0 }}{{ $item['nilaimarhun'] ?? 0 }}{{ $item['pinjaman'] ?? 0 }}{{ $item['t_gadai'] ?? null }}
Subtotal{{ number_format($subBerat, 2) }}{{ number_format($subNM, 2) }}{{ number_format($subPinjam, 2) }}
+ + + + JUMLAH KESELURUHAN + + + {{ number_format($grandTotal['berat'], 2) }} + + + {{ number_format($grandTotal['nilai'], 2) }} + + + {{ number_format($grandTotal['pinjaman'], 2) }} + + + + diff --git a/resources/views/reports/saringan-gadaian/index.blade.php b/resources/views/reports/saringan-gadaian/index.blade.php index 0b9c059..381b606 100644 --- a/resources/views/reports/saringan-gadaian/index.blade.php +++ b/resources/views/reports/saringan-gadaian/index.blade.php @@ -9,7 +9,8 @@ + { 'title': 'Gadaian', 'icon': 'fas fa-users' } + ]">
@@ -17,7 +18,8 @@
Laporan Saringan Pembiayaan
+ class="text-center mx-auto text-white font-bold">Laporan Saringan Pembiayaan +
From 4ef1fc88b30564807caa5f0724808635c8ce9f49 Mon Sep 17 00:00:00 2001 From: BTMS3 Date: Sun, 21 Dec 2025 11:09:02 +0800 Subject: [PATCH 3/3] update-wtd --- resources/js/WTD/Rekod.vue | 25 +++- resources/js/WTD/SelectWTD.vue | 80 +++++++++--- resources/views/wtd/index.blade.php | 2 +- resources/views/wtd/simulasi/show.blade.php | 131 ++++++++++++++++++++ 4 files changed, 217 insertions(+), 21 deletions(-) create mode 100644 resources/views/wtd/simulasi/show.blade.php diff --git a/resources/js/WTD/Rekod.vue b/resources/js/WTD/Rekod.vue index ae43e3a..68c2608 100644 --- a/resources/js/WTD/Rekod.vue +++ b/resources/js/WTD/Rekod.vue @@ -14,14 +14,35 @@
Jumlah WTD
:
-
RM {{ formattext(sb.baki) }}
+ +
+ RM{{ formattext(sb.baki) }} +
-
Tarikh Proses WTD +
Tahun Lelong +
+
:
+
{{ (sb.tahun) ? sb.tahun : 'Tiada' }}
+
+
+
Bulan Lelong +
+
:
+
{{ (sb.bulan) ? sb.bulan : 'Tiada' }}
+
+
+
Tarikh Proses
:
{{ (sb.t_jual) ? sb.t_jual : 'Tiada' }}
+
+
Tarikh Hantar +
+
:
+
{{ (sb.t_htr_ag) ? sb.t_htr_ag : 'Tiada' }}
+
Status
diff --git a/resources/js/WTD/SelectWTD.vue b/resources/js/WTD/SelectWTD.vue index 6a8a49c..77e623b 100644 --- a/resources/js/WTD/SelectWTD.vue +++ b/resources/js/WTD/SelectWTD.vue @@ -19,7 +19,7 @@
- + Batchno: {{ this.batchno }}
@@ -38,9 +38,9 @@ Tarikh Lelong - + Baki @@ -60,9 +60,9 @@ {{ bl.t_jual }} - + {{ formattext(bl.baki) }} @@ -103,7 +103,7 @@ export default { kodcaw: this.$kodcaw, } }).then(response => { - console.log(response); + //console.log(response); this.arraybakilelong = response.data; }) }, @@ -153,7 +153,7 @@ export default { if (boolkatalaluan == 1) { await this.$swal({ - title: 'Proses WTD?', + title: 'Serahan WTD?', text: "anda tidak boleh ulang kembali setelah di proses!", icon: 'warning', showCancelButton: true, @@ -165,16 +165,59 @@ export default { if (result.isConfirmed) { + //new added this.$swal({ - title: "Masukkan No Cek:", - // text: "Write something interesting:", - input: 'text', - showCancelButton: true - }).then((result) => { - if (result.value) { - this.proseswtd(result.value); - } - }); + title: 'Sila Isi Butiran Berikut', + html: ` +
+
+ + +
+ +
+ + +
+
+ `, + focusConfirm: false, + showCancelButton: true, + confirmButtonText: 'Simpan', + cancelButtonText: 'Batal', + + customClass: { + popup: 'swal-popup', + confirmButton: 'swal-confirm', + cancelButton: 'swal-cancel' + }, + + preConfirm: () => { + const noCek = document.getElementById('noCek').value.trim(); + const tarikhAG = document.getElementById('tarikhAG').value; + + if (!noCek || !tarikhAG) { + this.$swal.showValidationMessage( + 'Sila masukkan No Cek dan Tarikh Hantar ke AG' + ); + return false; + } + + return { noCek, tarikhAG }; + } +}).then((result) => { + if (result.isConfirmed) { + this.proseswtd(result.value.noCek, result.value.tarikhAG); + } +}); + + + //end new added } }); } else { @@ -197,11 +240,12 @@ export default { } }); }, - proseswtd: function (nocek) { + proseswtd: function (nocek,tarikhAG) { this.axios.post(this.$hostname + '/admin/wtd/process', { kodcaw: this.$kodcaw, batch: this.batchno, - nocek: nocek + nocek: nocek, + tarikhAG: tarikhAG }).then(response => { if (response.data == 'success') { diff --git a/resources/views/wtd/index.blade.php b/resources/views/wtd/index.blade.php index 7530aac..cfda47e 100644 --- a/resources/views/wtd/index.blade.php +++ b/resources/views/wtd/index.blade.php @@ -8,7 +8,7 @@
- +
diff --git a/resources/views/wtd/simulasi/show.blade.php b/resources/views/wtd/simulasi/show.blade.php new file mode 100644 index 0000000..011852b --- /dev/null +++ b/resources/views/wtd/simulasi/show.blade.php @@ -0,0 +1,131 @@ +@extends('layouts.app') + +@section('content') +
+ @if (session('success')) +
+ {{ session('success') }} +
+ @endif +

Senarai Batch Simulasi Untuk Tahun: {{ $year }}

+ +
+

Jumlah Baki Lelong: + RM 0.00 +

+
+ + + @csrf +
+ + + + + + + + + + + + + {{-- @dd($senaraiSimulasi); --}} + @foreach ($senaraiSimulasi as $index => $item) + + + + + + + + + + + @endforeach + +
#BulanJumlah SAGPembiayaanBaki + +
{{ $index + 1 }} + + {{ $item['bulan'] }} + + + + + + {{ $item['jumlah_norujukan'] ?? 0 }} + + + {{ number_format($item['pembiayaan'], 2) }} + + + {{ number_format($item['baki'], 2) }} + + + +
+
+ +
+ +
+ +
+ @include('layouts.footer') +@endsection + +