update scan barcode pembida

This commit is contained in:
Nur Izzati Zulkifli
2022-11-27 01:21:30 +08:00
parent 33a972f116
commit 538ce1dd0c
11 changed files with 346 additions and 51 deletions
+92 -4
View File
@@ -22,6 +22,7 @@ use App\Models\LelKarat;
use App\Models\LelKarat_temp;
use App\Models\Pengesahan;
use App\Models\GadaiMarhun;
use App\Models\LelongBidder;
use App\Models\ScanSemak;
use App\Models\TangguhLelong;
use Carbon\Carbon;
@@ -2058,6 +2059,22 @@ class MarhunController extends Controller
public function listScanBarcodejual($lelong_id)
{
// $user = Auth::user();
// $caw = Cawangan::where('caw_code', '=', $user->kodcaw)->first();
// $lelongDetail = Lelong::where('id', '=', $lelong_id)->first();
// $lelongbid = LelongBid::where('lelong_id', '=', $lelong_id)
// ->where('status_payment', '=', '1')
// ->where('caw_id', '=', $caw->id)
// ->get();
// $senaraiScanKeluar = ScanSemak::where('lelong_id', '=', $lelong_id)
// ->where('kodcaw', '=', $caw->caw_code)
// ->where('serahkpdpembida', '=', '1')
// ->orderBy('id', 'desc')
// ->get();
// dd($senaraiScanKeluar);
$user = Auth::user();
$caw = Cawangan::where('caw_code', '=', $user->kodcaw)->first();
@@ -2065,16 +2082,36 @@ class MarhunController extends Controller
$lelongbid = LelongBid::where('lelong_id', '=', $lelong_id)
->where('status_payment', '=', '1')
->where('caw_id', '=', $caw->id)
->select('id')
->get()
->keyBy('id');
foreach ($lelongbid as $index => $value) {
$namabidder = LelongBidder::
where('lelongbid_id', '=', $value['id'])
// ->where('lelongbid.kodcaw', '=', $user->kodcaw)
->where('lelongbidder.status_bidder','=','1')
->select('lelongbidder.lelongbid_id','lelongbidder.nama_bidder')
->get();
// dump($namabidder);
$lelongbid[$index]['nama_bidder'] = $namabidder;
}
// dd($namabidder);
$senaraiScanKeluar = ScanSemak::where('lelong_id', '=', $lelong_id)
->where('kodcaw', '=', $caw->caw_code)
->where('serahkpdpembida', '=', '1')
->orderBy('id', 'desc')
// ->whereNull('scan_masuk')
->get();
// dd($senaraiScanKeluar);
return view('marhun.scanbarcodejual', compact('lelong_id', 'lelongDetail', 'lelongbid', 'senaraiScanKeluar'));
$pluckLelongBid = $lelongbid->pluck('id')->toArray();
$pluckScanKeluar = $senaraiScanKeluar->pluck('lelongbid_id')->toArray();
$diff_lelong_bid = array_diff($pluckLelongBid, $pluckScanKeluar);
$new_lelong_bid = LelongBid::with('scanSemakSelesaiJual')
->whereIn('id', $diff_lelong_bid)
->get();
// dd($new_lelong_bid);
return view('marhun.scanbarcodejual', compact('namabidder','new_lelong_bid','lelong_id', 'lelongDetail', 'lelongbid', 'senaraiScanKeluar'));
}
public function scanKeluarMarhunjual(Request $request)
{
@@ -2280,6 +2317,57 @@ class MarhunController extends Controller
return $this->marhunPhotoService->show($request->lelong_id, $marhun);
}
public function exportmarhundetailspembida($lelong_id)
{
$user = Auth::user();
//dd($user);
$lelongs = LelongBid::join('lelongbidder', 'lelongbidder.lelongbid_id', '=', 'lelongbid.id')
->where('lelongbid.lelong_id', '=', $lelong_id)
->where('lelongbid.kodcaw', '=', $user->kodcaw)
->where('lelongbidder.status_bidder','=','1')
->where('lelongbid.status_jual', '=', 1)
->where('lelongbid.status_payment', '=', 1)
->select('lelongbid.id','lelongbid.norujukan','lelongbidder.nama_bidder')
->orderBy('lelongbid.norujukan')
->get();
// ->toArray();
// dd($lelongs);
$arraycaw = [];
$total_berat = 0;
$berat = 0;
$total_harga = 0;
$harga = 0;
$total_nmarhun = 0;
$nilai_marhun = 0;
$total_hargaasas = 0;
$hargaasas = 0;
foreach ($lelongs as $index1 => $lelong) {
$marhun = LelongBidMarhun::where('lelongbid_id', '=', $lelong['id'])->get();
$total_berat = $total_berat + $marhun->sum('berat');
$lelongs[$index1]['detailmarhun'] = $marhun;
}
// dd( $total_berat );
array_push($arraycaw, [
'berat' => $berat,
'harga' => $harga,
'n_marhun' => $nilai_marhun,
'hargaasas' => $hargaasas,
]);
$pdf = PDF::loadView('pdf.marhundetailspembida', compact('lelongs', 'arraycaw', 'total_nmarhun', 'total_berat', 'total_harga', 'total_hargaasas'))->setPaper('a4', 'potrait');
return $pdf->download('Senarai Marhun Pembida.pdf');
}
}
+5
View File
@@ -81,4 +81,9 @@ class LelongBid extends Model
{
return $this->hasOne(Payment::class, 'norujukan', 'norujukan')->where('status', 2);
}
public function scanSemakSelesaiJual()
{
return $this->hasMany(ScanSemak::class, 'lelongbid_id', 'id')->whereNotNull('serahkpdpembida');
}
}
@@ -3,9 +3,16 @@
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto p-4">
<div class="col mx-auto p-4">
<div class="card">
<div class="card-header">Scan Barcode Serahan Marhun Kepada Pembida</div>
<div class="card-header header-style">
<a href="{{ route('marhun.senarailelongscanjual') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Scan Barcode Keluar Kepada Pembida
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert mt-2 alert-success">
@@ -16,7 +23,7 @@
<p>{{ $message }}</p>
</div>
@endif
<a class="btn btn-secondary mb-1" href="{{route('marhun.senarailelongscan')}}">Kembali</a>
{{-- <a class="btn btn-secondary mb-1" href="{{route('marhun.senarailelongscan')}}">Kembali</a> --}}
<p>Tarikh Lelong:
@php
@@ -37,7 +44,18 @@
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="senarai" role="tabpanel" aria-labelledby="senarai-tab">
<table class='table table-bordered table-hover' id='table-senarai'>
<div class="row justify-content-center mb-4">
<div class="col-5">
<form action="{{ route('marhun.scankeluarmarhunjual') }}" method="POST">
@csrf
<div style="text-align: center;">Scan Barcode Marhun Untuk Serah Kepada Pembida</div>
<input type="text" style="text-align: center;" class="form-control" name="norujukan_barcode" autocomplete="off" id="norujukan_barcode" placeholder="SILA SCAN BARCODE PADA SAG" />
<input type="hidden" name="lelong_id" value="{{$lelong_id}}">
</form>
</div>
</div>
<table class="table text-center table-bordered" id='table-scan-jual'>
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
@@ -45,16 +63,23 @@
<th>Marhun</th>
<th>N. Marhun</th>
<th>Berat</th>
{{-- <th>Nama Pembida</th> --}}
</tr>
</thead>
<tbody>
@foreach($lelongbid as $index)
@foreach($new_lelong_bid as $index)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$index->norujukan}}</td>
<td>{{$index->marhun}}</td>
<td>{{ number_format($index->nilaimarhun, 2, '.', ',')}}</td>
<td>{{$index->berat}}</td>
{{-- <td>
@foreach($namabidder as $index=>$nama)
{{ $namabidder[0]['nama_bidder']}}
@endforeach
</td> --}}
</tr>
@endforeach
</tbody>
@@ -63,13 +88,13 @@
<div class="tab-pane fade" id="scan-keluar" role="tabpanel" aria-labelledby="scan-keluar-tab">
<div class="row justify-content-center mb-4">
<div class="col-5">
<form action="{{ route('marhun.scankeluarmarhunjual') }}" method="POST">
{{-- <form action="{{ route('marhun.scankeluarmarhunjual') }}" method="POST">
@csrf
<div style="text-align: center;">Scan Barcode Marhun Serahan Kepada Pembida</div>
<input type="text" style="text-align: center;" class="form-control" name="norujukan_barcode" autocomplete="off" id="norujukan_barcode" placeholder="SILA SCAN BARCODE PADA SAG" />
<input type="hidden" name="lelong_id" value="{{$lelong_id}}">
</form>
</form> --}}
</div>
</div>
<div style="text-align: left;"> <a href="{{ route('marhun.cetakkeluarscanbarcodejual', $lelong_id) }}" class="btn btn-info">Laporan Serahan Kepada Pembida</a><br></div>
@@ -8,7 +8,7 @@
<div class="card">
<div class="card-header header-style">
<div class="header-style-title">
Senarai Lelongan Scan Kepada Pembida
Senarai Batch Lelongan (Scan Barcode Keluar Marhun Kepada Pembida)
</div>
</div>
<div class="card-body">
@@ -22,7 +22,7 @@
</div>
@endif
{{-- <h4> Senarai Lelongan Scan Kepada Pembida</h4> --}}
<table class="table table-striped table-xl text-center" id="senarailelongonline" style="width:100%">
<table class="table table-bordered text-center" id="senarailelongonline" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>No</th>
@@ -49,8 +49,8 @@
</td>
<td>
@if($lel['info']['sts_lelong'] == 3)
<a href="{{ route('marhun.exportmarhundetails', ['lelong_id'=>$lel['info']['lelong_id']]) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Senarai Marhun" style="margin-right:40px"><i class="fas fa-download"></i></a>
<a href=" {{ route('marhun.scanbarcodejual', ['lelong_id'=>$lel['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Serahan Kepada Pembida"><i class="far fa-edit"></i></a>
<a class="btn m-1 btn-warning" href="{{ route('marhun.exportmarhundetailspembida', ['lelong_id'=>$lel['info']['lelong_id']]) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Senarai Marhun" style="margin-right:40px"><i class="fas fa-download"></i></a>
<a class="btn m-1 btn-info" href=" {{ route('marhun.scanbarcodejual', ['lelong_id'=>$lel['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Serahan Kepada Pembida"><i class="far fa-edit"></i></a>
@endif
</td>
</tr>
@@ -0,0 +1,158 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<style>
#sim {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size:10px;
border-collapse: collapse;
width: 100%;
}
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
border: 1px solid;
padding: 1px;
text-align: left;
}
#sim tr:nth-child(even){}
#sim tr:hover {}
#sim th {
text-align: left;
border: 1px solid;
table-layout:auto;
color: black;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}
* {
box-sizing: border-box;
}
.row {
margin-left:-5px;
margin-right:-5px;
}
.column {
float: left;
width: 100%;
padding: 5px;
}
/* Clearfix (clear floats) */
.row::after {
content: "";
clear: both;
display: table;
}
table {
border-collapse: collapse;
border-spacing: 0;
width: 200%;
/* border: 0px solid #ddd; */
}
th, td {
text-align: left;
padding: 16px;
}
tr:nth-child(even) {
/* background-color: #f2f2f2; */
}
</style>
<body>
<table width="100%" border="0" id="sim">
<tr>
<td width="50%"><h3>PERMODALAN KELANTAN BERHAD</h3></td>
</tr>
<tr>
<td colspan="2"><u><b>LAPORAN SENARAI MARHUN PEMBIDA</b></u></td>
</tr>
</table>
<br><br>
<table class="table table-bordered text-center" cellspacing="0" cellpadding="5" style="float:right;" border="1" width="100%" height="80" align="left" id="sim">
<thead>
<tr>
<th width="2%" align="left">No</th>
<th width="15%" align="left">No Rujukan </th>
<th width="10%" align="left">Jenis Marhun</th>
<th width="10%" align="left">Karat</th>
<th width="10%" align="left">Berat(gm)</th>
{{-- <th width="12%" align="left">Harga(RM)</th>
<th width="12%" align="left">Nilai Marhun(RM)</th>
<th width="14%" align="left">Harga Asas(RM)</th> --}}
<th width="13%" align="left">Nota</th>
<th width="13%" align="left">Nama Pembeli</th>
</tr>
</thead>
@foreach ($lelongs as $marhun)
<tr>
<td>{{ $loop->iteration }} </td>
<td>{{ $marhun['norujukan'] }}</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['marhun'] }}<br>
@endforeach</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['karat'] }}<br>
@endforeach</td>
<td align = 'text-right'>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['berat'] }}<br>
@endforeach</td>
{{-- <td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['harga'] }}<br>
@endforeach</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['n_marhun'] }}<br>
@endforeach</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['hargaasas'] }}<br>
@endforeach</td> --}}
<td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['nota'] }}<br>
@endforeach</td>
<td style='white-space:nowrap;'>{{$marhun['nama_bidder']}}</td>
</tr>
{{-- <tr>
<td colspan="4" align="left"></td>
<td>{{dd($marhun['detailmarhun'][berat])}}{{ number_format($marhun['detailmarhun']['berat'], 2, '.', ',') }}</td>
<td></td>
<td></td>
</tr> --}}
@endforeach
@foreach ($arraycaw as $index=>$caw)
<tr>
<td colspan="4" align="left"><strong>Jumlah Keseluruhan</strong></td>
<td><strong>{{ number_format($total_berat, 2, '.', ',') }}</strong></td>
{{-- <td><strong>{{ number_format($total_harga, 2, '.', ',') }}</strong></td>
<td><strong>{{ number_format($total_nmarhun, 2, '.', ',') }}</strong></td>
<td><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td> --}}
<td></td>
<td></td>
</tr>
@endforeach
</table>
</tbody>
@@ -143,7 +143,7 @@
</div>
@elseif($statuspayment->opencash == '1' && $statuspayment->status_payment == '1')
<div class="text-right">
<button type="button" class="btn btn-primary" style="width:15%" >Telah Selesai Bayaran</button>
<button type="button" class="btn btn-success" style="width:15%" >Telah Selesai Bayaran</button>
</div>
@endif
{{-- <div>
@@ -61,11 +61,11 @@
@endif
</td>
<td align="center">
<a href="{{ route('serahan.penyatabayaran',['user_id'=>$winner['details']['id'],'lelong_id'=>$lelong_id]) }}" target = "blank" data-toggle="tooltip" data-placement="top" title="Muat Turun Penyata Bayaran" ><i class="fas fa-download"></i></a>
<a class="btn m-1 btn-warning" href="{{ route('serahan.penyatabayaran',['user_id'=>$winner['details']['id'],'lelong_id'=>$lelong_id]) }}" target = "blank" data-toggle="tooltip" data-placement="top" title="Muat Turun Penyata Bayaran" ><i class="fas fa-download"></i></a>
</td>
<td align="center">
<a href="{{ route('serahan.slipserahan',['user_id'=>$winner['details']['id'],'lelong_id'=>$lelong_id]) }}" target = "blank" data-toggle="tooltip" data-placement="top" title="Muat Turun Slip Serahan" ><i class="fas fa-download"></i></a>
<a class="btn m-1 btn-success" href="{{ route('serahan.slipserahan',['user_id'=>$winner['details']['id'],'lelong_id'=>$lelong_id]) }}" target = "blank" data-toggle="tooltip" data-placement="top" title="Muat Turun Slip Serahan" ><i class="fas fa-download"></i></a>
</td>
{{-- <td>
@@ -55,7 +55,7 @@
<button class="btn btn-success btn-sm" disabled>LELONG SELESAI</button>
@endif
</td>
<td><a href=" {{ route('pembayaran.kaunterpembayaran', ['lelong_id'=>$data['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a></td>
<td><a class="btn m-1 btn-primary" href=" {{ route('pembayaran.kaunterpembayaran', ['lelong_id'=>$data['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a></td>
</tr>
@endforeach
</tbody>
@@ -3,7 +3,14 @@
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-12 mx-auto card">
<div class="col mx-auto p-4">
<div class="card">
<div class="card-header header-style">
<div class="header-style-title">
Butiran Gadaian Mengikut Cawangan Lelongan Fasa {{$fasa}}
</div>
</div>
<div class="card-body">
@if ($message = Session::get('failed'))
<div class="alert alert-danger" style="margin-top:1%;">
<p>{{ $message }}</p>
@@ -14,7 +21,7 @@
<div class="alert alert-info">{{ Session::get('message') }}</div>
@endif --}}
<h3 class="pt-3" style="margin-left:1%;">Butiran Gadaian Mengikut Cawangan Lelongan Fasa {{$fasa}}</h3>
{{-- <h3 class="pt-3" style="margin-left:1%;">Butiran Gadaian Mengikut Cawangan Lelongan Fasa {{$fasa}}</h3> --}}
<!-- <form action="{{route('analisa.janadata')}}" method="POST" enctype="multipart/form-data"> -->
<form action="{{route('analisa.janadata2')}}" method="POST" enctype="multipart/form-data">
<!-- <form action="{{route('analisa.importgadaifrommaster')}}" method="POST" enctype="multipart/form-data"> -->
@@ -56,7 +63,7 @@
</div>
</div>
</div>
<table class="table table-striped table-xl text-center" id="senaraitemp" style="width:100%">
<table class="table text-right table-bordered" id="senaraitemp" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th><input type="checkbox" aria-label="Checkbox for following text input" class="check_all"></th>
@@ -72,13 +79,14 @@
</tr>
</thead>
<tbody>
@php $count = 1; @endphp
@foreach($senarai as $send)
@if($send['bil_lelong'] > 0)
<tr>
<td><input type="checkbox" aria-label="Checkbox for following text input" name="caw[]" id="caw" value = "{{ $send['kodcaw'] }}" class="custom_name"></td>
<td>{{ $loop->iteration }}</td>
<td>{{ $send['kodcaw'] }}</td>
<td>{{ $count++ }}</td>
<td>{{ $send['kodcaw'] }}</td>
<td >{{ $send['caw_name'] }}</td>
<td>{{ $send['bil_lelong'] }} </td>
<td>{{ number_format($send['total_berat'], 2) }} </td>
@@ -3,10 +3,20 @@
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-12 mx-auto card">
</div>
<button type="button" class="btn btn-light" ><a href="javascript:window.history.go(-1);"><h3><i class="fas fa-arrow-alt-circle-left"></i></h3></a></button>
<h3 class="pt-3" style="margin-bottom:2%; margin-top:1%;">Butiran Gadaian Cawangan {{ $details }}</h3>
<div class="col mx-auto p-4">
<div class="card">
<div class="card-header header-style">
<a href="javascript:window.history.go(-1);" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Butiran Gadaian Cawangan {{ $details }}
</div>
</div>
<div class="card-body">
{{-- <button type="button" class="btn btn-light" ><a href="javascript:window.history.go(-1);"><h3><i class="fas fa-arrow-alt-circle-left"></i></h3></a></button>
<h3 class="pt-3" style="margin-bottom:2%; margin-top:1%;">Butiran Gadaian Cawangan {{ $details }}</h3> --}}
@if ($message = Session::get('failed'))
<div class="alert alert-danger">
@@ -16,7 +26,7 @@
<form action="{{route('analisa.senaraitempsimulasi')}}" id="formtlelong" method="POST">
@csrf
<table class="table table-striped table-xl text-center" id="detailsgadai" style="width:100%; margin-top:1%;">
<table class="table text-right table-bordered" id="detailsgadai" style="width:100%; margin-top:1%;">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
@@ -24,12 +34,12 @@
<th>No Kad Pengenalan</th>
<th>Tempoh</th>
<th>Berat (gm)</th>
<th>Nilai Marhun Asal(RM)</th>
<th>Pembiayaan (RM)</th>
<th>Baki Pembiayaan (RM)</th>
<th>Keuntungan 6 Bulan (RM)</th>
<th>Keuntungan Telah Bayar (RM)</th>
<th>Keuntungan 6 Bulan (RM)</th>
<th>Keuntungan Semasa (RM)</th>
<th>Nilai Marhun (RM)</th>
<th>Tamat Kontrak</th>
</tr>
@@ -38,17 +48,17 @@
@foreach($getsurat as $surat)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $surat['list_norujukan'][0]['norujukan'] }}</td>
<td style='white-space:nowrap;'>{{ $surat['list_norujukan'][0]['norujukan'] }}</td>
<td>{{ $surat['list_norujukan'][0]['nokp'] }}</td>
<td>{{ $surat['list_norujukan'][0]['tempoh'] }}</td>
<td>{{ number_format($surat['list_norujukan'][0]['nilaimarhun'], 2, '.', ',') }}</td>
<td>{{ number_format($surat['list_norujukan'][0]['berat'] , 2, '.', ',') }}</td>
<td>{{ number_format($surat['list_norujukan'][0]['pinjaman'] , 2, '.', ',') }}</td>
<td>{{ number_format($surat['list_norujukan'][0]['bakipjm'] , 2, '.', ',') }}</td>
<td>{{ number_format($surat['list_norujukan'][0]['bakiupah'], 2, '.', ',') }}</td>
<td>{{ number_format($surat['ktlhbyr'] , 2, '.', ',')}}</td>
<td>{{ number_format($surat['list_norujukan'][0]['bakiupah'], 2, '.', ',') }}</td>
<td>{{ number_format($surat['keuntungan'] , 2, '.', ',') }}</td>
<td>{{ number_format($surat['list_norujukan'][0]['nilaimarhun'], 2, '.', ',') }}</td>
<td>{{ $surat['list_norujukan'][0]['t_matang1'] }}</td>
<td style='white-space:nowrap;'>{{ $surat['list_norujukan'][0]['t_matang1'] }}</td>
</tr>
@endforeach
</tbody>
@@ -97,22 +107,22 @@
// })
// }
// },
{
className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
titleAttr: 'Senarai Gadaian Excel',
text: '<i class="fas fa-download"></i>',
action: function ( e, dt, node, config ) {
$("#exportform").submit();
}
},
{
className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
titleAttr: 'Senarai Gadaian PDF',
text: '<i class="fas fa-download"></i>',
action: function ( e, dt, node, config ) {
$("#exportform").submit();
}
}
// {
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
// titleAttr: 'Senarai Gadaian Excel',
// text: '<i class="fas fa-download"></i>',
// action: function ( e, dt, node, config ) {
// $("#exportform").submit();
// }
// },
// {
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
// titleAttr: 'Senarai Gadaian PDF',
// text: '<i class="fas fa-download"></i>',
// action: function ( e, dt, node, config ) {
// $("#exportform").submit();
// }
// }
]
});
+1
View File
@@ -273,6 +273,7 @@ Route::group(['middleware' => ['permission:semakanmarhun','permission:kemaskinim
Route::get('/semak/{id}/{lelong_id}',['as'=>'marhun.semak','uses'=>'MarhunController@semak']);
Route::post('/tambahmarhun',['as'=>'marhun.tambahmarhun','uses'=>'MarhunController@tambahmarhun']);
Route::get('/exportmarhundetails/{lelong_id}',['as'=>'marhun.exportmarhundetails','uses'=>'MarhunController@exportmarhundetails']);
Route::get('/exportmarhundetailspembida/{lelong_id}',['as'=>'marhun.exportmarhundetailspembida','uses'=>'MarhunController@exportmarhundetailspembida']);
//action khazanah untuk serahan marhun kepada pembida menang
Route::get('/senarailelongscanjual',['as'=>'marhun.senarailelongscanjual','uses'=>'MarhunController@senarailelongscanjual']);