tambah function notis peringatan untuk arcc

This commit is contained in:
Nur Izzati Zulkifli
2023-12-25 15:43:31 +08:00
parent dfc3ab2ada
commit 52bbeb9cec
7 changed files with 333 additions and 23 deletions
@@ -100,7 +100,8 @@
<ol class="breadcrumb pb-3">
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
<li class="breadcrumb-item"><a href="{{ route('arcc.notisperingatan') }}">Notis Peringatan</a></li>
<li class="breadcrumb-item active" aria-current="page">Rekod Notis Peringatan</li>
<li class="breadcrumb-item"><a href="{{ route('arcc.rekodnotisperingatan') }}">Rekod Notis Peringatan</a></li>
<li class="breadcrumb-item active" aria-current="page">Mengikut Cawangan</li>
</ol>
</nav>
@@ -127,21 +128,27 @@
@csrf
<input type="hidden" name="type" id="typedonwload" value="">
<input type='hidden' name="radaktif" value="aktif">
<input type='hidden' name="notisid" value="{{$notisid}}" >
<table class="table table-striped table-hover" id="myTable">
<thead>
<th>Bil</th>
<th>Cawangan</th>
<th>Bilangan Surat</th>
<th>Baki Pembiayaan (RM)</th>
<th>Maklumat Lanjut</th>
</thead>
{{dd($senarai[0])}}
@foreach ($senarai[0] as $index => $item)
@foreach ($senarai[0]['getcawnotisbycaw'] as $index => $item)
{{-- {{dd($item['namacaw'][$index]['status'])}} --}}
<tr>
<td>{{ $loop->iteration }}</td>
<td style="white-space: nowrap;">{{$item['details_caw']}}</td>
<td style="white-space: nowrap;">{{$item['getcawnotisbycaw']['totalsag']}}</td>
{{-- <td style="white-space: nowrap;"><a href="{{ route('arcc.detailnotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-info text-white">Lihat</a></td> --}}
<td style="white-space: nowrap;"> @if($item['namacaw'][$index]['status'] == 2)
<img src="{{ asset('img/success.png') }}" style="width:20px"></img>
@endif{{$item['namacaw'][$index]['details_caw']}}</td>
<td align="center" style="white-space: nowrap;">{{count($item['detailbycaw'])}}</td>
<td style="white-space: nowrap;">{{number_format($item['totalbakipjm'],2)}}</td>
<td style="white-space: nowrap;"><a href="{{ route('arcc.bycawnotisperingatan', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'], 'notisid' => $notisid ]) }}" class="btn btn-info text-white">Lihat</a>
</td>
</tr>
@endforeach
</table>