diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index de3b83a..870af50 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -9,6 +9,7 @@ use Illuminate\Http\Request; use Carbon\Carbon; use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Session; +use PDF; class ProfileController extends Controller { @@ -90,7 +91,10 @@ class ProfileController extends Controller // dd($gadai_details); - return view('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri')); + // return view('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri')); + $pdf = PDF::loadView('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri')) + ->setPaper('a4', 'potrait'); + return $pdf->download('Surat Wakil.pdf'); } else { // insert into wakil_surat @@ -141,7 +145,10 @@ class ProfileController extends Controller // ->setPaper('A4','potrait'); // return $pdf->download('notislelong_'.'.pdf'); - return view('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri')); + // return view('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri')); + $pdf = PDF::loadView('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri')) + ->setPaper('a4', 'potrait'); + return $pdf->download('Surat Wakil.pdf'); } } } diff --git a/public/img/ARRAHN1.png b/public/img/ARRAHN1.png new file mode 100644 index 0000000..50c0e08 Binary files /dev/null and b/public/img/ARRAHN1.png differ diff --git a/public/img/kopkb.png b/public/img/kopkb.png new file mode 100644 index 0000000..c0ca932 Binary files /dev/null and b/public/img/kopkb.png differ diff --git a/resources/views/includes/partials/table-pembiayaan.blade.php b/resources/views/includes/partials/table-pembiayaan.blade.php index da474fd..9fd8da6 100644 --- a/resources/views/includes/partials/table-pembiayaan.blade.php +++ b/resources/views/includes/partials/table-pembiayaan.blade.php @@ -28,7 +28,7 @@
KOPERASI PERMODALAN KELANTAN BERHAD (D-5-0228)
+ +KOPERASI PERMODALAN KELANTAN BERHAD (D-5-0228)
{{ $cawangan_detail['namacaw'] }}
{{ $cawangan_detail['alamat1'] }}
{{ $cawangan_detail['alamat2'] }}
-{{ $cawangan_detail['notel'] }}
-
-
- {{ $cawangan_detail['notel'] }}
+  }})
SURAT PELANTIKAN WAKIL
TUJUAN PENYELESAIAN PEMBIAYAAN DI AR-RAHN
| Nama Pelanggan | : {{$customer_detail['nama']}} | @@ -284,5 +292,3 @@ - -||
|---|---|---|---|