laporan marhun peti besi
This commit is contained in:
@@ -7,6 +7,8 @@ use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
|
||||
use PDF;
|
||||
|
||||
class KhazanahController extends Controller
|
||||
{
|
||||
public function menu()
|
||||
@@ -72,4 +74,26 @@ class KhazanahController extends Controller
|
||||
|
||||
return redirect()->route('khazanah.gadaian');
|
||||
}
|
||||
|
||||
public function LaporanSemakBarcode(){
|
||||
$auth_user=Auth::user();
|
||||
$marhun_serah_petibesi=Http::get(config('api.url').'/api/gadai/serah_marhun/khazanah/petibesi/'.$auth_user['cawangan'])->json();
|
||||
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
// dd($cawangan_detail);
|
||||
return view('khazanah.laporanscanbarcode', compact('marhun_serah_petibesi','cawangan_detail'));
|
||||
}
|
||||
|
||||
public function LaporanSemakBarcodePDF(){
|
||||
|
||||
$auth_user=Auth::user();
|
||||
$marhun_serah_petibesi=Http::get(config('api.url').'/api/gadai/serah_marhun/khazanah/petibesi/'.$auth_user['cawangan'])->json();
|
||||
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
$pdf=PDF::loadView('khazanah.laporanscanbarcode',compact('marhun_serah_petibesi','cawangan_detail'))->setPaper('A4','landscape');
|
||||
$today_date=date('Y-m-d');
|
||||
$filename="serahan";
|
||||
return $pdf->stream($filename.$today_date.'.pdf');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@
|
||||
|
||||
</div>
|
||||
<div class="row mt-2 d-flex justify-content-center">
|
||||
<a href="#" class="btn btn-info">Laporan Scan Barcode Gadaian</a>
|
||||
<a href="{{ route('laporanscanbarcode') }}" target="_blank" class="btn btn-info">Laporan Scan Barcode Gadaian</a>
|
||||
<a href="#" class="btn btn-info">Senarai Pembatalan No Rujukan</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,254 @@
|
||||
<style>
|
||||
#header {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding:4px;
|
||||
font-size:10px;
|
||||
}
|
||||
|
||||
#header tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#header tr:hover {background-color: #ddd;}
|
||||
|
||||
#header th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
border-collapse: collapse;
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
border-collapse: collapse;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td, #details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#details tr:hover {background-color: #ddd;}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style:bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#sign {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sign td, #sign th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sign tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#sign tr:hover {background-color: #ddd;}
|
||||
|
||||
#sign th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table id="header">
|
||||
<tr>
|
||||
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<table id="scan">
|
||||
<tr>
|
||||
<th colspan ="5"><b>LAPORAN SCAN KEMASUKAN GADAIAN</b></th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th><b> Tarikh Cetak:</b></th>
|
||||
<th>@php $date=date('Y-m-d'); echo $date; @endphp </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"> <b>TARIKH</b></td>
|
||||
<td></td>
|
||||
<td style="width:50px"> @php $date=date('y-m-d'); echo $date; @endphp</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table id="details">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Norujukan</th>
|
||||
<th>Tarikh</th>
|
||||
<th>Masa</th>
|
||||
<th>Penilai</th>
|
||||
<th>Teller</th>
|
||||
<th>Marhun</th>
|
||||
<th>Nilai Marhun</th>
|
||||
<th>Berat</th>
|
||||
</tr>
|
||||
@foreach($marhun_serah_petibesi as $item)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$item['norujukan']}}</td>
|
||||
<td>{{$item['t_gadai']}}</td>
|
||||
<td>{{$item['masa']}}</td>
|
||||
<td>{{$item['penilai']}}</td>
|
||||
<td>{{$item['teller']}}</td>
|
||||
<td>{{$item['marhun']}}</td>
|
||||
<td>{{$item['nilaimarhun']}}</td>
|
||||
<td>{{$item['berat']}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><b>JUMLAH</b></td>
|
||||
<td colspan="5"> </td>
|
||||
<td>
|
||||
@foreach($marhun_serah_petibesi as $item)
|
||||
{{$item['nilaimarhun'] }}
|
||||
@endforeach
|
||||
</td>
|
||||
<td>
|
||||
@foreach($marhun_serah_petibesi as $item)
|
||||
{{$item['berat'] }}
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<table id="sign">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"> .................................................................. </td>
|
||||
<td> </td>
|
||||
<td colspan="2">.................................................................. </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"><B> DI SEMAK</B> </td>
|
||||
<td> </td>
|
||||
<td colspan="2"><B>DI SAHKAN </B></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+2
-3
@@ -51,7 +51,7 @@ Route::get('/tebusseparuh',['as'=>'tebus.separuh','uses'=>'PenebusanController@t
|
||||
Route::get('/gadaiansemasa',['as'=>'gadaian.semasa','uses'=>'GadaianController@gadaiansemasa'])->middleware('auth','penilai');
|
||||
Route::post('/gadaiancetak',['as'=>'gadaian.cetak','uses'=>'GadaianController@cetakSAG'])->middleware('auth','penilai');
|
||||
Route::post('/serahmarhun',['as'=>'marhun.serah','uses'=>'GadaianController@serahMarhun'])->middleware('auth','penilai');
|
||||
|
||||
Route::post('/printsag',['as'=>'printsag','uses'=>'GadaianController@printSAG'])->middleware('auth','penilai');
|
||||
|
||||
//Khazanah
|
||||
Route::get('/menu','KhazanahController@menu')->middleware('auth','khazanah');
|
||||
@@ -60,8 +60,7 @@ Route::get('/khazanahtebus','KhazanahController@tebus')->middleware('auth','khaz
|
||||
Route::get('/kelulusan','KhazanahController@kelulusan')->middleware('auth','khazanah');
|
||||
Route::get('/pendahuluan','KhazanahController@pendahuluan')->middleware('auth','khazanah');
|
||||
Route::get('/serahan','KhazanahController@serahan')->middleware('auth','khazanah');
|
||||
|
||||
Route::post('/printsag',['as'=>'printsag','uses'=>'GadaianController@printSAG'])->middleware('auth','penilai');
|
||||
Route::get('/laporanscanbarcode',['as'=>'laporanscanbarcode','uses'=>'KhazanahController@LaporanSemakBarcode'])->middleware('auth','khazanah');
|
||||
|
||||
Route::post('/barcodescanned',['as'=>'barcode.scanned','uses'=>'KhazanahController@barcodescanned'])->middleware('auth','khazanah');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user