fix notis lelong
This commit is contained in:
@@ -1579,7 +1579,9 @@ class KhazanahController extends Controller
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
return view('khazanah.laporan.lelongan',compact('cawangan_info','api_url'));
|
||||
$senaraibatch = Http::get(config('api.url'). '/api/senaraibatch/aktif/'. $auth_user['cawangan'])->json();
|
||||
|
||||
return view('khazanah.laporan.lelongan',compact('cawangan_info','api_url','senaraibatch'));
|
||||
}
|
||||
|
||||
public function cetaklaporanLelongan(Request $request){
|
||||
@@ -1589,17 +1591,39 @@ class KhazanahController extends Controller
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
$tarikh_cetak = $current->toDateString();
|
||||
if($request->datetimepicker1 == null){
|
||||
$tebus_date = $current->toDateString();
|
||||
}else{
|
||||
$split_date = explode('-',$request->datetimepicker1);
|
||||
$tebus_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
|
||||
}
|
||||
$tebus = Http::get(config('api.url'). '/api/lelongan/laporan/'. $auth_user['cawangan'] .'/'. $tebus_date)->json();
|
||||
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
return view('print.laporan_lelongan', compact('tebus','cawangan_detail','tarikh_cetak','tebus_date','api_url'));
|
||||
if($request->jeniscetakan === 'cetak')
|
||||
{
|
||||
$lelong = Http::get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'],['batchno' => $request->batchno])->json();
|
||||
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
return view('print.laporan_lelongan', compact('lelong','cawangan_detail','api_url','tarikh_cetak'));
|
||||
|
||||
}else if($request->jeniscetakan === 'excel')
|
||||
{
|
||||
|
||||
$lelong = Http::get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'],['batchno' => $request->batchno])->json();
|
||||
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
return view('print.laporan_lelongan_excel', compact('lelong','cawangan_detail','api_url','tarikh_cetak'));
|
||||
|
||||
}else if($request->jeniscetakan === 'pdf'){
|
||||
|
||||
$lelong = Http::get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'],['batchno' => $request->batchno])->json();
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
$cawangan = Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
|
||||
$pdf=PDF::loadView('print.notislelong', compact('cawangan_info','api_url','cawangan_detail','lelong','tarikh_cetak'))->setPaper('A4','potrait');
|
||||
return $pdf->download('notislelong_'.$tarikh_cetak.'.pdf');
|
||||
|
||||
// return $pdf->stream('notislelong_'.$tarikh_cetak.'.pdf');
|
||||
// return view('print.notislelong', compact('cawangan_info','api_url','cawangan_detail','lelong','tarikh_cetak'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function laporanAnsuran(){
|
||||
@@ -3439,6 +3463,20 @@ class KhazanahController extends Controller
|
||||
return view('print.laporan_saghilang', compact('polis','cawangan_detail','date','tarikh_cetak','api_url'));
|
||||
}
|
||||
|
||||
public function NotisLelong()
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
$cawangan = Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
// $loopalasan = Http::get(config('api.url') . '/api/lookupalasan/')->json();
|
||||
|
||||
return view('print.notislelong', compact('cawangan_info','api_url','cawangan_detail'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Vendored
+2759
File diff suppressed because one or more lines are too long
Vendored
+15
File diff suppressed because one or more lines are too long
@@ -20,7 +20,7 @@
|
||||
<a href="{{ route('laporan.gadaian') }}" class="btn btn-dark btn-lg btn-block mb-3">Gadaian</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="#" class="btn btn-dark btn-lg btn-block mb-3">Lelongan</a>
|
||||
<a href="{{ route('laporan.lelongan') }}" class="btn btn-dark btn-lg btn-block mb-3">Lelongan</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="{{ route('laporan.pelangganbaru') }}" class="btn btn-dark btn-lg btn-block mb-3">Pelanggan Baru</a>
|
||||
|
||||
@@ -21,123 +21,73 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<form action="{{ route('lelongan.laporancetak') }}" target="_blank" method="post">
|
||||
@csrf
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon1">Tarikh</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datetimepicker1" name="datetimepicker1" aria-describedby="basic-addon1">
|
||||
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Cetak">
|
||||
</div>
|
||||
</form>
|
||||
<div class="col-md-12">
|
||||
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead class="bg-dark">
|
||||
<tr>
|
||||
<th scope="col">No.</th>
|
||||
<th scope="col">Batch No.</th>
|
||||
<th scope="col">Bilangan Aktif</th>
|
||||
<th scope="col">Tarikh Lelong</th>
|
||||
<th scope="col">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($senaraibatch as $index=>$sb)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $sb['batchno'] }}</td>
|
||||
<td class="text-danger font-weight-bold">{{ $sb['total'] }}</td>
|
||||
<td>{{ $sb['t_lelong'] }}</td>
|
||||
<td class="text-center">
|
||||
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'cetak','batchno' => $sb['batchno']]) }}" class="btn btn-info text-white">Cetak</a>
|
||||
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'excel','batchno' => $sb['batchno']]) }}" target="_blank" class="btn btn-success text-white">Excel</a>
|
||||
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'pdf','batchno' => $sb['batchno']]) }}" target="_blank" class="btn btn-danger text-white">PDF</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table class="table table-striped table-hover" id="myTable">
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Penggadai</th>
|
||||
<th>N. Marhun Asal</th>
|
||||
<th>Pembiayaan</th>
|
||||
<th>U.Simpan</th>
|
||||
<th>C.Lel</th>
|
||||
<th>Harga Lel</th>
|
||||
<th>Baki</th>
|
||||
<th>Harga Asas</th>
|
||||
<th>Pembeli</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
Bilangan Surat : <span id="bilangan_surat">3</span>
|
||||
Jumlah Pinjaman : <span id="jumlah_pinjaman">RM 3,000.00</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var kodcaw = "<?php echo $cawangan_info['kodcaw'] ?>";
|
||||
<script>
|
||||
|
||||
var tabletebus = $('#myTable').DataTable({
|
||||
"ordering": false
|
||||
});
|
||||
$(document).ready( function () {
|
||||
$('#datetimepicker1').datepicker({
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
var current = new Date();
|
||||
var current_date = current.getDate();
|
||||
var current_month = current.getMonth()+1;
|
||||
var current_year = current.getFullYear();
|
||||
var today_date = current_year + '-' +current_month+'-'+current_date;
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url: api_url + '/api/lelongan/laporan/'+kodcaw+'/' + today_date,
|
||||
success: function(tebus){
|
||||
tebustable(tebus);
|
||||
}
|
||||
});
|
||||
});
|
||||
// function FuncPrint(meth)
|
||||
// {
|
||||
// let jeniscetakan = meth.value;
|
||||
|
||||
// if(jeniscetakan === 'cetak')
|
||||
// {
|
||||
// let urlroute = '{{ route("lelongan.laporancetak", ":id") }}';
|
||||
// urlroute = urlroute.replace(':id', jeniscetakan);
|
||||
// window.open(urlroute, '_blank');
|
||||
|
||||
// }else if(jeniscetakan === 'excel')
|
||||
// {
|
||||
// let urlroute = '{{ route("lelongan.laporancetak", ":id") }}';
|
||||
// urlroute = urlroute.replace(':id', jeniscetakan);
|
||||
// window.open(urlroute, '_blank');
|
||||
|
||||
// }else{
|
||||
// console.log('tiada cetakan');
|
||||
// }
|
||||
// }
|
||||
|
||||
$('#datetimepicker1').change(function(){
|
||||
var input_date = this.value;
|
||||
var split_date = input_date.split('-');
|
||||
var today_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url: api_url + '/api/lelongan/laporan/'+kodcaw+'/' + today_date,
|
||||
success: function(tebus){
|
||||
tebustable(tebus);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function tebustable(data){
|
||||
var counter = 1;
|
||||
var total_pinjaman = 0;
|
||||
tabletebus.clear().draw();
|
||||
$.each(data,function(index,tebus){
|
||||
$.ajax({
|
||||
url:api_url + '/api/gadai/norujukan/' + tebus['norujukan'],
|
||||
method:'get',
|
||||
success:function(gadai){
|
||||
$.ajax({
|
||||
url:api_url + '/api/customers/' + gadai[0][0]['nokp'],
|
||||
method:'get',
|
||||
success: function(customer){
|
||||
tabletebus.row.add([
|
||||
counter,
|
||||
tebus['norujukan'],
|
||||
customer['nama'] + "<br>" +gadai[0][0]['nokp'],
|
||||
tebus['nilaimarhun'],
|
||||
tebus['pinjaman'],
|
||||
tebus['bakiupah'],
|
||||
tebus['cajlelong'],
|
||||
tebus['hargajual'],
|
||||
tebus['baki'],
|
||||
tebus['hargaasas'],
|
||||
tebus['nama'] + "<br>" + tebus['nokp'],
|
||||
''
|
||||
]).draw();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
|
||||
<table id="scan">
|
||||
<tr>
|
||||
<th colspan ="5"><b>LAPORAN LELONGAN</b></th>
|
||||
<th colspan ="5"><b>LAPORAN LELONGAN AKTIF</b></th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th><b> Tarikh Cetak:</b>
|
||||
@@ -177,22 +177,6 @@
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"> <b>TARIKH</b></td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp</td>
|
||||
<td style="width:50px">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
@@ -200,18 +184,25 @@
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Penggadai</th>
|
||||
<th>N. Marhun Asal</th>
|
||||
<th>JBG</th>
|
||||
<th>IC</th>
|
||||
<th>Pembiayaan</th>
|
||||
<th>U.Simpan</th>
|
||||
<th>C.Lel</th>
|
||||
<th>Harga Lel</th>
|
||||
<th>Baki</th>
|
||||
<th>Harga Asas</th>
|
||||
<th>Pembeli</th>
|
||||
<th>Keuntungan 6 Bulan</th>
|
||||
<th>Bayaran Telah Dibuat</th>
|
||||
</tr>
|
||||
@php $counter = 1;$totalnilaimarhun = 0; $totalpinjaman = 0; $totalupahsimpan = 0; $totalclel = 0; $totalhargalel = 0; $totalbaki = 0; $totalhargaasas = 0; $totalbakilelong = 0; $totalrugilelong = 0; @endphp
|
||||
@foreach($tebus as $index=>$item)
|
||||
@foreach($lelong as $index=>$item)
|
||||
<tr class="text-center">
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $item['norujukan'] }}</td>
|
||||
<td>{{ $item['JBG'] }}</td>
|
||||
<td>{{ $item['IC'] }}</td>
|
||||
<td>{{ number_format($item['Pembiayaan'],2) }}</td>
|
||||
<td>{{ number_format($item['upah6'],2) }}</td>
|
||||
<td>{{ number_format($item['bayaran'],2) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
{{-- @php $counter = 1;$totalnilaimarhun = 0; $totalpinjaman = 0; $totalupahsimpan = 0; $totalclel = 0; $totalhargalel = 0; $totalbaki = 0; $totalhargaasas = 0; $totalbakilelong = 0; $totalrugilelong = 0; @endphp
|
||||
@foreach($lelong as $index=>$item)
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{$item['norujukan']}}</td>
|
||||
@@ -303,7 +294,7 @@
|
||||
<td></td>
|
||||
<td colspan="2"><B> Diterima Oleh</B> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tr> --}}
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,253 @@
|
||||
<script src="{{ asset('js/table2excel.js') }}"></script>
|
||||
|
||||
<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 LELONGAN</b></th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th><b> Tarikh Cetak:</b>
|
||||
{{-- @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp --}}
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px"> <b>TARIKH</b></td>
|
||||
<td>
|
||||
{{-- @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp --}}
|
||||
</td>
|
||||
<td style="width:50px">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table id="details">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Nama</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Telefon</th>
|
||||
<th>Telefon2</th>
|
||||
<th>JBG</th>
|
||||
<th>IC</th>
|
||||
<th>Pembiayaan</th>
|
||||
<th>Keuntungan 6 Bulan</th>
|
||||
<th>Bayaran Telah Dibuat</th>
|
||||
</tr>
|
||||
@foreach($lelong as $index=>$item)
|
||||
<tr class="text-center">
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $item['nama'] }}</td>
|
||||
<td>{{ $item['norujukan'] }}</td>
|
||||
<td>@php $telefon = str_replace("-","",$item['telefon1']); echo substr($telefon,0,3) . '-' . substr($telefon,3); @endphp</td>
|
||||
<td>@php $telefon = str_replace("-","",$item['telefon2']); echo substr($telefon,0,3) . '-' . substr($telefon,3); @endphp</td>
|
||||
<td>{{ $item['JBG'] }}</td>
|
||||
<td>{{ substr($item['IC'],0,6) . '-' .substr($item['IC'],6,2) . '-' . substr($item['IC'],8) }}</td>
|
||||
<td>{{ $item['Pembiayaan'] }}</td>
|
||||
<td>{{ $item['upah6'] }}</td>
|
||||
<td>{{ $item['bayaran'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function () {
|
||||
// window.print();
|
||||
// window.onfocus=function(){ window.close();}
|
||||
var table2excel = new Table2Excel();
|
||||
table2excel.export(document.querySelectorAll("#details"),'laporan_lelongan');
|
||||
setTimeout(function(){ window.close() }, 1000);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,249 @@
|
||||
<style>
|
||||
#header {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding:4px;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
#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;
|
||||
}
|
||||
.container{
|
||||
page-break-after:always;
|
||||
padding: 20px 20px 20px 20px;
|
||||
}
|
||||
.tablestyle{
|
||||
font-size:12px;
|
||||
}
|
||||
.tablestyle td, .tablestyle th{
|
||||
/* padding-top: 12px; */
|
||||
/* border:1px solid black; */
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
@foreach($lelong as $index=>$lel)
|
||||
<div class="container">
|
||||
<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">{{ $cawangan_detail['namacaw'] }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat2'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ ' No Tel : '. $cawangan_detail['notel'] . ' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br><br>
|
||||
|
||||
|
||||
<div>
|
||||
<table class="tablestyle">
|
||||
<tr>
|
||||
<td>TARIKH CETAK
|
||||
</td>
|
||||
<td>:</td>
|
||||
<td width="10%">@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
@endphp
|
||||
<td colspan="3"></td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>NO RUJUKAN</td>
|
||||
<td>:</td>
|
||||
<td>{{ $lel['norujukan'] }}</td>
|
||||
<td> </td>
|
||||
<td>NO TELEFON</td>
|
||||
<td>:</td>
|
||||
<td>{{ $lel['telefon1'] }}</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>KEPADA</td>
|
||||
<td>:</td>
|
||||
<td>{{ $lel['nama'] }}<br> {{ strtoupper($lel['alamat']) }}<br> {{ ' ' . $lel['poskod'] . ' ' . strtoupper($lel['daerah']) . ' ' . strtoupper($lel['negeri'])}}</td>
|
||||
<td></td>
|
||||
<td>NO K/P</td>
|
||||
<td>:</td>
|
||||
<td> {{ $lel['IC'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<p>Tuan/Puan,</p>
|
||||
<h4>LELONGAN BARANGAN GADAIAN SECARA TENDER PADA
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lel['tarikhlelong']);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
|
||||
@endphp</h4>
|
||||
<p>Dengan hormatnya kami ingin memaklumkan bahawa barang-barang cagaran tuan/puan yang digadai di cawangan seperti di atas akan dilelong.</p>
|
||||
|
||||
<p>Butiran lelongan adalah seperti berikut :-</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Tarikh</td>
|
||||
<td>:</td>
|
||||
<td> @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lel['tarikhlelong']);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
@endphp</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cawangan</td>
|
||||
<td>:</td>
|
||||
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Waktu</td>
|
||||
<td>:</td>
|
||||
<td>{{ date('H:i',strtotime($lel['masa'])). ' pagi' }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p>Tuan/Puan adalah dikehendaki untuk membuat urusan berikut <b>pada atau sebelum
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lel['tarikhlelong'] );
|
||||
$datez = $myDateTime->modify('-2 day')->format('d-m-Y');
|
||||
echo($datez);
|
||||
|
||||
@endphp:-</b></p>
|
||||
|
||||
{{-- Customise Ayat pelelong--}}
|
||||
<p>1. Tebus sepenuhnya</p>
|
||||
<p>2. Tebus gadai semula</p>
|
||||
<p>2. Bayar upah sepenuhnya dan tempoh akan dilanjutkan sehingga 12 bulan bagi tempoh gadaian.</p>
|
||||
<br>
|
||||
{{-- Customise Ayat pelelong --}}
|
||||
<p>Sekiranya tuan/puan masih tidak berurusan sehingga tarikh dinyatakan, maka pihak kami berhak menjual secara lelongan awam barang gadaian tersebut.</p>
|
||||
<i>*Permohonan tangguh lelong adalah tidak dibenarkan.</i>
|
||||
<br>
|
||||
<p>Notis:</p>
|
||||
<i>Sila bawa bersama Surat Akaun Gadai (SAG) untuk sebarang urusan.</i>
|
||||
<br>
|
||||
<i>Sila abaikan notis ini sekiranya penebusan telah dibuat.</i>
|
||||
|
||||
<p>Surat ini adalah cetakan komputer dan tiada tandatangan diperlukan</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
+3
-1
@@ -187,7 +187,7 @@ Route::put('/simpantuntutbaki',['as'=>'lelong.tuntutbaki','uses'=>'LelongControl
|
||||
|
||||
//Laporan Baru
|
||||
Route::get('/laporan/lelongan',['as'=>'laporan.lelongan','uses'=>'KhazanahController@laporanLelongan'])->middleware('auth','khazanah');
|
||||
Route::post('laporan/lelongan/cetak',['as'=>'lelongan.laporancetak','uses'=>'KhazanahController@cetaklaporanLelongan'])->middleware('auth','khazanah');
|
||||
Route::get('laporan/lelongan/cetakan',['as'=>'lelongan.laporancetak','uses'=>'KhazanahController@cetaklaporanLelongan'])->middleware('auth','khazanah');
|
||||
Route::get('/laporan/homepage/ansuranupah',['as'=>'homepage.ansuranupah','uses'=>'KhazanahController@PemilihanAnsUpah'])->middleware('auth','khazanah');
|
||||
Route::get('/laporan/upah',['as'=>'laporan.upah','uses'=>'KhazanahController@LaporanUpah'])->middleware('auth','khazanah');
|
||||
Route::post('laporan/upah/cetak',['as'=>'upah.laporancetak','uses'=>'KhazanahController@cetaklaporan_Upah'])->middleware('auth','khazanah');
|
||||
@@ -237,6 +237,8 @@ Route::post('laporan/saghilang/cetak',['as'=>'saghilang.laporancetak','uses'=>'K
|
||||
// Route::get('/laporan/agingbulanan', [ 'as'=>'laporan.agingbulanan', 'uses'=>'KhazanahController@laporanAging_Bulanan'])->middleware('auth','khazanah');
|
||||
// Route::post('/laporan/agingbulanan/cetak', ['as'=>'agingbulan.cetaklaporan', 'uses'=>'KhazanahController@cetaklaporang_Aging'])->middleware('auth','khazanah');
|
||||
|
||||
Route::get('laporan/lelongan/notislelong/',['as'=>'lelongan.notis','uses'=>'KhazanahController@NotisLelong']);
|
||||
|
||||
|
||||
Route::get('/laporan/komoditi',['as'=>'laporan.komoditi','uses'=>'KomuditiController@cetakRekodKomoditi']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user