115 lines
4.1 KiB
PHP
115 lines
4.1 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="container-fluid">
|
|
<div class="row ">
|
|
<div class="col-md-11 mx-auto card p-4">
|
|
@foreach ($info as $info)
|
|
<span class="pt-3" style="margin-left:1%;"><b>Laporan Barang Lelong Pembida</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.pdflapbrglelpembida')}}" 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>Bil</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>
|
|
<tbody>
|
|
@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
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="3" align="left"><b>JUMLAH KESELURUHAN</b></td>
|
|
<td>{{ number_format($total_berat, 2, '.', ',') }}</td>
|
|
<td>{{ number_format($total_hargaasas, 2, '.', ',') }}</td>
|
|
<td>{{ number_format($total_hargalelong, 2, '.', ',') }}</td>
|
|
<td></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tfoot>
|
|
|
|
|
|
</table>
|
|
<div class="modal-footer" style="margin-top:2%;">
|
|
<a href="{{ route('lelong.lapbrglelpembidaindex') }}" class="btn btn-primary">Kembali</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
|
|
var tablelelongbid= $('#notis').DataTable( {
|
|
"columnDefs": [
|
|
{
|
|
"targets": 0,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 5,
|
|
"orderable": false
|
|
}
|
|
],
|
|
|
|
"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();
|
|
}
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
$('.export').tooltip();
|
|
$( '.export').removeClass('dt-button');
|
|
|
|
|
|
</script>
|
|
|
|
@endsection
|