80 lines
2.7 KiB
PHP
80 lines
2.7 KiB
PHP
@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 Lelong Keseluruhan</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>Bil</th>
|
|
<th>Lelong ID</th>
|
|
<th>Cawangan</th>
|
|
<th>Tarikh Lelong</th>
|
|
<th class="text-center">Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
@foreach ($arraydetails as $bid)
|
|
<tr>
|
|
<td>{{$loop->iteration}}</td>
|
|
<td>{{ $bid['laporan']['lelong_id']}}</td>
|
|
<td>
|
|
@foreach($bid['details'] as $details)
|
|
<span class="m-2"> {{ $details['caw_name']}}</span><br>
|
|
@endforeach
|
|
|
|
</td>
|
|
<td>{{ $bid['laporan']['tarikh_lelong'] }}</td>
|
|
<td class="text-center">
|
|
<a href="{{ route('report.laplelong',$bid['laporan']['lelong_id'],$details['caw_name']) }}" data-toggle="tooltip" data-placement="top" title="Senarai Lelong Keseluruhan" ><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": 15,
|
|
dom: 'Bfrtip',
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
@endsection
|