added kak aida request untuk sttebus dan customer dalam saghilang
This commit is contained in:
@@ -1741,18 +1741,20 @@ class AkaunController extends Controller
|
||||
$cawangan = Http::get($request->hostname . '/api/cawangan/detail/'. $request->kodcaw)->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
$hostname = $request->hostname;
|
||||
|
||||
if(isset($request->jenis))
|
||||
{
|
||||
if($request->jenis == 'pdf')
|
||||
{
|
||||
$pdf = PDF::loadView('akaun.laporan_saghilang', compact('polis','cawangan_detail','tarikh_cetak','mula_date','hingga_date','api_url'))->setPaper('a4', 'potrait');
|
||||
$pdf = PDF::loadView('akaun.laporan_saghilang', compact('hostname','polis','cawangan_detail','tarikh_cetak','mula_date','hingga_date','api_url'))->setPaper('a4', 'potrait');
|
||||
return $pdf->download('laporan_saghilang_' . $request->kodcaw .'_'. $mula_date .'_'. $hingga_date . '.pdf');
|
||||
}else{
|
||||
return view('akaun.laporan_saghilang', compact('polis','cawangan_detail','tarikh_cetak','mula_date','hingga_date','api_url'));
|
||||
return view('akaun.laporan_saghilang', compact('hostname','polis','cawangan_detail','tarikh_cetak','mula_date','hingga_date','api_url'));
|
||||
}
|
||||
}
|
||||
|
||||
return view('akaun.laporan_saghilang', compact('polis','cawangan_detail','mula_date','hingga_date','tarikh_cetak','api_url'));
|
||||
return view('akaun.laporan_saghilang', compact('hostname','polis','cawangan_detail','mula_date','hingga_date','tarikh_cetak','api_url'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user