pdf(senarai laporan bidaan, senarai lelong tak laku)
This commit is contained in:
@@ -627,7 +627,54 @@ class LelongController extends Controller
|
||||
$lelongtaklaku[$index1]['suratlelongtaklaku'] = sizeof($suratlelongtaklaku);
|
||||
}
|
||||
|
||||
return view('lelong.lelongtaklaku',compact('lelongtaklaku'));
|
||||
return view('lelong.lelongtaklaku',compact('lelongtaklaku','lelong_id'));
|
||||
}
|
||||
|
||||
public function pdflelongtaklaku (Request $request){
|
||||
|
||||
$lelong_id = $request->lelongid;
|
||||
|
||||
$infolelong = CawanganLelong::join('lelong','cawangan_lelong.lelong_id','=','lelong.id')
|
||||
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
|
||||
->where('cawangan_lelong.lelong_id','=',$lelong_id)
|
||||
->get();
|
||||
|
||||
$lelongtaklaku = LelongBid::join('cawangan', 'lelongbid.kodcaw', '=', 'cawangan.caw_code')
|
||||
->where('status_jual', 0)
|
||||
->where('lelongbid.lelong_id', $lelong_id)
|
||||
->whereNull('t_jual')
|
||||
->select(
|
||||
'lelongbid.norujukan',
|
||||
'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();
|
||||
|
||||
foreach($lelongtaklaku as $index1=>$suratlelongtaklaku){
|
||||
|
||||
$suratlelongtaklaku = LelongBid::join('lelong', 'lelongbid.lelong_id', '=', 'lelong.id')
|
||||
->where('lelongbid.lelong_id', $lelong_id)
|
||||
->where('status_jual', '=', 1)
|
||||
->whereNull('t_jual')
|
||||
->get();
|
||||
|
||||
$lelongtaklaku[$index1]['suratlelongtaklaku'] = sizeof($suratlelongtaklaku);
|
||||
}
|
||||
|
||||
|
||||
$pdf = PDF::loadView('pdf.pdflelongtaklaku',compact('lelongtaklaku','lelong_id','infolelong'))
|
||||
->setPaper('a4', 'potrait');
|
||||
|
||||
return $pdf->download('Senarai Lelong Tak Laku.pdf');
|
||||
}
|
||||
|
||||
public function senaraipemenang($lelong_id){
|
||||
@@ -787,6 +834,8 @@ class LelongController extends Controller
|
||||
|
||||
public function lapbidaan (Request $request){
|
||||
|
||||
|
||||
|
||||
$lelongid = CawanganLelong::join('lelong','cawangan_lelong.lelong_id','=','lelong.id')
|
||||
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
|
||||
->get();
|
||||
@@ -797,7 +846,8 @@ class LelongController extends Controller
|
||||
|
||||
public function senarailapbidaan ($lelong_id){
|
||||
|
||||
$arraydetails = [];
|
||||
|
||||
$arraydetails = [];
|
||||
|
||||
$laporanpembida= LelongBid::join('lelongbidder','lelongbid.id','=','lelongbidder.lelongbid_id')
|
||||
->select('lelongbid_id','norujukan','hargaasas')
|
||||
@@ -816,12 +866,51 @@ class LelongController extends Controller
|
||||
array_push($arraydetails,['laporan' => $laporan,'details' => $details]);
|
||||
}
|
||||
|
||||
return view('lelong.senarailapbidaan', compact('arraydetails'));
|
||||
return view('lelong.senarailapbidaan', compact('arraydetails','lelong_id'));
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Public function pdfsenarailapbidaan (Request $request){
|
||||
|
||||
$lelong_id = $request->lelongid;
|
||||
|
||||
$lelongid = CawanganLelong::join('lelong','cawangan_lelong.lelong_id','=','lelong.id')
|
||||
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
|
||||
->where('cawangan_lelong.lelong_id','=',$lelong_id)
|
||||
->get();
|
||||
|
||||
|
||||
$arraydetails = [];
|
||||
|
||||
$laporanpembida= LelongBid::join('lelongbidder','lelongbid.id','=','lelongbidder.lelongbid_id')
|
||||
->select('lelongbid_id','norujukan','hargaasas')
|
||||
->where('lelongbid.lelong_id','=',$lelong_id)
|
||||
->groupBy('lelongbid_id')
|
||||
->get()
|
||||
->toArray();
|
||||
|
||||
foreach($laporanpembida as $laporan)
|
||||
{
|
||||
$details = LelongBidder::where('lelongbid_id',$laporan['lelongbid_id'])
|
||||
->orderBy('hargabida','desc')
|
||||
->orderBy('masa_bidaan','asc')
|
||||
->get()
|
||||
->toArray();
|
||||
array_push($arraydetails,['laporan' => $laporan,'details' => $details]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$pdf = PDF::loadView('pdf.pdfsenarailapbidaan',compact('arraydetails','lelong_id','lelongid'))
|
||||
->setPaper('a4', 'potrait');
|
||||
|
||||
return $pdf->download('Senarai Nama Bidaan Pembida.pdf');
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -136,11 +136,12 @@ class NotisController extends Controller
|
||||
if($request->type == 'excel')
|
||||
{
|
||||
return view('excel.listnotis_excel',compact('payment','caw','lelong_id','bayaran'));
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$pdf = PDF::loadView('pdf.listnotis',compact('payment','caw','lelong_id','bayaran'))
|
||||
->setPaper('a4', 'landscape');
|
||||
->setPaper('a4', 'potrait');
|
||||
|
||||
return $pdf->download('Senarai Notis.pdf');
|
||||
}
|
||||
|
||||
@@ -94,11 +94,12 @@
|
||||
<script>
|
||||
|
||||
$(document).ready(function () {
|
||||
// window.print();
|
||||
// window.onfocus=function(){ window.close();}
|
||||
|
||||
var table2excel = new Table2Excel();
|
||||
table2excel.export(document.querySelectorAll("#customers"),'senarai_notis');
|
||||
setTimeout(function(){ window.close() }, 1000);
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<td>{{ $notis['nokp']}}</td>
|
||||
<td>{{ $notis['pinjaman']}}</td>
|
||||
<td>{{ $notis['bakiupah']}}</td>
|
||||
<td>{{ $bayaran}}</td>
|
||||
<td>{{ $bayaran}}</td>
|
||||
|
||||
@endforeach
|
||||
</tbody>
|
||||
@@ -55,6 +55,7 @@
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"target": '_blank',
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
@@ -71,18 +72,20 @@
|
||||
buttons: [
|
||||
|
||||
{
|
||||
className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
||||
target: "_blank",
|
||||
titleAttr: 'Export to Excel',
|
||||
text: '<i class="fas fa-download"></i>',
|
||||
text: '<h8><b>EXCEL</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$('#typedonwload').val('excel');
|
||||
$("#exportpdf").submit();
|
||||
// window.open("_blank");
|
||||
}
|
||||
},
|
||||
{
|
||||
className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||
titleAttr: 'Export to PDF',
|
||||
text: '<i class="fas fa-download"></i>',
|
||||
text: '<h8><b>PDF</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$('#typedonwload').val('pdf');
|
||||
$("#exportpdf").submit();
|
||||
|
||||
@@ -1,129 +1,126 @@
|
||||
@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="{{route('lelong.pdfsenarailelong')}}" method="POST">
|
||||
<input type="hidden" name="type" value="User">
|
||||
<table class="table table-striped table-xl text-center" id="lelongtaklaku" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>No Rujukan</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>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($lelongtaklaku as $leltaklaku)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $leltaklaku->t_lelong }}</td>
|
||||
<td>{{ $leltaklaku->norujukan }}</td>
|
||||
<td>{{ $leltaklaku->caw_name }}</td>
|
||||
<td> {{ $leltaklaku['suratlelongtaklaku'] }} </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>
|
||||
<?php
|
||||
$rugi = '';
|
||||
$baki = '';
|
||||
if(strpos($leltaklaku->baki, '-') !== false)
|
||||
{
|
||||
$rugi = $leltaklaku->baki;
|
||||
}
|
||||
else {
|
||||
$baki = $leltaklaku->baki;
|
||||
}
|
||||
?>
|
||||
<td>{{$rugi}}</td>
|
||||
<td>{{$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" data-toggle="tooltip" data-placement="top" title="Muat Turun Laporan" ><i class="fas fa-download"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" aria-label="Checkbox for following text input" >
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<form id="exportform" action="{{route('lelong.pdflelongtaklaku')}}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="User">
|
||||
<input type="hidden" name="lelongid" value="{{$lelong_id}}">
|
||||
|
||||
<table class="table table-striped table-xl text-center" id="notis" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>No Rujukan</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>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($lelongtaklaku as $leltaklaku)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $leltaklaku->t_lelong }}</td>
|
||||
<td>{{ $leltaklaku->norujukan }}</td>
|
||||
<td>{{ $leltaklaku->caw_name }}</td>
|
||||
<td> {{ $leltaklaku['suratlelongtaklaku'] }} </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>
|
||||
<?php
|
||||
$rugi = '';
|
||||
$baki = '';
|
||||
if(strpos($leltaklaku->baki, '-') !== false)
|
||||
{
|
||||
$rugi = $leltaklaku->baki;
|
||||
}
|
||||
else {
|
||||
$baki = $leltaklaku->baki;
|
||||
}
|
||||
?>
|
||||
<td>{{$rugi}}</td>
|
||||
<td>{{$baki}}</td>
|
||||
@if($leltaklaku->status_jual == 0)
|
||||
<td style = "color:red" ><b>TIDAK LAKU</b> </td>
|
||||
@endif
|
||||
<td>
|
||||
<input type="checkbox" aria-label="Checkbox for following text input" >
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
</form>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<a href="{{ route('lelong.senarailelongtaklaku') }}" class="btn btn-primary">Kembali</a>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<a href="{{ route('lelong.senarailelongtaklaku') }}" class="btn btn-primary">Kembali</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
|
||||
var tablelelongtaklaku = $('#lelongtaklaku').DataTable({
|
||||
"columnDefs": [
|
||||
var tablelelongbid= $('#notis').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 5,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
|
||||
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 14,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 15,
|
||||
"orderable": false
|
||||
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||
titleAttr: 'Download to PDF',
|
||||
text: '<h8><b>PDF</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$("#exportform").submit();
|
||||
}
|
||||
],
|
||||
order: [[1, 'asc']],
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
|
||||
{
|
||||
className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
titleAttr: 'Export to CSV',
|
||||
text: '<i class="fas fa-download"></i>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$("#exportform").submit();
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
$('.export').tooltip();
|
||||
$( '.export').removeClass('dt-button');
|
||||
</script>
|
||||
|
||||
|
||||
]
|
||||
|
||||
});
|
||||
|
||||
$('.export').tooltip();
|
||||
$( '.export').removeClass('dt-button');
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -80,8 +80,8 @@
|
||||
|
||||
{
|
||||
className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
titleAttr: 'Download to PDF',
|
||||
text: '<i class="fas fa-download"></i>',
|
||||
// titleAttr: 'Download to PDF',
|
||||
text: '<h8><b>PDF</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$("#exportform").submit();
|
||||
}
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
{{-- <form id="exportform" action="{{route('lelong.pdfsenarailelong')}}" method="POST"> --}}
|
||||
<form id="exportform" action="{{route('lelong.pdfsenarailapbidaan')}}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="User">
|
||||
{{-- <input type="hidden" name="lelongid" value="{{ $lelong_id }}"> --}}
|
||||
<input type="hidden" name="lelongid" value="{{$lelong_id}}">
|
||||
|
||||
<table class="table table-striped table-xl text-center" id="notis" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
@@ -22,8 +22,8 @@
|
||||
<th>No Rujukan</th>
|
||||
<th>Harga Asas</th>
|
||||
<th>Nama Pembida</th>
|
||||
<th>Harga Bida</th>
|
||||
<th>Masa Bida</th>
|
||||
<th>Harga Bidaan(RM)</th>
|
||||
<th>Masa Bidaan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -48,19 +48,12 @@
|
||||
<span class="m-2">{{ $details['masa_bidaan']}}</span><br>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
{{-- <td colspan="2"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($tot_hargaasas, 2, '.', ',') }}</td> --}}
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<a href="{{ route('lelong.laporansenarailelong') }}" class="btn btn-primary">Kembali</a>
|
||||
@@ -90,9 +83,9 @@
|
||||
|
||||
|
||||
{
|
||||
className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||
titleAttr: 'Download to PDF',
|
||||
text: '<i class="fas fa-download"></i>',
|
||||
text: '<h8><b>PDF</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$("#exportform").submit();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,162 @@
|
||||
|
||||
<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;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: left;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
th{
|
||||
text-align: left;
|
||||
padding: 16px;
|
||||
background-color:gainsboro;
|
||||
}
|
||||
|
||||
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 BIDAAN PEMBIDA</b></u></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim">
|
||||
<thead>
|
||||
<br>
|
||||
<tr>
|
||||
<td>Lelong ID: {{$lelong_id}}</td>
|
||||
@foreach ($infolelong as $info)
|
||||
<td>Cawangan:{{ $info->caw_name}}</td>
|
||||
<td>Tarikh Lelong:{{ $info->tarikh_lelong}}</td>
|
||||
|
||||
@endforeach
|
||||
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%" align="left">No</th>
|
||||
<th width="12%" align="left">No Rujukan</th>
|
||||
<th width="5%" align="left">Bilangan</th>
|
||||
<th width="12%" align="left">Pinjaman(RM)</th>
|
||||
<th width="10%" align="left">Berat(gm)</th>
|
||||
<th width="10%" align="left">Nilai Marhun(RM)</th>
|
||||
<th width="10%" align="left">Harga Asas(RM)</th>
|
||||
<th width="10%" align="left">Upah Simpan(RM)</th>
|
||||
<th width="10%" align="left">Caj Lelong(RM)</th>
|
||||
<th width="10%" align="left">Rugi Lelong(RM)</th>
|
||||
<th width="10%" align="left">Baki Lelong(RM)</th>
|
||||
>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@foreach ($lelongtaklaku as $leltaklaku)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $leltaklaku->norujukan }}</td>
|
||||
<td> {{ $leltaklaku['suratlelongtaklaku'] }} </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>
|
||||
<?php
|
||||
$rugi = '';
|
||||
$baki = '';
|
||||
if(strpos($leltaklaku->baki, '-') !== false)
|
||||
{
|
||||
$rugi = $leltaklaku->baki;
|
||||
}
|
||||
else {
|
||||
$baki = $leltaklaku->baki;
|
||||
}
|
||||
?>
|
||||
<td>{{$rugi}}</td>
|
||||
<td>{{$baki}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
|
||||
<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;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: left;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
th{
|
||||
text-align: left;
|
||||
padding: 16px;
|
||||
background-color:gainsboro;
|
||||
}
|
||||
|
||||
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 BIDAAN PEMBIDA</b></u></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim">
|
||||
<thead>
|
||||
<br>
|
||||
<tr>
|
||||
<td>Lelong ID: {{$lelong_id}}</td>
|
||||
@foreach ($lelongid as $info)
|
||||
<td>Cawangan:{{ $info->caw_name}}</td>
|
||||
<td>Tarikh Lelong:{{ $info->tarikh_lelong}}</td>
|
||||
|
||||
@endforeach
|
||||
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%" align="left">No</th>
|
||||
<th width="12%" align="left">No Rujukan</th>
|
||||
<th width="12%" align="left">Harga Asas(RM)</th>
|
||||
<th width="12%" align="left">Nama Pembida</th>
|
||||
<th width="15%" align="left">Harga Bidaan(RM)</th>
|
||||
<th width="12%" align="left">Masa Bidaan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@foreach ($arraydetails as $laporan)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $laporan['laporan']['norujukan']}}</td>
|
||||
<td>{{ $laporan['laporan']['hargaasas']}}</td>
|
||||
<td>
|
||||
@foreach($laporan['details'] as $details)
|
||||
<span class="m-2">{{ $details['nama_bidder']}}</span><br>
|
||||
@endforeach
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@foreach($laporan['details'] as $details)
|
||||
<span class="m-2">{{ $details['hargabida']}}</span><br>
|
||||
@endforeach
|
||||
</td>
|
||||
<td>
|
||||
@foreach($laporan['details'] as $details)
|
||||
<span class="m-2">{{ $details['masa_bidaan']}}</span><br>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
@@ -84,6 +84,7 @@ Route::group(['prefix'=>'lelong'], function () {
|
||||
Route::get('/senaraisagpemenang/{user_id}/{lelong_id}',['as'=>'lelong.senaraisagpemenang','uses'=>'LelongController@senaraisagpemenang']);
|
||||
Route::get('/senarailelongtaklaku',['as'=>'lelong.senarailelongtaklaku','uses'=>'LelongController@senarailelongtaklaku']);
|
||||
Route::get('/lelongtaklaku/{lelong_id}',['as'=>'lelong.lelongtaklaku','uses'=>'LelongController@lelongtaklaku']);
|
||||
Route::post('/pdflelongtaklaku',['as'=>'lelong.pdflelongtaklaku','uses'=>'LelongController@pdflelongtaklaku']);
|
||||
Route::get('/showlelong/{id}',['as'=>'lelong.show','uses'=>'LelongController@show']);
|
||||
Route::get('/deletelelong/{id}',['as'=>'lelong.delete','uses'=>'LelongController@delete']);
|
||||
Route::get('/export/{id}',['as'=>'lelong.exportnotis','uses'=>'LelongController@exportnotis']);
|
||||
@@ -95,6 +96,7 @@ Route::group(['prefix'=>'lelong'], function () {
|
||||
Route::post('/deletemarhun', ['as'=>'lelong.deletemarhun','uses'=>'LelongController@deletemarhun']);
|
||||
Route::get('/lapbidaan', ['as'=>'lelong.lapbidaan','uses'=>'LelongController@lapbidaan']);
|
||||
Route::get('/senarailapbidaan/{lelong_id}',['as' =>'lelong.senarailapbidaan','uses'=>'LelongController@senarailapbidaan']);
|
||||
Route::post('/pdfsenarailapbidaan',['as' =>'lelong.pdfsenarailapbidaan','uses'=>'LelongController@pdfsenarailapbidaan']);
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user