laporan lelong keseluruhan + pdf
This commit is contained in:
@@ -822,6 +822,10 @@ class LelongController extends Controller
|
||||
|
||||
public function senaraibrglelong($lelong_id){
|
||||
|
||||
$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();
|
||||
|
||||
$brglelong = LelongBid::join('gadai','lelongbid.norujukan','=','gadai.norujukan')
|
||||
->where('lelongbid.lelong_id', $lelong_id)
|
||||
@@ -849,7 +853,7 @@ class LelongController extends Controller
|
||||
|
||||
|
||||
|
||||
return view('lelong.senaraibrglelong',compact('brglelong','lelong_id','keuntungan','total_hargaasas','total_upahkeuntungan','total_nmarhun','total_pinjaman'));
|
||||
return view('lelong.senaraibrglelong',compact('lelongid','brglelong','lelong_id','keuntungan','total_hargaasas','total_upahkeuntungan','total_nmarhun','total_pinjaman'));
|
||||
|
||||
}
|
||||
|
||||
@@ -913,6 +917,11 @@ class LelongController extends Controller
|
||||
|
||||
$arraydetails = [];
|
||||
|
||||
$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();
|
||||
|
||||
$laporanpembida= LelongBid::join('lelongbidder','lelongbid.id','=','lelongbidder.lelongbid_id')
|
||||
->select('lelongbid_id','norujukan','hargaasas')
|
||||
->where('lelongbid.lelong_id','=',$lelong_id)
|
||||
@@ -930,7 +939,7 @@ class LelongController extends Controller
|
||||
array_push($arraydetails,['laporan' => $laporan,'details' => $details]);
|
||||
}
|
||||
|
||||
return view('lelong.senarailapbidaan', compact('arraydetails','lelong_id'));
|
||||
return view('lelong.senarailapbidaan', compact('lelongid','arraydetails','lelong_id'));
|
||||
|
||||
|
||||
|
||||
@@ -987,7 +996,6 @@ class LelongController extends Controller
|
||||
|
||||
Public function laplelong ($lelong_id){
|
||||
|
||||
|
||||
$total_nmarhun = 0;
|
||||
$total_pembiayaan = 0;
|
||||
$total_upahsimpan = 0;
|
||||
@@ -995,6 +1003,11 @@ class LelongController extends Controller
|
||||
$total_hargalelong = 0;
|
||||
$total_bakirugi = 0;
|
||||
$total_hargaasas = 0;
|
||||
|
||||
$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();
|
||||
|
||||
$laporanlelong= LelongBid::join('lelongbidder','lelongbid.id','=','lelongbidder.lelongbid_id')
|
||||
->where('lelongbid.lelong_id','=',$lelong_id)
|
||||
@@ -1010,17 +1023,99 @@ class LelongController extends Controller
|
||||
$total_pembiayaan = $total_pembiayaan + $laplelong['pinjaman'];
|
||||
$total_upahsimpan = $total_upahsimpan + $laplelong['upahsimpan'];
|
||||
$total_cajlelong = $total_cajlelong + $laplelong['cajlelong'];
|
||||
$total_hargalelong = $total_hargalelong $laplelong['hargabida'];
|
||||
$total_hargalelong = $total_hargalelong + $laplelong['hargabida'];
|
||||
$total_bakirugi = $total_bakirugi + $laplelong['baki'];
|
||||
$total_hargaasas = $total_hargaasas + $laplelong['hargaasas'];
|
||||
|
||||
}
|
||||
|
||||
|
||||
return view('lelong.laplelong', compact('laporanlelong','lelong_id','total_nmarhun'));
|
||||
return view('lelong.laplelong', compact('lelongid','laporanlelong','lelong_id','total_nmarhun','total_pembiayaan',
|
||||
'total_upahsimpan','total_cajlelong','total_hargalelong','total_bakirugi','total_hargaasas'));
|
||||
|
||||
|
||||
}
|
||||
|
||||
Public function pdflaplelong (Request $request){
|
||||
|
||||
$lelong_id = $request->lelongid;
|
||||
|
||||
$total_nmarhun = 0;
|
||||
$total_pembiayaan = 0;
|
||||
$total_upahsimpan = 0;
|
||||
$total_cajlelong = 0;
|
||||
$total_hargalelong = 0;
|
||||
$total_bakirugi = 0;
|
||||
$total_hargaasas = 0;
|
||||
|
||||
$info = 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();
|
||||
|
||||
$laporanlelong= LelongBid::join('lelongbidder','lelongbid.id','=','lelongbidder.lelongbid_id')
|
||||
->where('lelongbid.lelong_id','=',$lelong_id)
|
||||
->where('lelongbidder.status_bidder','=','1')
|
||||
->select('lelongbid.norujukan','lelongbid.nilaimarhun','lelongbid.pinjaman','lelongbid.upahsimpan',
|
||||
'lelongbid.cajlelong','lelongbidder.hargabida','lelongbid.baki','lelongbid.hargaasas','lelongbidder.nama_bidder')
|
||||
->get()->toArray();
|
||||
|
||||
foreach($laporanlelong as $index1=>$laplelong)
|
||||
{
|
||||
|
||||
$total_nmarhun = $total_nmarhun + $laplelong['nilaimarhun'];
|
||||
$total_pembiayaan = $total_pembiayaan + $laplelong['pinjaman'];
|
||||
$total_upahsimpan = $total_upahsimpan + $laplelong['upahsimpan'];
|
||||
$total_cajlelong = $total_cajlelong + $laplelong['cajlelong'];
|
||||
$total_hargalelong = $total_hargalelong + $laplelong['hargabida'];
|
||||
$total_bakirugi = $total_bakirugi + $laplelong['baki'];
|
||||
$total_hargaasas = $total_hargaasas + $laplelong['hargaasas'];
|
||||
|
||||
}
|
||||
|
||||
$pdf = PDF::loadView('pdf.pdflaplelong',compact('info','lelong_id','laporanlelong','lelong_id','total_nmarhun','total_pembiayaan',
|
||||
'total_upahsimpan','total_cajlelong','total_hargalelong','total_bakirugi','total_hargaasas'))
|
||||
->setPaper('a4', 'potrait');
|
||||
|
||||
return $pdf->download('Laporan Lelong Keseluruhan.pdf');
|
||||
|
||||
|
||||
}
|
||||
|
||||
Public function lapbrglelpembidaindex (Request $request){
|
||||
|
||||
$lelongid = CawanganLelong::join('lelong','cawangan_lelong.lelong_id','=','lelong.id')
|
||||
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
|
||||
->get();
|
||||
|
||||
return view ('lelong.lapbrglelpembidaindex',compact('lelongid'));
|
||||
|
||||
}
|
||||
|
||||
Public function lapbrglelpembida ($lelong_id){
|
||||
|
||||
$total_berat = 0;
|
||||
$total_hargaasas = 0;
|
||||
$total_hargalelong = 0;
|
||||
|
||||
$brglelpembida = LelongBid::join('gadai','lelongbid.norujukan','=','gadai.norujukan')
|
||||
->join('lelongbidder','lelongbid.id','=','lelongbidder.lelongbid_id')
|
||||
->where('lelongbid.lelong_id','=',$lelong_id)
|
||||
->where('lelongbidder.status_bidder','=','1')
|
||||
->get()->toArray();
|
||||
|
||||
foreach( $brglelpembida as $index1=>$totalbrglelpembida){
|
||||
|
||||
$total_berat = $total_berat + $totalbrglelpembida['berat'];
|
||||
$total_hargaasas = $total_hargaasas + $totalbrglelpembida['hargaasas'];
|
||||
$total_hargalelong = $total_hargalelong + $totalbrglelpembida['hargabida'];
|
||||
|
||||
}
|
||||
|
||||
dd($brglelpembida);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -154,17 +154,22 @@
|
||||
<a href="#laporanSubmenu" data-toggle="collapse" aria-expanded="false" style="">Laporan</a>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('lelong/*')) ? 'show' : '' }}" id="laporanSubmenu" >
|
||||
<li class="{{ (request()->is('lelong/lapbrglelongindex/*') || request()->is('lelong/lapbrglelongindex') ) ? 'active' : '' }}">
|
||||
<a href="{{url('lelong/lapbrglelongindex')}}">Laporan Barang Lelong</a>
|
||||
<a href="{{url('lelong/lapbrglelongindex')}}">Barang Lelong</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('lelong/*')) ? 'show' : '' }}" id="laporanSubmenu" >
|
||||
<li class="{{ (request()->is('lelong/lapbidaanpembidaindex/*') || request()->is('lelong/lapbidaanpembidaindex') ) ? 'active' : '' }}">
|
||||
<a href="{{url('lelong/lapbidaanpembidaindex')}}">Laporan Nama Pembida</a>
|
||||
<a href="{{url('lelong/lapbidaanpembidaindex')}}">Nama Pembida</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('lelong/*')) ? 'show' : '' }}" id="laporanSubmenu" >
|
||||
<li class="{{ (request()->is('lelong/laplelongindex/*') || request()->is('lelong/laplelongindex') ) ? 'active' : '' }}">
|
||||
<a href="{{url('lelong/laplelongindex')}}">Laporan Lelong Keseluruhan</a>
|
||||
<a href="{{url('lelong/laplelongindex')}}">Lelong Keseluruhan</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('lelong/*')) ? 'show' : '' }}" id="laporanSubmenu" >
|
||||
<li class="{{ (request()->is('lelong/lapbrglelpembidaindex/*') || request()->is('lelong/lapbrglelpembidaindex') ) ? 'active' : '' }}">
|
||||
<a href="{{url('lelong/lapbrglelpembidaindex')}}">Barang Lelong Pembida</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
<h3 class="pt-3" style="margin-left:1%;">Laporan Barang Lelong Pembida</h3>
|
||||
@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="tablenotislelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th><input type="checkbox" aria-label="Checkbox for following text input" onclick="selectall(this)"></th>
|
||||
<th>Lelong ID</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th class="text-center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($lelongid as $info)
|
||||
<tr>
|
||||
<td><input type="checkbox" aria-label="Checkbox for following text input" name="checkboxdata[]" value="{{ $info->id }}"></td>
|
||||
<td>{{ $info->lelong_id}}</td>
|
||||
<td>{{ $info->caw_name}}</td>
|
||||
<td>{{ $info->tarikh_lelong }}</td>
|
||||
<td class="text-center">
|
||||
<a href="{{ route('lelong.lapbrglelpembida',$info->lelong_id,$info->caw_name) }}" data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong Pembida" ><i class="far fa-edit"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
var tablenotislelong = $('#tablenotislelong').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 3,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
order: [[1, 'asc']],
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -4,13 +4,19 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
@foreach ($lelongid as $info)
|
||||
<span class="pt-3" style="margin-left:1%;"><b>Laporan Lelong Keseluruhan</b></span>
|
||||
<span class="pt-3" style="margin-left:1%;">Lelong ID: {{ $lelong_id}}</span>
|
||||
<span class="pt-3" style="margin-left:1%;">Cawangan: {{ $info->caw_name}}</span>
|
||||
<span class="pt-3" style="margin-left:1%;">Tarikh Lelong: {{ $info->tarikh_lelong}}</span><br>
|
||||
@endforeach
|
||||
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<form id="exportform" action="{{route('lelong.pdfsenarailapbidaan')}}" method="POST">
|
||||
<form id="exportform" action="{{route('lelong.pdflaplelong')}}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="User">
|
||||
<input type="hidden" name="lelongid" value="{{$lelong_id}}">
|
||||
@@ -25,7 +31,8 @@
|
||||
<th>Upah Simpan</th>
|
||||
<th>Caj Lelong</th>
|
||||
<th>Harga Lelong</th>
|
||||
<th>Baki Rugi</th>
|
||||
<th>Baki</th>
|
||||
<th>Rugi</th>
|
||||
<th>Harga Asas</th>
|
||||
<th>Nama Pembeli</th>
|
||||
|
||||
@@ -41,7 +48,20 @@
|
||||
<td>{{ $laporan['upahsimpan']}}</td>
|
||||
<td>{{ $laporan['cajlelong']}}</td>
|
||||
<td>{{ $laporan['hargabida']}}</td>
|
||||
<td>{{ $laporan['baki']}}</td>
|
||||
<?php
|
||||
$rugi = 0;
|
||||
$baki = 0;
|
||||
if(strpos($laporan['baki'], '-') !== false)
|
||||
{
|
||||
$rugi = $laporan['baki'];
|
||||
}
|
||||
else {
|
||||
$baki = $laporan['baki'];
|
||||
}
|
||||
?>
|
||||
|
||||
<td>{{ $baki}}</td>
|
||||
<td>{{ $rugi}}</td>
|
||||
<td>{{ $laporan['hargaasas']}}</td>
|
||||
<td>{{ $laporan['nama_bidder']}}</td>
|
||||
|
||||
@@ -55,11 +75,29 @@
|
||||
<tr>
|
||||
<td colspan="2" align="left"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($total_nmarhun, 2, '.', ',') }}</td>
|
||||
{{-- <td>{{ number_format($total_upahkeuntungan, 2, '.', ',') }}</td>
|
||||
<td></td>
|
||||
<td>{{ number_format($total_nmarhun, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($total_pinjaman, 2, '.', ',') }}</td> --}}
|
||||
<td>{{ number_format($total_pembiayaan, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($total_upahsimpan, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($total_cajlelong, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($total_hargalelong, 2, '.', ',') }}</td>
|
||||
<?php
|
||||
$total_rugi = 0;
|
||||
$total_baki = 0;
|
||||
if(strpos($total_bakirugi, '-') !== false)
|
||||
{
|
||||
$total_baki = $total_bakirugi;
|
||||
|
||||
}
|
||||
else {
|
||||
$total_rugi = $total_bakirugi;
|
||||
|
||||
}
|
||||
?>
|
||||
<td>{{ number_format($total_rugi, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($total_baki, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($total_hargaasas, 2, '.', ',') }}</td>
|
||||
<td></td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
@@ -101,9 +139,7 @@
|
||||
$("#exportform").submit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
]
|
||||
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
|
||||
<h3 class="pt-3" style="margin-left:1%;">Laporan Lelong Keseluruhan</h3>
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
@@ -31,7 +31,7 @@
|
||||
<td>{{ $bid->caw_name}}</td>
|
||||
<td>{{ $bid->tarikh_lelong }}</td>
|
||||
<td class="text-center">
|
||||
<a href="{{ route('lelong.laplelong',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Senarai Lelong Keseluruhan" ><i class="far fa-edit"></i></a>
|
||||
<a href="{{ route('lelong.laplelong',$bid->lelong_id,$bid->caw_name) }}" data-toggle="tooltip" data-placement="top" title="Senarai Lelong Keseluruhan" ><i class="far fa-edit"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
|
||||
<h3 class="pt-3" style="margin-left:1%;">Laporan Barang Lelong </h3>
|
||||
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<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>
|
||||
|
||||
@@ -4,6 +4,12 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
@foreach ($lelongid as $info)
|
||||
<span class="pt-3" style="margin-left:1%;"><b>Laporan Barang Lelong </b></span>
|
||||
<span class="pt-3" style="margin-left:1%;">Lelong ID: {{ $lelong_id}}</span>
|
||||
<span class="pt-3" style="margin-left:1%;">Cawangan: {{ $info->caw_name}}</span>
|
||||
<span class="pt-3" style="margin-left:1%;">Tarikh Lelong: {{ $info->tarikh_lelong}}</span><br>
|
||||
@endforeach
|
||||
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
@@ -46,12 +52,12 @@
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2" align="left"><b><strong>JUMLAH KESELURUHAN</strong></b></td>
|
||||
<td><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_upahkeuntungan, 2, '.', ',') }}</strong></td>
|
||||
<td colspan="2" align="left"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($total_hargaasas, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($total_upahkeuntungan, 2, '.', ',') }}</td>
|
||||
<td></td>
|
||||
<td><strong>{{ number_format($total_nmarhun, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_pinjaman, 2, '.', ',') }}</strong></td>
|
||||
<td>{{ number_format($total_nmarhun, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($total_pinjaman, 2, '.', ',') }}</td>
|
||||
<td></td>
|
||||
|
||||
</tr>
|
||||
@@ -79,7 +85,7 @@
|
||||
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 999999999,
|
||||
"pageLength": 10,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
|
||||
|
||||
@@ -0,0 +1,191 @@
|
||||
|
||||
<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 LELONG KESELURUHAN</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 ($info 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>No</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Nilai Marhun</th>
|
||||
<th>Pembiayaan</th>
|
||||
<th>Upah Simpan</th>
|
||||
<th>Caj Lelong</th>
|
||||
<th>Harga Lelong</th>
|
||||
<th>Baki</th>
|
||||
<th>Rugi</th>
|
||||
<th>Harga Asas</th>
|
||||
<th>Nama Pembeli</th> >
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@foreach ($laporanlelong as $laporan)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $laporan['norujukan'] }}</td>
|
||||
<td>{{ number_format($laporan['nilaimarhun'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['pinjaman'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['upahsimpan'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['cajlelong'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['hargabida'], 2, '.', ',')}}</td>
|
||||
<?php
|
||||
$rugi = 0;
|
||||
$baki = 0;
|
||||
if(strpos($laporan['baki'], '-') !== false)
|
||||
{
|
||||
$rugi = $laporan['baki'];
|
||||
}
|
||||
else {
|
||||
$baki = $laporan['baki'];
|
||||
}
|
||||
?>
|
||||
<td>{{ number_format($baki, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($rugi, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($laporan['hargaasas'], 2, '.', ',')}}</td>
|
||||
<td>{{$laporan['nama_bidder']}}</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" align="left"><strong>Jumlah Keseluruhan</strong></td>
|
||||
<td><strong>{{ number_format($total_nmarhun, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_pembiayaan, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_upahsimpan, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_cajlelong, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_hargalelong, 2,'.',',') }}</strong></td>
|
||||
<?php
|
||||
$total_rugi = 0;
|
||||
$total_baki = 0;
|
||||
if(strpos($total_bakirugi, '-') !== false)
|
||||
{
|
||||
$total_rugi = $total_bakirugi;
|
||||
|
||||
}
|
||||
else {
|
||||
$total_baki = $total_bakirugi;
|
||||
|
||||
}
|
||||
?>
|
||||
<td><strong>{{number_format($total_baki, 2, '.', ',')}}</strong></td>
|
||||
<td><strong>{{number_format($total_rugi, 2, '.', ',')}}</strong></td>
|
||||
<td><strong>{{number_format($total_hargaasas, 2, '.', ',')}}</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
@@ -152,8 +152,6 @@ tr:nth-child(even) {
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="3" align="left"><strong>Jumlah Keseluruhan</strong></td>
|
||||
<td><strong>{{ number_format($total_pinjaman, 2, '.', ',') }}</strong></td>
|
||||
@@ -174,7 +172,7 @@ tr:nth-child(even) {
|
||||
$total_rugi = $total_bakirugi;
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<td><strong>{{number_format($total_rugi, 2, '.', ',')}}</strong></td>
|
||||
<td><strong>{{number_format($total_baki, 2, '.', ',')}}</strong></td>
|
||||
|
||||
|
||||
@@ -115,6 +115,13 @@ Route::group(['prefix'=>'lelong'], function () {
|
||||
|
||||
Route::get('/laplelongindex',['as' =>'lelong.laplelongindex','uses'=>'LelongController@laplelongindex']);
|
||||
Route::get('/laplelong/{lelong_id}',['as' =>'lelong.laplelong','uses'=>'LelongController@laplelong']);
|
||||
Route::post('/pdflaplelong',['as' =>'lelong.pdflaplelong','uses'=>'LelongController@pdflaplelong']);
|
||||
|
||||
Route::get('/lapbrglelpembidaindex',['as'=>'lelong.lapbrglelpembidaindex','uses'=>'LelongController@lapbrglelpembidaindex']);
|
||||
Route::get('/lapbrglelpembida/{lelong_id}',['as'=>'lelong.lapbrglelpembida','uses'=>'LelongController@lapbrglelpembida']);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user