update scanbarcode pembida by nama
This commit is contained in:
@@ -4779,6 +4779,7 @@ class LelongController extends Controller
|
||||
$total_bakiupah = 0;
|
||||
$total_nilaimarhun = 0;
|
||||
$keuntungan = 0;
|
||||
$total_cazlelong = 0;
|
||||
|
||||
$marhuns = LelongBid::join('cawangan', 'lelongbid.caw_id', '=', 'cawangan.id')
|
||||
->where('lelong_id','=',$lelongid)->where('caw_id','=',$cawid)
|
||||
@@ -4804,6 +4805,9 @@ class LelongController extends Controller
|
||||
->get()->toArray();
|
||||
// dd($marhuns);
|
||||
$arraymarhun = [];
|
||||
$cajlelong = 0;
|
||||
$rugilelong = 0;
|
||||
$bakilelong = 0;
|
||||
foreach ($marhuns as $index1=> $cal) {
|
||||
// dd($cal);
|
||||
$gadai = Gadai::on($cal['kodcaw'])
|
||||
@@ -4814,10 +4818,13 @@ class LelongController extends Controller
|
||||
->orWhere('kplama','=',$gadai['nokp'])
|
||||
->first();
|
||||
// dd($customer);
|
||||
|
||||
// $keuntungan = $cal['bakipjm'] - ($cal['bakihargajualan'] - ($cal['upah12'] - $cal['ansakhir'])-(($cal['tempoh']-$cal['tempohbayar'])*$cal['kadarupah']/100*$cal['bakipjm']) );
|
||||
$lelonglel = Lelong::where('id','=',$lelongid)->first();
|
||||
$sumcajlelong = $cal['hargaasas'] * ($lelonglel->cajlelong/100);
|
||||
$cajlelongnew = round($sumcajlelong,1,1);
|
||||
$totalbaki = $cal['hargaasas'] - $cal['pinjaman'] - $cal['bakiupah'] - $cajlelongnew;
|
||||
$marhuns[$index1]['cajlelong'] = $cajlelongnew;
|
||||
$marhuns[$index1]['baki'] = $totalbaki;
|
||||
$marhuns[$index1]['keuntungan'] = $keuntungan;
|
||||
$marhuns[$index1]['nama'] = $customer;
|
||||
|
||||
array_push($arraymarhun,[
|
||||
'norujukan' => $cal['norujukan'],
|
||||
@@ -4831,8 +4838,8 @@ class LelongController extends Controller
|
||||
'pinjaman' => $cal['pinjaman'],
|
||||
'pinjasal' => $gadai['pinjaman'],
|
||||
'bakiupah' => $cal['bakiupah'],
|
||||
'cajlelong' => $cal['cajlelong'],
|
||||
'baki' => $cal['baki'],
|
||||
'cajlelong' => $cajlelongnew,
|
||||
'baki' => $totalbaki,
|
||||
'upah6bulan' => $gadai['bakiupah']
|
||||
]);
|
||||
// $total_marhun = $total_marhun + sizeof($databid);
|
||||
@@ -4841,6 +4848,7 @@ class LelongController extends Controller
|
||||
$total_hargaasas = $total_hargaasas + $cal['hargaasas'];
|
||||
$total_nilaimarhun = $total_nilaimarhun + $cal['nilaimarhun'];
|
||||
$total_bakiupah = $total_bakiupah + $cal['bakiupah'];
|
||||
$total_cazlelong += $cajlelongnew;
|
||||
}
|
||||
|
||||
$arrayinfo = [];
|
||||
@@ -4861,12 +4869,14 @@ class LelongController extends Controller
|
||||
->toArray();
|
||||
array_push($arrayinfo,['laporan' => $laporan,'details' => $details]);
|
||||
}
|
||||
return view('lelong.senaraimarhunpc',compact('arraymarhun','marhuns','lelongid','cawid','arrayinfo','total_berat',
|
||||
return view('lelong.senaraimarhunpc',compact('totalbaki','arraymarhun','marhuns','lelongid','cawid','arrayinfo','total_berat',
|
||||
'total_pinjaman',
|
||||
'total_upah',
|
||||
'total_hargaasas',
|
||||
'total_bakiupah',
|
||||
'total_nilaimarhun'));
|
||||
'total_nilaimarhun',
|
||||
'total_cazlelong',
|
||||
));
|
||||
}
|
||||
|
||||
public function showlelongpc(Request $request, $id)
|
||||
@@ -4935,20 +4945,21 @@ class LelongController extends Controller
|
||||
$pinjaman =$pinjaman + $bid['pinjaman'];
|
||||
$bakiupah = $bakiupah + $bid['bakiupah'];
|
||||
$hargaasas = $hargaasas + $bid['hargaasas'];
|
||||
$cajlelong = $cajlelong + $bid['cajlelong'];
|
||||
// $cajlelong = $cajlelong + $bid['cajlelong'];
|
||||
|
||||
$lelongsim = Lelong::where('id',$id)->get();
|
||||
$sumcajlelong = $bid['hargaasas'] * ($lelongsim[0]['cajlelong']/100);
|
||||
$cajlelong = $cajlelong + bcdiv($sumcajlelong,1,1);
|
||||
$totalbaki = $bid['hargaasas'] - $bid['pinjaman'] - $bid['bakiupah'] - bcdiv($sumcajlelong,1,1);
|
||||
$cajlelongnew = round($sumcajlelong, 1, 1);
|
||||
// $cajlelong = $cajlelong + bcdiv($sumcajlelong, 1, 1);
|
||||
$cajlelong = $cajlelong + $cajlelongnew;
|
||||
$totalbaki = $bid['hargaasas'] - $bid['pinjaman'] - $bid['bakiupah'] - $cajlelongnew;
|
||||
|
||||
if($totalbaki > 0)
|
||||
{
|
||||
$bakilelong = $bakilelong + $totalbaki;
|
||||
}
|
||||
else
|
||||
{
|
||||
$rugilelong = $rugilelong - $totalbaki;
|
||||
if (strpos($totalbaki, '-') !== false) {
|
||||
$rugi = -$totalbaki;
|
||||
$rugilelong += $rugi;
|
||||
} else {
|
||||
$baki = $totalbaki;
|
||||
$bakilelong += $baki;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2045,15 +2045,33 @@ class MarhunController extends Controller
|
||||
->select('lelong_id', 'tarikh_lelong', 'cawangan_lelong.masatamat_lelong', 'harga_emas_asas', 'jbg', 'cajlelong', 'sts_lelong')
|
||||
->get()
|
||||
->toArray();
|
||||
|
||||
if($lelong){
|
||||
foreach ($lelong as $info) {
|
||||
$lelong_id = $info['lelong_id'];
|
||||
// dd( $lelong_id );
|
||||
|
||||
$listwinner = LelongBidder::join('lelongbid', 'lelongbidder.lelongbid_id', '=', 'lelongbid.id')
|
||||
->where('lelongbidder.status_bidder', 1)
|
||||
->where('lelongbid.kodcaw',$user->kodcaw)
|
||||
// ->where('lelongbid.lelong_id', $info->lelong_id)
|
||||
->select('lelongbidder.user_id')
|
||||
->groupBy('lelongbidder.user_id')
|
||||
->get()->toArray();
|
||||
|
||||
foreach($listwinner as $index1=>$winner){
|
||||
|
||||
$userdetails = User::where('id', $winner['user_id'])->first();
|
||||
$listwinner[$index1]['details'] = $userdetails;
|
||||
}
|
||||
}
|
||||
|
||||
$detailsinfo = CawanganLelong::join('cawangan', 'cawangan_lelong.caw_id', '=', 'cawangan.id')
|
||||
->where('lelong_id', $info['lelong_id'])
|
||||
->where('cawangan.caw_code', $user->kodcaw)
|
||||
->get()
|
||||
->toArray();
|
||||
array_push($arrayinfo, ['info' => $info, 'detailsinfo' => $detailsinfo]);
|
||||
}
|
||||
array_push($arrayinfo, ['info' => $info, 'detailsinfo' => $detailsinfo, 'listwinner' => $listwinner]);
|
||||
}
|
||||
|
||||
return view('marhun.senarailelongscanjual', compact('lelong', 'arrayinfo'));
|
||||
}
|
||||
@@ -2369,6 +2387,136 @@ class MarhunController extends Controller
|
||||
return $pdf->download('Senarai Marhun Pembida.pdf');
|
||||
}
|
||||
|
||||
public function scanbarcodejualbycust($lelong_id,$userid)
|
||||
{
|
||||
$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('nopembeli', '=', $userid)
|
||||
->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')
|
||||
->where('user_id', '=', $userid)
|
||||
->select('lelongbidder.lelongbid_id','lelongbidder.nama_bidder')
|
||||
->get();
|
||||
// dump($namabidder);
|
||||
foreach ($namabidder as $namabid) {
|
||||
$userdetails = User::where('id', $userid)->first();
|
||||
// dd($userdetails);
|
||||
}
|
||||
$lelongbid[$index]['nama_bidder'] = $namabidder;
|
||||
$lelongbid[$index]['namabid'] = $userdetails;
|
||||
}
|
||||
// dd($namabidder);
|
||||
$senaraiScanKeluar = ScanSemak::join('lelongbidder', 'lelongbidder.lelongbid_id', '=', 'scan_semak.lelongbid_id')
|
||||
->where('scan_semak.lelong_id', '=', $lelong_id)
|
||||
->where('lelongbidder.status_bidder', '=', 1)
|
||||
->where('scan_semak.kodcaw', '=', $caw->caw_code)
|
||||
->where('lelongbidder.user_id', '=', $userid)
|
||||
->where('scan_semak.serahkpdpembida', '=', '1')
|
||||
// ->whereNull('scan_masuk')
|
||||
->get();
|
||||
|
||||
$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)
|
||||
// ->whereIn('nopembeli', $userid)
|
||||
->get();
|
||||
// dd($new_lelong_bid);
|
||||
|
||||
return view('marhun.scanbarcodejualbycust', compact('userid','userdetails','namabidder','new_lelong_bid','lelong_id', 'lelongDetail', 'lelongbid', 'senaraiScanKeluar'));
|
||||
}
|
||||
|
||||
|
||||
public function scanKeluarMarhunjualbycust(Request $request)
|
||||
{
|
||||
$user = Auth::user();
|
||||
$current = Carbon::now();
|
||||
|
||||
$checkExisting = ScanSemak::where('norujukan', '=', $request->norujukan_barcode)
|
||||
->where('serahkpdpembida', '=', '1')
|
||||
->get();
|
||||
|
||||
if ($checkExisting->isEmpty()) {
|
||||
$lelongbidItem = LelongBid::where('norujukan', '=', $request->norujukan_barcode)->first();
|
||||
|
||||
$scanKeluar = new ScanSemak();
|
||||
$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->scan_keluar = $current->toDateTimeString();
|
||||
$scanKeluar->serahkpdpembida = 1;
|
||||
$scanKeluar->save();
|
||||
|
||||
$scanJualKeluar = new ScanJual();
|
||||
$scanJualKeluar->kodcaw = $lelongbidItem['kodcaw'];
|
||||
$scanJualKeluar->lelong_id = $lelongbidItem['lelong_id'];
|
||||
$scanJualKeluar->lelongbid_id = $lelongbidItem['id'];
|
||||
$scanJualKeluar->norujukan = $lelongbidItem['norujukan'];
|
||||
$scanJualKeluar->khazanah_id = $user['id'];
|
||||
$scanJualKeluar->scan_keluar = $current->toDateTimeString();
|
||||
$scanJualKeluar->serah_marhun = $current->toDateTimeString();
|
||||
$scanJualKeluar->serahkpdpembida = 1;
|
||||
$scanJualKeluar->save();
|
||||
|
||||
return redirect()
|
||||
->route('marhun.scanbarcodejualbycust', ['lelong_id'=>$request->lelong_id,'userid'=>$request->userid])
|
||||
->with('success', 'Marhun Berjaya Di Scan Keluar Serahan Kepada Pembida.');
|
||||
} else {
|
||||
return redirect()
|
||||
->route('marhun.scanbarcodejualbycust', ['lelong_id'=>$request->lelong_id,'userid'=>$request->userid])
|
||||
->with('failed', 'Maaf,Marhun Telah Serah Kepada Pembida.');
|
||||
}
|
||||
}
|
||||
|
||||
public function cetakkeluarscanbarcodejualbycust($lelong_id,$userid)
|
||||
{
|
||||
$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();
|
||||
|
||||
$userdetails = User::where('id', $userid)->first();
|
||||
|
||||
// $senaraiScanKeluar = ScanSemak::where('lelong_id', '=', $lelong_id)
|
||||
// ->where('kodcaw', '=', $caw->caw_code)
|
||||
// ->where('serahkpdpembida', '=', '1')
|
||||
// ->orderBy('id', 'desc')
|
||||
// ->get();
|
||||
$senaraiScanKeluar = ScanSemak::join('lelongbidder', 'lelongbidder.lelongbid_id', '=', 'scan_semak.lelongbid_id')
|
||||
->where('scan_semak.lelong_id', '=', $lelong_id)
|
||||
->where('lelongbidder.status_bidder', '=', 1)
|
||||
->where('scan_semak.kodcaw', '=', $caw->caw_code)
|
||||
->where('lelongbidder.user_id', '=', $userid)
|
||||
->where('scan_semak.serahkpdpembida', '=', '1')
|
||||
// ->whereNull('scan_masuk')
|
||||
->get();
|
||||
// dd($senaraiScanKeluar);
|
||||
// return view('pdf.cetakkeluarscanbarcode', compact('lelong_id', 'lelongDetail', 'lelongbid', 'senaraiScanKeluar', 'senaraiScanMasuk','caw'));
|
||||
$pdf = PDF::loadView('pdf.cetakkeluarscanbarcodejualbycust', compact('caw', 'lelong_id', 'lelongDetail', 'lelongbid', 'senaraiScanKeluar','userdetails'))->setPaper('a4', 'potrait');
|
||||
|
||||
return $pdf->download('Senarai SAG Telah Serah Kepada Pembida.pdf');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($new_lelong_bid as $index)
|
||||
@forelse($new_lelong_bid as $index)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$index->norujukan}}</td>
|
||||
@@ -81,7 +81,12 @@
|
||||
</td> --}}
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="5">No Data</td>
|
||||
</tr>
|
||||
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col mx-auto p-4">
|
||||
<div class="card">
|
||||
<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">
|
||||
<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'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp
|
||||
</p>
|
||||
<p>Nama Pembida:
|
||||
<b> {{$userdetails['name']}}</b>
|
||||
</p>
|
||||
|
||||
<ul class="nav mb-2 nav-tabs" id="myTab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="senarai-tab" data-toggle="tab" href="#senarai" role="tab" aria-controls="senarai" aria-selected="true">Senarai SAG Telah Jual</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<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 Untuk Serahan Kpd Pembida</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<div class="tab-pane fade show active" id="senarai" role="tabpanel" aria-labelledby="senarai-tab">
|
||||
<div class="row justify-content-center mb-4">
|
||||
<div class="col-5">
|
||||
<form action="{{ route('marhun.scankeluarmarhunjualbycust') }}" 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}}">
|
||||
<input type="hidden" name="userid" value="{{$userid}}">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table text-center table-bordered" id='table-scan-jual'>
|
||||
<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>Nama Pembida</th> --}}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse($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>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="5">No Data</td>
|
||||
</tr>
|
||||
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<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">
|
||||
@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> --}}
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: left;"> <a href="{{ route('marhun.cetakkeluarscanbarcodejualbycust', ['lelong_id'=>$lelong_id, 'userid'=>$userid]) }}" class="btn btn-info">Laporan Serahan Kepada Pembida</a><br></div>
|
||||
<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>Tarikh/Masa Scan Keluar</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($senaraiScanKeluar as $index)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$index->norujukan}}</td>
|
||||
<td>{{$index->scan_keluar}}</td>
|
||||
<td><span class="badge badge-pill badge-success">Telah Serah Kepada Pembida</span></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var tableSenarai = $('#table-senarai').DataTable({});
|
||||
var tableScanKeluar = $('#table-scan-keluar').DataTable({});
|
||||
// var tableScanMasuk = $('#table-scan-masuk').DataTable({});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -28,12 +28,13 @@
|
||||
<th>No</th>
|
||||
<th>Batch Lelong</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>Nama Pembida</th>
|
||||
<th>Status Lelong</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($arrayinfo as $lel)
|
||||
@forelse($arrayinfo as $lel)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{ $lel['info']['lelong_id']}}</td>
|
||||
@@ -42,6 +43,14 @@
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
<td style='white-space:nowrap;' align = 'left'>
|
||||
{{-- @if(!empty($listwinner)) --}}
|
||||
@foreach($lel['listwinner'] as $winner)
|
||||
<a class="btn m-1 btn-info" href=" {{ route('marhun.scanbarcodejualbycust', ['lelong_id'=>$lel['info']['lelong_id'], 'userid'=>$winner['details']['id']]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a>
|
||||
{{ $winner['details']['name']}}<br>
|
||||
@endforeach
|
||||
{{-- @endif --}}
|
||||
</td>
|
||||
<td>
|
||||
@if($lel['info']['sts_lelong'] == 3)
|
||||
<button class="btn btn-success btn-sm" disabled>LELONG SELESAI</button>
|
||||
@@ -50,11 +59,16 @@
|
||||
<td>
|
||||
@if($lel['info']['sts_lelong'] == 3)
|
||||
<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>
|
||||
{{-- <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>
|
||||
@endforeach
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="6">No Data</td>
|
||||
</tr>
|
||||
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
|
||||
<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: 0px solid;
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){}
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim th {
|
||||
text-align: left;
|
||||
border: 0px 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 SERAHAN KEPADA PEMBIDA</b></u></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><b>Cawangan: {{$caw['caw_name']}}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><b>Batch Lelong: {{$lelong_id}}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><b>Nama Pembida: {{$userdetails['name']}}</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Tarikh/Masa Scan Keluar</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($senaraiScanKeluar as $index)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$index->norujukan}}</td>
|
||||
<td>{{$index->scan_keluar}}</td>
|
||||
<td><span class="badge badge-pill badge-danger">Telah Serah Kepada Pembida</span></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
+3
-1
@@ -282,7 +282,9 @@ Route::group(['middleware' => ['permission:semakanmarhun','permission:kemaskinim
|
||||
Route::get('/cetakkeluarscanbarcodejual/{lelong_id}',['as'=>'marhun.cetakkeluarscanbarcodejual','uses'=>'MarhunController@cetakkeluarscanbarcodejual']);
|
||||
Route::get('/senaraiscanbarcode',['as'=>'marhun.senaraiscanbarcode','uses'=>'MarhunController@senaraiscanbarcode']);
|
||||
Route::post('/cetakscanbarcode',['as'=>'marhun.cetakscanbarcode','uses'=>'MarhunController@cetakscanbarcode']);
|
||||
|
||||
Route::get('/scanbarcodejualbycust/{lelong_id}/{userid}',['as'=>'marhun.scanbarcodejualbycust','uses'=>'MarhunController@scanbarcodejualbycust']);
|
||||
Route::post('/scankeluarmarhunjualbycust',['as'=>'marhun.scankeluarmarhunjualbycust','uses'=>'MarhunController@scankeluarmarhunjualbycust']);
|
||||
Route::get('/cetakkeluarscanbarcodejualbycust/{lelong_id}/{userid}',['as'=>'marhun.cetakkeluarscanbarcodejualbycust','uses'=>'MarhunController@cetakkeluarscanbarcodejualbycust']);
|
||||
|
||||
//Penilai
|
||||
Route::post('/addphotomarhun',['as'=>'marhun.addphotomarhun','uses'=>'MarhunController@addPhotoMarhun']);
|
||||
|
||||
Reference in New Issue
Block a user