add scan, terima, serah marhun
This commit is contained in:
@@ -130,6 +130,14 @@ class MarhunController extends Controller
|
||||
->where('status_ubah', 6)
|
||||
->first();
|
||||
|
||||
$statusSemakMarhun = ScanMarhun::where('lelongbid_id', $bid['id'])
|
||||
->whereNotNull('masa_terima')
|
||||
->whereNull('masa_serah')
|
||||
->first();
|
||||
if ($statusSemakMarhun) {
|
||||
$lelongbid[$index1]['statusterimamarhun'] = 1;
|
||||
}
|
||||
|
||||
$lelongbid[$index1]['statustangguhlel'] = $statusdrpdpc;
|
||||
|
||||
if($sudahdisahkan)
|
||||
@@ -1164,12 +1172,52 @@ class MarhunController extends Controller
|
||||
|
||||
}
|
||||
|
||||
public function terimaserahmarhun() {
|
||||
public function terimaserahmarhun()
|
||||
{
|
||||
$user = Auth::user();
|
||||
$caw = Cawangan::where('caw_code', '=', $user->kodcaw)->first();
|
||||
|
||||
return view('marhun.terimaserahmarhun');
|
||||
$senaraiScanKeluar = ScanMarhun::where('kodcaw', '=', $caw->caw_code)
|
||||
->whereNull('masa_terima')
|
||||
->orderBy('id', 'desc')
|
||||
->get();
|
||||
|
||||
$sedangDinilai = ScanMarhun::whereNull('masa_serah')
|
||||
->orderBy('id', 'desc')
|
||||
->get();
|
||||
|
||||
$sudahSerah = ScanMarhun::whereNotNull('masa_serah')
|
||||
->orderBy('id', 'desc')
|
||||
->get();
|
||||
|
||||
return view('marhun.terimaserahmarhun', compact('senaraiScanKeluar', 'sedangDinilai', 'sudahSerah'));
|
||||
}
|
||||
|
||||
public function terimaMarhun(Request $request)
|
||||
{
|
||||
$user = Auth::user();
|
||||
$current = Carbon::now();
|
||||
|
||||
foreach ($request->scanKeluar_id as $index) {
|
||||
$terimaMarhun = ScanMarhun::where('id', '=', $index)->first();
|
||||
$terimaMarhun->penilai_id = $user->id;
|
||||
$terimaMarhun->masa_terima = $current->toTimeString();
|
||||
$terimaMarhun->update();
|
||||
}
|
||||
return redirect()->route('marhun.terimaserahmarhun')->with('success', 'Terima Marhun Berjaya Direkodkan');
|
||||
}
|
||||
|
||||
public function serahMarhun(Request $request)
|
||||
{
|
||||
$user = Auth::user();
|
||||
$current = Carbon::now();
|
||||
|
||||
foreach ($request->sedangDinilai_id as $index) {
|
||||
$serahMarhun = ScanMarhun::where('id', '=', $index)->first();
|
||||
$serahMarhun->masa_serah = $current->toTimeString();
|
||||
$serahMarhun->update();
|
||||
}
|
||||
return redirect()->route('marhun.terimaserahmarhun')->with('success', 'Serah Marhun Berjaya Direkodkan');
|
||||
}
|
||||
|
||||
public function listScanBarcode($lelong_id)
|
||||
@@ -1184,57 +1232,69 @@ class MarhunController extends Controller
|
||||
|
||||
$senaraiScanKeluar = ScanMarhun::where('lelong_id', '=', $lelong_id)
|
||||
->where('kodcaw', '=', $caw->caw_code)
|
||||
->whereNull('masa_scanmasuk')
|
||||
->orderBy('id', 'desc')
|
||||
->get();
|
||||
|
||||
return view('marhun.scanbarcode', compact('lelong_id', 'lelongDetail', 'lelongbid', 'senaraiScanKeluar'));
|
||||
$senaraiScanMasuk = ScanMarhun::where('lelong_id', '=', $lelong_id)
|
||||
->where('kodcaw', '=', $caw->caw_code)
|
||||
->whereNotNull('masa_scanmasuk')
|
||||
->orderBy('id', 'desc')
|
||||
->get();
|
||||
|
||||
return view('marhun.scanbarcode', compact('lelong_id', 'lelongDetail', 'lelongbid', 'senaraiScanKeluar', 'senaraiScanMasuk'));
|
||||
}
|
||||
|
||||
public function scanKeluarMarhun(Request $request)
|
||||
{
|
||||
|
||||
$user = Auth::user();
|
||||
$caw = Cawangan::where('caw_code', '=', $user->kodcaw)->first();
|
||||
$current = Carbon::now();
|
||||
|
||||
$lelongbidItem = LelongBid::where('norujukan', '=', $request->norujukan_barcode)->first();
|
||||
|
||||
$scanKeluar = new ScanMarhun;
|
||||
$scanKeluar->kodcaw = $lelongbidItem['kodcaw'];
|
||||
$scanKeluar->lelong_id = $lelongbidItem['lelong_id'];
|
||||
$scanKeluar->lelongbid_id = $lelongbidItem['id'];
|
||||
$scanKeluar->norujukan = $lelongbidItem['norujukan'];
|
||||
$scanKeluar->user_id = $user['id'];
|
||||
$scanKeluar->tarikh_scankeluar = $current->toDateString();
|
||||
$scanKeluar->masa_scankeluar = $current->toTimeString();
|
||||
$scanKeluar->tag_scankeluar = 1;
|
||||
// $scanKeluar->masa_scanmasuk = $current->toTimeString(); //dummy data
|
||||
// $scanKeluar->tarikh_scanmasuk = $current->toDateString(); //dummy data
|
||||
// $scanKeluar->masa = $current->toTimeString(); //dummy data
|
||||
$scanKeluar->save();
|
||||
|
||||
$lelong_id = $lelongbidItem['lelong_id'];
|
||||
$lelongDetail = Lelong::where('id', '=', $lelong_id)->first();
|
||||
$lelongbid = LelongBid::where('lelong_id', '=', $lelong_id)
|
||||
->where('caw_id', '=', $caw->id)
|
||||
$checkExisting = ScanMarhun::where('norujukan', '=', $request->norujukan_barcode)
|
||||
->whereNull('masa_scanmasuk')
|
||||
->get();
|
||||
|
||||
$senaraiScanKeluar = ScanMarhun::where('lelong_id', '=', $lelong_id)
|
||||
->where('kodcaw', '=', $caw->caw_code)
|
||||
->orderBy('id', 'desc')
|
||||
->get();
|
||||
if ($checkExisting->isEmpty()) {
|
||||
$lelongbidItem = LelongBid::where('norujukan', '=', $request->norujukan_barcode)->first();
|
||||
|
||||
return view('marhun.scanbarcode', compact('lelong_id', 'lelongDetail', 'lelongbid', 'senaraiScanKeluar'));
|
||||
$scanKeluar = new ScanMarhun;
|
||||
$scanKeluar->kodcaw = $lelongbidItem['kodcaw'];
|
||||
$scanKeluar->lelong_id = $lelongbidItem['lelong_id'];
|
||||
$scanKeluar->lelongbid_id = $lelongbidItem['id'];
|
||||
$scanKeluar->norujukan = $lelongbidItem['norujukan'];
|
||||
$scanKeluar->khazanah_id = $user['id'];
|
||||
$scanKeluar->tarikh_scankeluar = $current->toDateString();
|
||||
$scanKeluar->masa_scankeluar = $current->toTimeString();
|
||||
$scanKeluar->save();
|
||||
|
||||
return redirect()->route('marhun.scanbarcode', $request->lelong_id)
|
||||
->with('success', 'Marhun Berjaya Di Scan Keluar Dari Peti Besi.');
|
||||
} else {
|
||||
return redirect()->route('marhun.scanbarcode', $request->lelong_id)
|
||||
->with('failed', 'Marhun Sudah Berada Di Luar Peti Besi.');
|
||||
}
|
||||
}
|
||||
|
||||
public function scanMasukMarhun(Request $request)
|
||||
{
|
||||
$user = Auth::user();
|
||||
$caw = Cawangan::where('caw_code', '=', $user->kodcaw)->first();
|
||||
$current = Carbon::now();
|
||||
|
||||
$lelongbidItem = LelongBid::where('norujukan', '=', $request->norujukan_barcode)->first();
|
||||
$scanMasuk = ScanMarhun::where('');
|
||||
$scanMasuk = ScanMarhun::where('norujukan', '=', $request->norujukan_barcode)
|
||||
->whereNull('masa_scanmasuk')
|
||||
->first();
|
||||
|
||||
if ($scanMasuk) {
|
||||
$scanMasuk->tarikh_scanmasuk = $current->toDateString();
|
||||
$scanMasuk->masa_scanmasuk = $current->toTimeString();
|
||||
$scanMasuk->update();
|
||||
return redirect()->route('marhun.scanbarcode', $request->lelong_id)
|
||||
->with('success', 'Marhun Berjaya Di Scan Masuk Ke Peti Besi.');
|
||||
} else {
|
||||
return redirect()->route('marhun.scanbarcode', $request->lelong_id)
|
||||
->with('failed', 'Marhun Gagal Di Scan Masuk Ke Peti Besi.');
|
||||
}
|
||||
}
|
||||
|
||||
public function senaraiScanKeluar(Request $request)
|
||||
|
||||
@@ -48,26 +48,17 @@ class CreatePengesahanTable extends Migration
|
||||
$table->unsignedBigInteger('lelong_id')->unsigned();
|
||||
$table->integer('lelongbid_id');
|
||||
$table->string('norujukan');
|
||||
$table->string('user_id', '100');
|
||||
$table->string('khazanah_id', '100');
|
||||
$table->date('tarikh_scankeluar');
|
||||
$table->time('masa_scankeluar');
|
||||
$table->integer('tag_scankeluar');
|
||||
$table->string('penilai_id', '100')->nullable();
|
||||
$table->time('masa_terima')->nullable();
|
||||
$table->time('masa_serah')->nullable();
|
||||
$table->date('tarikh_scanmasuk')->nullable();
|
||||
$table->time('masa_scanmasuk')->nullable();
|
||||
$table->integer('tag_scanmasuk')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('terimaserah_marhun', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('scanmarhun_id');
|
||||
$table->string('user_id', '100');
|
||||
$table->integer('tagterima');
|
||||
$table->time('masa_terima');
|
||||
$table->integer('tagserah')->nullable();
|
||||
$table->time('masa_serah')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -7,11 +7,16 @@
|
||||
<div class="card">
|
||||
<div class="card-header">Scan Barcode</div>
|
||||
<div class="card-body">
|
||||
@if (!empty($success))
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert mt-2 alert-success">
|
||||
<p>{{ $success }}</p>
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@elseif ($message = Session::get('failed'))
|
||||
<div class="alert mt-2 alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<a class="btn btn-secondary mb-1" href="{{route('marhun.senarailelongscan')}}">Kembali</a>
|
||||
<p>Tarikh Lelong:
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelongDetail['tarikh_lelong'] );
|
||||
@@ -22,17 +27,17 @@
|
||||
|
||||
<ul class="nav mb-2 nav-tabs" id="myTab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="gadaian-test-tab" data-toggle="tab" href="#gadaian-test" role="tab" aria-controls="gadaian-test" aria-selected="true">Senarai</a>
|
||||
<a class="nav-link active" id="senarai-tab" data-toggle="tab" href="#senarai" role="tab" aria-controls="senarai" aria-selected="true">Senarai</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="gadaian-semasa-tab" data-toggle="tab" href="#gadaian-semasa" role="tab" aria-controls="gadaian-semasa" aria-selected="false">SAG Keluar Peti Besi</a>
|
||||
<a class="nav-link" id="scan-keluar-tab" data-toggle="tab" href="#scan-keluar" role="tab" aria-controls="scan-keluar" aria-selected="false">SAG Keluar Peti Besi</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="gadaian-belum-serah-tab" data-toggle="tab" href="#gadaian-belum-serah" role="tab" aria-controls="gadaian-belum-serah" aria-selected="false">SAG Masuk Peti Besi</a>
|
||||
<a class="nav-link" id="scan-masuk-tab" data-toggle="tab" href="#scan-masuk" role="tab" aria-controls="scan-masuk" aria-selected="false">SAG Masuk Peti Besi</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<div class="tab-pane fade show active" id="gadaian-test" role="tabpanel" aria-labelledby="gadaian-test-tab">
|
||||
<div class="tab-pane fade show active" id="senarai" role="tabpanel" aria-labelledby="senarai-tab">
|
||||
<div style="overflow-x: auto;">
|
||||
<table class='table table-bordered table-hover' id='table-senarai'>
|
||||
<thead class="bg-primary text-white">
|
||||
@@ -42,7 +47,6 @@
|
||||
<th>Marhun</th>
|
||||
<th>N. Marhun</th>
|
||||
<th>Berat</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -51,17 +55,15 @@
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$index->norujukan}}</td>
|
||||
<td>{{$index->marhun}}</td>
|
||||
<td>{{$index->nilaimarhun}}</td>
|
||||
<td>{{ number_format($index->nilaimarhun, 2, '.', ',')}}</td>
|
||||
<td>{{$index->berat}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="gadaian-semasa" role="tabpanel" aria-labelledby="gadaian-semasa-tab">
|
||||
<p>keluar</p>
|
||||
<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.scankeluarmarhun') }}" method="POST">
|
||||
@@ -69,19 +71,18 @@
|
||||
<div style="text-align: center;">Scan Barcode Marhun Yang Dibawa Keluar Dari Peti Besi</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}}">
|
||||
<!-- <input type="submit" id="submit_button" name="submit_button" hidden> -->
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div style="overflow-x: auto;">
|
||||
<table class='table table-bordered table-hover' id='table-gadaian-semasa'>
|
||||
<table class='table table-bordered table-hover' id='table-scan-keluar'>
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Status</th>
|
||||
<th>Tarikh</th>
|
||||
<th>Masa</th>
|
||||
<th>Tarikh Scan Keluar</th>
|
||||
<th>Masa Scan Keluar</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -89,7 +90,7 @@
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$index->norujukan}}</td>
|
||||
<td>{{$index->tag_scankeluar}}</td>
|
||||
<td><span class="badge badge-pill badge-danger">Berada Di Luar Peti Besi</span></td>
|
||||
<td>{{$index->tarikh_scankeluar}}</td>
|
||||
<td>{{$index->masa_scankeluar}}</td>
|
||||
</tr>
|
||||
@@ -98,32 +99,42 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="gadaian-belum-serah" role="tabpanel" aria-labelledby="gadaian-belum-serah-tab">
|
||||
<p>masuk</p>
|
||||
<div class="tab-pane fade" id="scan-masuk" role="tabpanel" aria-labelledby="scan-masuk-tab">
|
||||
<div class="row justify-content-center mb-4">
|
||||
<div class="col-5">
|
||||
<form action="" method="">
|
||||
<form action="{{ route('marhun.scanmasukmarhun') }}" method="POST">
|
||||
@csrf
|
||||
<!-- <label>Scan Barcode Marhun Yang Dimasukkan Ke Peti Besi</label> -->
|
||||
<label>Scan Barcode Marhun Yang Dimasukkan Ke Peti Besi</label>
|
||||
<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="submit" id="submit_button" name="submit_button" hidden> -->
|
||||
<input type="hidden" name="lelong_id" value="{{$lelong_id}}">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div style="overflow-x: auto;">
|
||||
<table class="table table-bordered table-hover" id="table-gadaian-belum-serah" style="width: 100%;">
|
||||
<table class="table table-bordered table-hover" id="table-scan-masuk" style="width: 100%;">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Pembiayaan</th>
|
||||
<th>N. Marhun</th>
|
||||
<th>Teller</th>
|
||||
<th>Status</th>
|
||||
<th>Tarikh Scan Keluar</th>
|
||||
<th>Masa Scan Keluar</th>
|
||||
<th>Tarikh Scan Masuk</th>
|
||||
<th>Masa Scan Masuk</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($senaraiScanMasuk as $index)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$index->norujukan}}</td>
|
||||
<td><span class="badge badge-pill badge-success">Berada Di Dalam Peti Besi</span></td>
|
||||
<td>{{$index->tarikh_scankeluar}}</td>
|
||||
<td>{{$index->masa_scankeluar}}</td>
|
||||
<td>{{$index->tarikh_scanmasuk}}</td>
|
||||
<td>{{$index->masa_scanmasuk}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -136,9 +147,9 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var tablesenarailelongonline = $('#table-senarai').DataTable({
|
||||
"pageLength": 1000
|
||||
});
|
||||
var tableSenarai = $('#table-senarai').DataTable({});
|
||||
var tableScanKeluar = $('#table-scan-keluar').DataTable({});
|
||||
var tableScanMasuk = $('#table-scan-masuk').DataTable({});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -70,8 +70,10 @@
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@if($bid['statusterimamarhun'] == 1)
|
||||
<!-- <button type="button" class="btn btn-primary" onclick="kemaskini(this)" data-lelong="{{$bid->lelong_id}}" data-all="{{$bid}}" data-surat="{{$bid->id}}" data-marhun="{{ json_encode($bid->marhun) }}" data-toggle="modal" data-target="#noRujukanModal"><i class="far fa-edit"></i></button> -->
|
||||
<a type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="Lihat Butiran" href="{{ route('marhun.show', [$bid->id, $bid->lelong_id]) }}"><i class="far fa-edit"></i></a>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@@ -8,99 +8,113 @@
|
||||
<div class="card">
|
||||
<div class="card-header">Terima/Serah Marhun</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert mt-2 alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@elseif ($message = Session::get('failed'))
|
||||
<div class="alert mt-2 alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<ul class="nav mb-2 nav-tabs" id="myTab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="gadaian-test-tab" data-toggle="tab" href="#gadaian-test" role="tab" aria-controls="gadaian-test" aria-selected="true">Belum Diterima</a>
|
||||
<a class="nav-link active" id="belum-diterima-tab" data-toggle="tab" href="#belum-diterima" role="tab" aria-controls="belum-diterima" aria-selected="true">Belum Diterima</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="gadaian-semasa-tab" data-toggle="tab" href="#gadaian-semasa" role="tab" aria-controls="gadaian-semasa" aria-selected="false">Sedang Dinilai</a>
|
||||
<a class="nav-link" id="sedang-dinilai-tab" data-toggle="tab" href="#sedang-dinilai" role="tab" aria-controls="sedang-dinilai" aria-selected="false">Sedang Dinilai</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="gadaian-belum-serah-tab" data-toggle="tab" href="#gadaian-belum-serah" role="tab" aria-controls="gadaian-belum-serah" aria-selected="false">Sudah Serah</a>
|
||||
<a class="nav-link" id="sudah-serah-tab" data-toggle="tab" href="#sudah-serah" role="tab" aria-controls="sudah-serah" aria-selected="false">Sudah Serah</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<div class="tab-pane fade show active" id="gadaian-test" role="tabpanel" aria-labelledby="gadaian-test-tab">
|
||||
<div style="overflow-x: auto;">
|
||||
<table class='table table-bordered table-hover' id='table-senarai'>
|
||||
<div class="tab-pane fade show active" id="belum-diterima" role="tabpanel" aria-labelledby="belum-diterima-tab">
|
||||
<form action="{{ route('marhun.terimamarhun') }}" method="POST">
|
||||
@csrf
|
||||
<table class='table table-bordered table-hover' id='table-belum-diterima'>
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Marhun</th>
|
||||
<th>N. Marhun</th>
|
||||
<th>Berat</th>
|
||||
<th>Tarikh Scan Keluar</th>
|
||||
<th>Masa Scan Keluar</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($senaraiScanKeluar as $index)
|
||||
<input type="hidden" name="scanKeluar_id[]" value="{{$index->id}}">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$index->norujukan}}</td>
|
||||
<td>{{$index->tarikh_scankeluar}}</td>
|
||||
<td>{{$index->masa_scankeluar}}</td>
|
||||
<td><span class="badge badge-pill badge-danger">Belum Terima</span></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="gadaian-semasa" role="tabpanel" aria-labelledby="gadaian-semasa-tab">
|
||||
<p>keluar</p>
|
||||
<div class="row justify-content-center mb-4">
|
||||
<div class="col-5">
|
||||
<form action="" method="POST">
|
||||
@csrf
|
||||
<div style="text-align: center;">Scan Barcode Marhun Yang Dibawa Keluar Dari Peti Besi</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="submit" id="submit_button" name="submit_button" hidden> -->
|
||||
</form>
|
||||
<div class="d-flex mt-2 justify-content-end">
|
||||
<button type="submit" class="btn btn-primary">Terima Marhun</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="overflow-x: auto;">
|
||||
<table class='table table-bordered table-hover' id='table-gadaian-semasa'>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<div class="tab-pane fade" id="sedang-dinilai" role="tabpanel" aria-labelledby="sedang-dinilai-tab">
|
||||
<form action="{{ route('marhun.serahmarhun') }}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="test" value="essds">
|
||||
<table class='table table-bordered table-hover' id='table-sedang-dinilai'>
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Masa Terima</th>
|
||||
<th>Status</th>
|
||||
<th>Tarikh</th>
|
||||
<th>Masa</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($sedangDinilai as $index)
|
||||
<input type="hidden" name="sedangDinilai_id[]" value="{{$index->id}}">
|
||||
<tr>
|
||||
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$index->norujukan}}</td>
|
||||
<td>{{$index->masa_terima}}</td>
|
||||
<td><span class="badge badge-pill badge-success">Sedang Dinilai</span></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="d-flex mt-2 justify-content-end">
|
||||
<button type="submit" class="btn btn-primary">Serah Marhun</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="gadaian-belum-serah" role="tabpanel" aria-labelledby="gadaian-belum-serah-tab">
|
||||
<p>masuk</p>
|
||||
<div class="row justify-content-center mb-4">
|
||||
<div class="col-5">
|
||||
<form action="" method="">
|
||||
@csrf
|
||||
<!-- <label>Scan Barcode Marhun Yang Dimasukkan Ke Peti Besi</label> -->
|
||||
<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="submit" id="submit_button" name="submit_button" hidden> -->
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div style="overflow-x: auto;">
|
||||
<table class="table table-bordered table-hover" id="table-gadaian-belum-serah" style="width: 100%;">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Pembiayaan</th>
|
||||
<th>N. Marhun</th>
|
||||
<th>Teller</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="sudah-serah" role="tabpanel" aria-labelledby="sudah-serah-tab">
|
||||
<table class="table table-bordered table-hover" id="table-sudah-serah" style="width: 100%;">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Masa Terima</th>
|
||||
<th>Masa Serah</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($sudahSerah as $index)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$index->norujukan}}</td>
|
||||
<td>{{$index->masa_terima}}</td>
|
||||
<td>{{$index->masa_serah}}</td>
|
||||
<td><span class="badge badge-pill badge-success">Sudah Serah</span></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -109,4 +123,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// var tableBelumDiterima = $('#table-belum-diterima').DataTable({});
|
||||
// var tableSedangDinilai = $('#table-sedang-dinilai').DataTable({});
|
||||
// var tableSudahSerah = $('#table-sudah-serah').DataTable({});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -229,6 +229,9 @@ Route::group(['middleware' => ['permission:semakanmarhun','permission:kemaskinim
|
||||
Route::get('/senarailelongscan',['as'=>'marhun.senarailelongscan','uses'=>'MarhunController@senarailelongscan']);
|
||||
Route::get('/scanbarcode/{lelong_id}',['as'=>'marhun.scanbarcode','uses'=>'MarhunController@listScanBarcode']);
|
||||
Route::post('/scankeluarmarhun',['as'=>'marhun.scankeluarmarhun','uses'=>'MarhunController@scanKeluarMarhun']);
|
||||
Route::post('/scanmasukmarhun',['as'=>'marhun.scanmasukmarhun','uses'=>'MarhunController@scanMasukMarhun']);
|
||||
Route::post('/terimamarhun',['as'=>'marhun.terimamarhun','uses'=>'MarhunController@terimaMarhun']);
|
||||
Route::post('/serahmarhun',['as'=>'marhun.serahmarhun','uses'=>'MarhunController@serahMarhun']);
|
||||
Route::get('/senaraimarhun/{lelong_id}',['as'=>'marhun.senaraimarhun','uses'=>'MarhunController@index']);
|
||||
Route::get('/marhun/{id}/{lelong_id}',['as'=>'marhun.show','uses'=>'MarhunController@show']);
|
||||
Route::post('/submitdelete',['as'=>'marhun.submitdelete','uses'=>'MarhunController@submitdelete']);
|
||||
|
||||
Reference in New Issue
Block a user