From 55bea34e8f19d5a823d45fd167e318150b5ebcbf Mon Sep 17 00:00:00 2001 From: Amirah22 <94591077+Amirah22@users.noreply.github.com> Date: Wed, 26 Oct 2022 15:03:51 +0800 Subject: [PATCH] update laporan prestasi ar-rahn --- app/Http/Controllers/AkaunController.php | 3 +- .../views/akaun/laporan_prestasi.blade.php | 57 +++++-------------- 2 files changed, 15 insertions(+), 45 deletions(-) diff --git a/app/Http/Controllers/AkaunController.php b/app/Http/Controllers/AkaunController.php index 8fa0a62..b785f13 100644 --- a/app/Http/Controllers/AkaunController.php +++ b/app/Http/Controllers/AkaunController.php @@ -909,13 +909,12 @@ class AkaunController extends Controller $gadaiallcaw = Http::get(config('api.url'). '/api/laporanllcaw/gadai',['mula_date' => $mula_date,'hingga_date' => $hingga_date ])->json(); - if(isset($request->jenis)) { if($request->jenis == 'pdf') { - $pdf = PDF::loadView('akaun.laporan_prestasi', compact('gadaiallcaw','tarikh_cetak','mula_date','hingga_date','api_url'))->setPaper('a4', 'potrait'); + $pdf = PDF::loadView('akaun.laporan_prestasi', compact('gadaiallcaw','tarikh_cetak','mula_date','hingga_date','api_url'))->setPaper('a4', 'landscape'); return $pdf->download('laporan_prestasi-'. $mula_date . '.pdf'); }else{ return view('akaun.laporan_prestasi', compact('gadaiallcaw','tarikh_cetak','mula_date','hingga_date','api_url')); diff --git a/resources/views/akaun/laporan_prestasi.blade.php b/resources/views/akaun/laporan_prestasi.blade.php index 0f62a74..0e46e8e 100644 --- a/resources/views/akaun/laporan_prestasi.blade.php +++ b/resources/views/akaun/laporan_prestasi.blade.php @@ -140,34 +140,7 @@ color:black; } - - - - - - - - - - - {{-- --}} - {{-- --}} - - - {{-- --}} - - - {{-- - - - - - - - --}} -
- - {{--

RM {{ number_format($alirantunai['baki'],2) }}

--}} - - - - - - - - - - - - - - - + + + + + + + + + + + + + +
LAPORAN URUS NIAGA AR-RAHN PADA @php @@ -224,22 +197,20 @@ @foreach($gadaiallcaw as $item)
{{$item['cawangan']}}{{$item['jum_org_gadai']}}{{$item['jum_org_tebus']}}{{$item['jum_surat_gadai']}}{{$item['jum_surat_t']}}{{number_format($item['jumlah_gadai'],2) }}{{number_format($item['jum_penebusan'],2) }}{{number_format($item['jumlah_upah'],2) }}{{number_format($item['jum_ansuranupah'],2) }}{{number_format($item['jum_keseluruhan_upah'],2) }}{{number_format($item['jum_pinjaman_semasa'],2) }}{{number_format($item['bakiawal'],2) }}{{number_format($item['bakiakhir'],2) }}{{$item['bil_pelanggan_baru']}}{{$item['cawangan']}}{{$item['jum_org_gadai']}}{{$item['jum_org_tebus']}}{{$item['jum_surat_gadai']}}{{$item['jum_surat_t']}}{{number_format($item['jumlah_gadai'],2) }}{{number_format($item['jum_penebusan'],2) }}{{number_format($item['jumlah_upah'],2) }}{{number_format($item['jum_ansuranupah'],2) }}{{number_format($item['jum_keseluruhan_upah'],2) }}{{number_format($item['jum_pinjaman_semasa'],2) }}{{number_format($item['bakiawal'],2) }}{{number_format($item['bakiakhir'],2) }}{{$item['bil_pelanggan_baru']}}