Merge branch 'amirah' into 'main'

update laporan by cawangan

See merge request online-sistem1/lelong!63
This commit is contained in:
Nur Izzati Zulkifli
2022-06-14 05:30:07 +00:00
12 changed files with 1280 additions and 4 deletions
@@ -105,6 +105,289 @@ class ReportCawanganController extends Controller
}
public function indexbrgleldetailscaw(request $request)
{
$user = Auth::user();
$lelongid = CawanganLelong::join('lelong','cawangan_lelong.lelong_id','=','lelong.id')
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('cawangan.caw_code','=',$user->kodcaw)
->get();
return view('lelong.indexbrgleldetailscaw',compact('lelongid'));
}
public function laporanbrgleldetailscaw($lelong_id){
$user = Auth::user();
$caw = Cawangan::where('caw_code','=',$user->kodcaw)
->first();
$lelongs= LelongBid::where('lelong_id','=',$lelong_id)
->where('kodcaw','=',$user['kodcaw'])
->get()->toArray();
$arraycaw= [];
$total_berat = 0;
$berat = 0;
$total_harga = 0;
$harga = 0;
$total_nmarhun = 0;
$nilai_marhun = 0;
$total_hargaasas = 0;
$hargaasas = 0;
foreach($lelongs as $index1=>$lelong){
$marhun= LelongBidMarhun::where('lelongbid_id','=',$lelong['id'])
// ->where('kodcaw','=',$user['kodcaw'])
->get();
$total_berat = $total_berat + ($marhun->sum('berat'));
$total_harga = $total_harga + ($marhun->sum('harga'));
$total_nmarhun = $total_nmarhun + ($marhun->sum('n_marhun'));
$total_hargaasas = $total_hargaasas + ($marhun->sum('hargaasas'));
$lelongs[$index1]['detailmarhun']=$marhun;
}
array_push($arraycaw,[
'berat'=>$berat,
'harga'=>$harga,
'n_marhun'=>$nilai_marhun,
'hargaasas'=>$hargaasas
]);
$pdf = PDF::loadView('pdf.laporanbrgleldetailscaw',compact('lelongs','arraycaw','total_nmarhun','total_berat','total_harga','total_hargaasas'
))->setPaper('a4', 'potrait');
return $pdf->download('Senarai Lelong Details.pdf');
}
public function indexnamapembidacaw(){
$user = Auth::user();
$lelongid = CawanganLelong::join('lelong','cawangan_lelong.lelong_id','=','lelong.id')
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('cawangan.caw_code','=',$user->kodcaw)
->get();
return view('lelong.indexnamapembidacaw',compact('lelongid'));
}
public function laporannamapembidacaw($lelong_id){
$user = Auth::user();
$caw = Cawangan::where('caw_code','=',$user->kodcaw)
->first();
$arraydetails = [];
$arrayinfocaw = [];
$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)
->where('cawangan.caw_code','=',$user['kodcaw'])
->select('lelong_id','tarikh_lelong')
->groupBy('lelong_id')
->get();
foreach($lelongid as $laporancaw)
{
$cawangan = CawanganLelong::join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('lelong_id',$laporancaw['lelong_id'])
->where('cawangan.caw_code','=',$user['kodcaw'])
->get()
->toArray();
array_push($arrayinfocaw,['laporancaw' => $laporancaw,'cawangan' => $cawangan]);
}
$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.laporannamapembidacaw', compact('lelongid','arraydetails','lelong_id','lelongid','cawangan','arrayinfocaw'))
->setPaper('a4', 'potrait');
return $pdf->download('Senarai Nama Bidaan Pembida.pdf');
}
public function indexlelfullcaw (){
$user = Auth::user();
$lelongid = CawanganLelong::join('lelong','cawangan_lelong.lelong_id','=','lelong.id')
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('cawangan.caw_code','=',$user->kodcaw)
->get();
return view('lelong.indexlelfullcaw',compact('lelongid'));
}
public function laporanlelfullcaw($lelong_id){
$user = Auth::user();
$caw = Cawangan::where('caw_code','=',$user->kodcaw)
->first();
$total_nmarhun = 0;
$total_pembiayaan = 0;
$total_upahsimpan = 0;
$total_cajlelong = 0;
$total_hargalelong = 0;
$total_bakirugi = 0;
$total_hargaasas = 0;
$arrayinfocaw = [];
$info = CawanganLelong::join('lelong','cawangan_lelong.lelong_id','=','lelong.id')
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('cawangan.caw_code','=',$user['kodcaw'])
->where('cawangan_lelong.lelong_id','=',$lelong_id)
->select('lelong_id','tarikh_lelong')
->groupBy('lelong_id')
->get();
foreach($info as $laporancaw)
{
$cawangan = CawanganLelong::join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('lelong_id',$laporancaw['lelong_id'])
->where('cawangan.caw_code','=',$user['kodcaw'])
->get()
->toArray();
array_push($arrayinfocaw,['laporancaw' => $laporancaw,'cawangan' => $cawangan]);
}
$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.laporanlelfullcaw',compact('info','lelong_id','laporanlelong','lelong_id','total_nmarhun','total_pembiayaan',
'total_upahsimpan','total_cajlelong','total_hargalelong','total_bakirugi','total_hargaasas','arrayinfocaw'))
->setPaper('a4', 'potrait');
return $pdf->download('Laporan Lelong Keseluruhan.pdf');
}
public function indexbrglelpembidacaw(){
$user = Auth::user();
$lelongid = CawanganLelong::join('lelong','cawangan_lelong.lelong_id','=','lelong.id')
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('cawangan.caw_code','=',$user->kodcaw)
->get();
return view('lelong.indexbrglelpembidacaw',compact('lelongid'));
}
public function laporanbrglelpembidacaw($lelong_id){
$user = Auth::user();
$caw = Cawangan::where('caw_code','=',$user->kodcaw)
->first();
$total_berat = 0;
$total_hargaasas = 0;
$total_hargalelong = 0;
$arrayinfocaw = [];
$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)
->where('cawangan.caw_code','=',$user['kodcaw'])
->select('lelong_id','tarikh_lelong')
->groupBy('lelong_id')
->get();
foreach($info as $laporancaw)
{
$cawangan = CawanganLelong::join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('lelong_id',$laporancaw['lelong_id'])
->where('cawangan.caw_code','=',$user['kodcaw'])
->get()
->toArray();
array_push($arrayinfocaw,['laporancaw' => $laporancaw,'cawangan' => $cawangan]);
}
$brglelpembida = LelongBid::join('gadai','lelongbid.norujukan','=','gadai.norujukan')
->join('lelongbidder','lelongbid.id','=','lelongbidder.lelongbid_id')
->where('gadai.kodcaw','=',$user['kodcaw'])
->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'];
}
$pdf = PDF::loadView('pdf.laporanbrglelpembidacaw',compact('lelong_id','info','brglelpembida','total_berat','total_hargaasas','total_hargalelong','arrayinfocaw'))
->setPaper('a4','potrait');
return $pdf->download('Laporan Barang Lelong Pembida.pdf');
}
+23 -2
View File
@@ -99,7 +99,7 @@
<a href="{{url('pembayaran/SenaraiLelongBayar')}}">Pembayaran Pemenang</a>
</li>
{{-- laporan --}}
{{-- laporan cawangan --}}
<li class="{{ (request()->is('report/')) ? 'active' : '' }}">
<a href="#reportSubmenu" data-toggle="collapse" aria-expanded="false" style="">Laporan</a>
<ul class="list-unstyled collapse {{ (request()->is('reportcaw/*')) ? 'show' : '' }}" id="reportSubmenu" >
@@ -107,9 +107,30 @@
<a href="{{url('reportcaw/laporancawindex')}}">Barang Lelong</a>
</li>
</ul>
<ul class="list-unstyled collapse {{ (request()->is('reportcaw/*')) ? 'show' : '' }}" id="reportSubmenu" >
<li class="{{ (request()->is('reportcaw/indexbrgleldetailscaw/*') || request()->is('reportcaw/indexbrgleldetailscaw') ) ? 'active' : '' }}">
<a href="{{url('reportcaw/indexbrgleldetailscaw')}}">Barang Lelong Details</a>
</li>
</ul>
<ul class="list-unstyled collapse {{ (request()->is('reportcaw/*')) ? 'show' : '' }}" id="reportSubmenu" >
<li class="{{ (request()->is('reportcaw/indexnamapembidacaw/*') || request()->is('reportcaw/indexnamapembidacaw') ) ? 'active' : '' }}">
<a href="{{url('reportcaw/indexnamapembidacaw')}}">Nama Pembida</a>
</li>
</ul>
<ul class="list-unstyled collapse {{ (request()->is('reportcaw/*')) ? 'show' : '' }}" id="reportSubmenu" >
<li class="{{ (request()->is('reportcaw/indexlelfullcaw/*') || request()->is('reportcaw/indexlelfullcaw') ) ? 'active' : '' }}">
<a href="{{url('reportcaw/indexlelfullcaw')}}">Lelong Keseluruhan</a>
</li>
</ul>
<ul class="list-unstyled collapse {{ (request()->is('reportcaw/*')) ? 'show' : '' }}" id="reportSubmenu" >
<li class="{{ (request()->is('reportcaw/indexbrglelpembidacaw/*') || request()->is('reportcaw/indexbrglelpembidacaw') ) ? 'active' : '' }}">
<a href="{{url('reportcaw/indexbrglelpembidacaw')}}">Barang Lelong Pembida</a>
</li>
</ul>
</li>
{{-- end laporan --}}
{{-- end laporan cawangan --}}
@endhasrole
@hasrole('jurulelong')
<li class="{{ (request()->is('lelong/*')) ? 'active' : '' }}">
@@ -0,0 +1,72 @@
@extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
@foreach ($lelongid as $bid)
<h4 class="pt-3" style="margin-left:1%;">Laporan Barang Lelong Details: {{$bid->caw_name}} </h4>
@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>Bil</th>
<th>Lelong ID</th>
<th>Tarikh Lelong</th>
<th class="text-center">Muat Turun</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{$loop->iteration}}
<td>{{ $bid->lelong_id}}</td>
<td>{{ $bid->tarikh_lelong }}</td>
<td class="text-center">
<a href="{{ route('reportcaw.laporanbrgleldetailscaw',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Laporan Barang Lelong Details" ><i class="fas fa-download"></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": 99999,
dom: 'Bfrtip',
});
</script>
@endsection
@@ -0,0 +1,72 @@
@extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
@foreach ($lelongid as $bid)
<h4 class="pt-3" style="margin-left:1%;">Laporan Barang Lelong Pembida: {{$bid->caw_name}} </h4>
@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>Bil</th>
<th>Lelong ID</th>
<th>Tarikh Lelong</th>
<th class="text-center">Muat Turun</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{$loop->iteration}}
<td>{{ $bid->lelong_id}}</td>
<td>{{ $bid->tarikh_lelong }}</td>
<td class="text-center">
<a href="{{ route('reportcaw.laporanbrglelpembidacaw',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Senarai Nama Pembida" ><i class="fas fa-download"></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": 99999,
dom: 'Bfrtip',
});
</script>
@endsection
@@ -0,0 +1,72 @@
@extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
@foreach ($lelongid as $bid)
<h4 class="pt-3" style="margin-left:1%;">Laporan Lelong Keseluruhan: {{$bid->caw_name}} </h4>
@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>Bil</th>
<th>Lelong ID</th>
<th>Tarikh Lelong</th>
<th class="text-center">Muat Turun</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{$loop->iteration}}
<td>{{ $bid->lelong_id}}</td>
<td>{{ $bid->tarikh_lelong }}</td>
<td class="text-center">
<a href="{{ route('reportcaw.laporanlelfullcaw',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Senarai Nama Pembida" ><i class="fas fa-download"></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": 99999,
dom: 'Bfrtip',
});
</script>
@endsection
@@ -0,0 +1,72 @@
@extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
@foreach ($lelongid as $bid)
<h4 class="pt-3" style="margin-left:1%;">Laporan Nama Pembida: {{$bid->caw_name}} </h4>
@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>Bil</th>
<th>Lelong ID</th>
<th>Tarikh Lelong</th>
<th class="text-center">Muat Turun</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{$loop->iteration}}
<td>{{ $bid->lelong_id}}</td>
<td>{{ $bid->tarikh_lelong }}</td>
<td class="text-center">
<a href="{{ route('reportcaw.laporannamapembidacaw',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Senarai Nama Pembida" ><i class="fas fa-download"></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": 99999,
dom: 'Bfrtip',
});
</script>
@endsection
@@ -39,7 +39,7 @@
<td>{{ $bid['laporan']['tarikh_lelong'] }}</td>
<td class="text-center">
<a href="{{ route('report.senarailapbidaan',$bid['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Senarai Nama Pembida" ><i class="fas fa-download"></i></a>
<a href="{{ route('report.senarailapbidaan',$bid['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Laporan Barang Lelong" ><i class="fas fa-download"></i></a>
</td>
</tr>
@endforeach
@@ -0,0 +1,154 @@
<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 SIMULASI SEMUA CAWANGAN</b></u></td>
</tr>
</table>
<br><br>
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
<thead>
<tr>
<th width="2%" align="left">No</th>
<th width="15%" align="left">No Rujukan </th>
<th width="10%" align="left">Jenis Marhun</th>
<th width="10%" align="left">Karat</th>
<th width="10%" align="left">Berat(gm)</th>
<th width="12%" align="left">Harga(RM)</th>
<th width="12%" align="left">Nilai Marhun(RM)</th>
<th width="14%" align="left">Harga Asas(RM)</th>
<th width="13%" align="left">Nota</th>
</tr>
</thead>
@foreach ($lelongs as $marhun)
<tr>
<td>{{ $loop->iteration }} </td>
<td>{{ $marhun['norujukan'] }}</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['marhun'] }}<br>
@endforeach</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['karat'] }}<br>
@endforeach</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['berat'] }}<br>
@endforeach</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['harga'] }}<br>
@endforeach</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['n_marhun'] }}<br>
@endforeach</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['hargaasas'] }}<br>
@endforeach</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
{{ $item['nota'] }}<br>
@endforeach</td>
</tr>
<tr>
<td colspan="4" align="left"></td>
<td>{{ number_format($marhun['berat'], 2, '.', ',') }}</td>
<td></td>
<td>{{ number_format($marhun['nilaimarhun'], 2, '.', ',') }}</td>
<td>{{ number_format($marhun['hargaasas'], 2, '.', ',') }}</td>
<td></td>
</tr>
@endforeach
@foreach ($arraycaw as $index=>$caw)
<tr>
<td colspan="4" align="left"><strong>Jumlah Keseluruhan</strong></td>
<td><strong>{{ number_format($total_berat, 2, '.', ',') }}</strong></td>
<td><strong>{{ number_format($total_harga, 2, '.', ',') }}</strong></td>
<td><strong>{{ number_format($total_nmarhun, 2, '.', ',') }}</strong></td>
<td><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td>
<td></td>
</tr>
@endforeach
</table>
</tbody>
@@ -0,0 +1,158 @@
<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>Tarikh Lelong:{{ $info->tarikh_lelong}}</td>
@endforeach
@foreach ($arrayinfocaw as $laporancaw)
@foreach ($laporancaw['cawangan'] as $details)
<td>Cawangan : {{$details['caw_name']}}
@endforeach
@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>Marhun</th>
<th>Berat(gm)</th>
<th>Harga Asas(RM)</th>
<th>Harga Lelong(RM)</th>
<th>Nama Pembeli</th>
</tr>
</thead>
@foreach ($brglelpembida as $laporan)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $laporan['norujukan'] }}</td>
<td>{{ $laporan['marhun']}}</td>
<td>{{ number_format($laporan['berat'], 2, '.', ',')}}</td>
<td>{{ number_format($laporan['hargaasas'], 2, '.', ',')}}</td>
<td>{{ number_format($laporan['hargabida'], 2, '.', ',')}}</td>
<td>{{$laporan['nama_bidder']}}</td>
</tr>
@endforeach
<tr>
<td colspan="3" align="left"><strong>Jumlah Keseluruhan</strong></td>
<td><strong>{{ number_format($total_berat, 2, '.', ',') }}</strong></td>
<td><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td>
<td><strong>{{ number_format($total_hargalelong, 2, '.', ',') }}</strong></td>
<td></td>
</tr>
</table>
</tbody>
@@ -0,0 +1,196 @@
<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>Tarikh Lelong:{{ $info->tarikh_lelong}}</td>
@endforeach
@foreach ($arrayinfocaw as $laporancaw)
@foreach ($laporancaw['cawangan'] as $details)
<td>Cawangan : {{$details['caw_name']}}
@endforeach
@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>
@@ -0,0 +1,157 @@
<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>Tarikh Lelong:{{ $info->tarikh_lelong}}</td>
@endforeach
@foreach ($arrayinfocaw as $laporancaw)
@foreach ($laporancaw['cawangan'] as $details)
<td>Cawangan : {{$details['caw_name']}}
@endforeach
@endforeach
</tr>
</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>
+20 -1
View File
@@ -320,8 +320,27 @@ Route::get('/lapbrglelpembida/{lelong_id}',['as'=>'report.lapbrglelpembida','use
//Report
Route::group(['middleware' => ['permission:report'],'prefix'=>'reportcaw'], function () {
Route::get('laporancawindex',['as'=>'reportcaw.laporancawindex','uses'=>'ReportCawanganController@laporancawindex']);
Route::get('laporanbrglelcaw/{lelong_id}',['as'=>'reportcaw.laporanbrglelcaw','uses'=>'ReportCawanganController@laporanbrglelcaw']);
Route::get('laporanbrglelcaw/{lelong_id}',['as'=>'reportcaw.laporanbrglelcaw','uses'=>'ReportCawanganController@laporanbrglelcaw']);
Route::get('indexbrgleldetailscaw',['as'=>'reportcaw.indexbrgleldetailscaw','uses'=>'ReportCawanganController@indexbrgleldetailscaw']);
Route::get('laporanbrgleldetailscaw/{lelong_id}',['as'=>'reportcaw.laporanbrgleldetailscaw','uses'=>'ReportCawanganController@laporanbrgleldetailscaw']);
Route::get('indexnamapembidacaw',['as'=>'reportcaw.indexnamapembidacaw','uses'=>'ReportCawanganController@indexnamapembidacaw']);
Route::get('laporannamapembidacaw/{lelong_id}',['as'=>'reportcaw.laporannamapembidacaw','uses'=>'ReportCawanganController@laporannamapembidacaw']);
Route::get('indexlelfullcaw',['as'=>'reportcaw.indexlelfullcaw','uses'=>'ReportCawanganController@indexlelfullcaw']);
Route::get('laporanlelfullcaw/{lelong_id}',['as'=>'reportcaw.laporanlelfullcaw','uses'=>'ReportCawanganController@laporanlelfullcaw']);
Route::get('indexbrglelpembidacaw',['as'=>'reportcaw.indexbrglelpembidacaw','uses'=>'ReportCawanganController@indexbrglelpembidacaw']);
Route::get('laporanbrglelpembidacaw/{lelong_id}',['as'=>'reportcaw.laporanbrglelpembidacaw','uses'=>'ReportCawanganController@laporanbrglelpembidacaw']);
});