Files
lelong/resources/views/laporan/marhunpermatabycawanganT.blade.php
Nur Izzati Zulkifli 00fd4c1646 update marhun permata
2023-08-24 17:06:50 +08:00

103 lines
4.2 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col">
<div class="card">
<div class="card-header header-style">
<div class="card-header header-style">
<a href="javascript:window.history.go(-1);" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Marhun Permata Selepas Tawarruq: {{$cawanganDetail}}
</div>
</div>
</div>
<div class="card-body">
@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-bordered text-center" id="tablenotislelong" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>Tarikh Lelong</th>
<th>Batch Lelong</th>
<th>Bil.Surat</th>
<th>Senarai</th>
{{-- <th>Jenis</th> --}}
</tr>
</thead>
<tbody>
{{-- {{dd($senarai[0]['lelong'])}} --}}
@foreach ($senarai[0]['lelong'] as $bid)
{{-- {{dd($bid['t_lelong'])}} --}}
{{-- {{dd($bid['lelong_info']['id'])}} --}}
<tr>
<td>{{$loop->iteration}}
<td>@foreach ($bid['t_lelong'] as $index=>$tlelong)
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $tlelong[0]['t_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp
@endforeach
</td>
<td>{{ $bid['batchno']}}</td>
<td><span class="badge badge-pill badge-info text-white" style="font-size:100%">{{ $bid['total_lelong']}}</span></td>
@hasrole('operasi')
<td><a class="btn btn-success btn-sm m-1" href="{{ route('reportbycaw.marhunpermatabycawdetailbatchT',['kodcaw'=>$bid['kodcaw'],'batchno' =>$bid['batchno']]) }}" data-toggle="tooltip" data-placement="top" title="Senarai Lelong"><i class="fas fa-list"></i></a></td>
@endhasrole
@hasrole('pengurus-cawangan')
<td><a class="btn btn-success btn-sm m-1" href="{{ route('reportcaw.marhunpermatabycawdetailbatchT',['kodcaw'=>$bid['kodcaw'],'batchno' =>$bid['batchno']]) }}" data-toggle="tooltip" data-placement="top" title="Senarai Lelong"><i class="fas fa-list"></i></a></td>
@endhasrole
{{-- <td></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: [[0, 'asc']],
"info": false,
"lengthChange": false,
"pageLength": 99999,
dom: 'Bfrtip',
});
</script>
@endsection