senarai lelong tak laku
This commit is contained in:
@@ -486,8 +486,23 @@ class LelongController extends Controller
|
||||
|
||||
public function lelongtaklaku(Request $request){
|
||||
|
||||
$lelongtaklaku = LelongBid::all();
|
||||
// where('status_jual', $ = 1)
|
||||
$lelongtaklaku = LelongBid::join('cawangan', 'lelongbid.kodcaw', '=', 'cawangan.caw_code')
|
||||
->where('status_jual', 0)
|
||||
->whereNull('t_jual')
|
||||
->select(
|
||||
'lelongbid.t_lelong',
|
||||
'lelongbid.kodcaw',
|
||||
'cawangan.caw_name',
|
||||
'lelongbid.pinjaman',
|
||||
'lelongbid.berat',
|
||||
'lelongbid.nilaimarhun',
|
||||
'lelongbid.hargaasas',
|
||||
'lelongbid.upahsimpan',
|
||||
'lelongbid.cajlelong',
|
||||
'lelongbid.baki',
|
||||
'lelongbid.status_jual',
|
||||
)
|
||||
->get();
|
||||
|
||||
return view('lelong.lelongtaklaku',compact('lelongtaklaku'));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<form id="exportform" action="" method="POST">
|
||||
<input type="hidden" name="type" value="User">
|
||||
<table class="table table-striped table-xl" id="lelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>Kod Cawangan</th>
|
||||
<th>Nama Cawangan</th>
|
||||
<th>Bilangan</th>
|
||||
<th>Pinjaman (RM)</th>
|
||||
<th>Berat (gm)</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<th>Harga Asas (RM)</th>
|
||||
<th>Upah Simpan (RM)</th>
|
||||
<th>Caj Lelong (RM)</th>
|
||||
<th>Rugi Lelong (RM)</th>
|
||||
<th>Baki Lelong (RM)</th>
|
||||
<th>Status Lelong (RM)</th>
|
||||
<th>Status Laporan Lelong (RM)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($lelongtaklaku as $leltaklaku)
|
||||
<tr>
|
||||
<td>{{ $leltaklaku->t_lelong }}</td>
|
||||
<td class="text-center">{{ $leltaklaku->kodcaw }}</td>
|
||||
<td>{{ $leltaklaku->caw_name }}</td>
|
||||
<td></td>
|
||||
<td>{{ $leltaklaku->pinjaman }}</td>
|
||||
<td>{{ $leltaklaku->berat }}</td>
|
||||
<td>{{ $leltaklaku->nilaimarhun }}</td>
|
||||
<td>{{ $leltaklaku->hargaasas }}</td>
|
||||
<td>{{ $leltaklaku->upahsimpan }}</td>
|
||||
<td>{{ $leltaklaku->cajlelong }}</td>
|
||||
<td></td>
|
||||
<td>{{ $leltaklaku->baki }}</td>
|
||||
|
||||
@if($leltaklaku->status_jual == 0)
|
||||
<td style = "color:red" ><b>TIDAK LAKU</b> </td>
|
||||
@endif
|
||||
<td class="text-center">
|
||||
<a href=" # " target = "blank" ><i class="fas fa-download"></i></a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@@ -1,7 +0,0 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user