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']}}