format document laplelong
This commit is contained in:
@@ -1,152 +1,140 @@
|
||||
@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 $info)
|
||||
<span class="pt-3" style="margin-left:1%;"><b>Laporan Lelong Keseluruhan</b></span>
|
||||
<span class="pt-3" style="margin-left:1%;">Batch Lelong: {{ $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.pdflaplelong')}}" 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>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>
|
||||
<tbody>
|
||||
@foreach ($laporanlelong as $laporan)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $laporan['norujukan']}}</td>
|
||||
<td>{{ $laporan['nilaimarhun']}}</td>
|
||||
<td>{{ $laporan['pinjaman']}}</td>
|
||||
<td>{{ $laporan['upahsimpan']}}</td>
|
||||
<td>{{ $laporan['cajlelong']}}</td>
|
||||
<td>{{ $laporan['hargabida']}}</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>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
<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 Keseluruhans</b></span>
|
||||
<span class="pt-3" style="margin-left:1%;">Batch Lelong: {{ $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
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2" align="left"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($total_nmarhun, 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;
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<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 }}">
|
||||
|
||||
}
|
||||
else {
|
||||
$total_rugi = $total_bakirugi;
|
||||
<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>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>
|
||||
<tbody>
|
||||
@foreach ($laporanlelong as $laporan)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $laporan['norujukan'] }}</td>
|
||||
<td>{{ $laporan['nilaimarhun'] }}</td>
|
||||
<td>{{ $laporan['pinjaman'] }}</td>
|
||||
<td>{{ $laporan['upahsimpan'] }}</td>
|
||||
<td>{{ $laporan['cajlelong'] }}</td>
|
||||
<td>{{ $laporan['hargabida'] }}</td>
|
||||
<?php
|
||||
$rugi = 0;
|
||||
$baki = 0;
|
||||
if (strpos($laporan['baki'], '-') !== false) {
|
||||
$rugi = $laporan['baki'];
|
||||
} else {
|
||||
$baki = $laporan['baki'];
|
||||
}
|
||||
?>
|
||||
|
||||
}
|
||||
?>
|
||||
<td>{{ number_format($total_rugi, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($total_baki, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($total_hargaasas, 2, '.', ',') }}</td>
|
||||
<td></td>
|
||||
<td>{{ $baki }}</td>
|
||||
<td>{{ $rugi }}</td>
|
||||
<td>{{ $laporan['hargaasas'] }}</td>
|
||||
<td>{{ $laporan['nama_bidder'] }}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2" align="left"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($total_nmarhun, 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>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
|
||||
</table>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<a href="{{ route('lelong.laplelongindex') }}" class="btn btn-primary">Kembali</a>
|
||||
</div>
|
||||
</div>
|
||||
</table>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<a href="{{ route('lelong.laplelongindex') }}" class="btn btn-primary">Kembali</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
</div>
|
||||
<script>
|
||||
var tablelelongbid = $('#notis').DataTable({
|
||||
"columnDefs": [{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 5,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
|
||||
var tablelelongbid= $('#notis').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 5,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
|
||||
|
||||
{
|
||||
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();
|
||||
}
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
]
|
||||
|
||||
});
|
||||
|
||||
$('.export').tooltip();
|
||||
$( '.export').removeClass('dt-button');
|
||||
|
||||
|
||||
</script>
|
||||
});
|
||||
|
||||
$('.export').tooltip();
|
||||
$('.export').removeClass('dt-button');
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user