update tukar kemaskini by cawangan shj

This commit is contained in:
Nur Izzati Zulkifli
2024-01-11 16:50:11 +08:00
parent e37c7430a7
commit d3cbccd836
6 changed files with 73 additions and 14 deletions
@@ -144,13 +144,16 @@
<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;">{{$item['totalsag']}}</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 align="center" style="white-space: nowrap;">@if($item['totalsag'] == 0)<a style="color: #e74c3c; nowrap">{{$item['totalsag']}}</a>@else {{$item['totalsag']}}@endif/{{$item['totalsagall']}}</td>
<td style="white-space: nowrap;">@if($item['totalsag'] == 0)<a style="color: #e74c3c; nowrap">{{number_format($item['totalbakipjm'],2)}}</a>@else {{number_format($item['totalbakipjm'],2)}}@endif</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> --}}
<a href="{{ route('arcc.kemaskininotisperingatanbycaw', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'],'notisid' => $notisid] ) }}" class="btn btn-warning text-white">Kemaskini</a>
</td>
</tr>
@endforeach
</table>
<div style="color: #e74c3c" align=left> <i>*jika bilangan berkurang bermaksud telah masuk ke Notis Peringatan Kedua</i></div>
</form>
</div>
@@ -143,10 +143,11 @@
<tr>
<td>{{ $loop->iteration }}</td>
<td style="white-space: nowrap;">{{$item['namacaw'][$index]['details_caw']}}</td>
<td align="center" style="white-space: nowrap;">{{$item['totalsag']}}</td>
<td style="white-space: nowrap;">{{number_format($item['totalbakipjm'],2)}}</td>
<td style="white-space: nowrap;"><a href="{{ route('arcc.bycawnotisperingatankedua', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'], 'notisid' => $notisid ]) }}" class="btn btn-info text-white">Lihat</a>
</td>
<td align="center" style="white-space: nowrap;">@if($item['totalsag'] == 0)<a style="color: #e74c3c; nowrap">{{$item['totalsag']}}</a>@else {{$item['totalsag']}}@endif/{{$item['totalsagall']}}</td>
<td style="white-space: nowrap;">@if($item['totalsag'] == 0)<a style="color: #e74c3c; nowrap">{{number_format($item['totalbakipjm'],2)}}</a>@else {{number_format($item['totalbakipjm'],2)}}@endif</td>
<td style="white-space: nowrap;">
{{-- <a href="{{ route('arcc.bycawnotisperingatankedua', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'], 'notisid' => $notisid ]) }}" class="btn btn-info text-white">Lihat</a> --}}
<a href="{{ route('arcc.kemaskininotisperingatankeduabycaw', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'],'notisid' => $notisid] ) }}" class="btn btn-warning text-white">Kemaskini</a></td>
</tr>
@endforeach
</table>
@@ -129,7 +129,7 @@
<input type='hidden' name="radaktif" value="aktif">
<table class="table table-striped table-hover" id="myTable">
<thead>
<th>Bil</th>
<th>ID Notis</th>
<th>Tarikh Notis</th>
<th>Cawangan</th>
<th>Fasa</th>
@@ -151,7 +151,7 @@
@if($item2['status'] == 2)
<img src="{{ asset('img/success.png') }}" style="width:20px"></img>
@endif
{{ $item2['details_caw']}}<br>
{{ $item2['details_caw']}} : {{ $item2['bakitotalsag']}}/{{ $item2['totalsag']}} <br>
@endforeach
@endforeach</td>
<td style="white-space: nowrap;">@if($item['info']['daritempoh'] == '5' )
@@ -161,12 +161,13 @@
@endif</td>
{{-- <td style="white-space: nowrap;">{{ $item['info']['hinggatempoh'] ?? '-' }}</td> --}}
<td style="white-space: nowrap;">
{{-- <a href="{{ route('arcc.detailnotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-info text-white">Lihat</a> --}}
<a href="{{ route('arcc.kemaskininotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-warning text-white">Kemaskini</a></td>
<a href="{{ route('arcc.detailnotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-info text-white">Lihat</a></td>
{{-- <a href="{{ route('arcc.kemaskininotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-warning text-white">Kemaskini</a> --}}
</tr>
@endforeach
</table>
<div style="color: #e74c3c" align=left> <i>*jika bilangan berkurang bermaksud telah masuk ke Notis Peringatan Kedua</i></div>
</form>
</div>
@@ -152,7 +152,9 @@
@if($item2['status'] == 3)
<img src="{{ asset('img/surat.png') }}" style="width:20px"></img>
@endif
{{ $item2['details_caw']}}<br>
@if($item2['bakitotalsagkedua'] > 0)<a style="color: #27ae60"><b>{{ $item2['details_caw']}} : {{ $item2['bakitotalsagkedua']}}/{{ $item2['totalsag']}} </b></a>
@else {{ $item2['details_caw']}} : {{ $item2['bakitotalsagkedua']}}/{{ $item2['totalsag']}}
@endif<br>
@endforeach
@endforeach</td>
<td style="white-space: nowrap;">@if($item['info']['daritempoh'] == '5' )
@@ -162,7 +164,8 @@
@endif</td>
<td style="white-space: nowrap;">
{{-- <a href="{{ route('arcc.detailnotisperingatankedua', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-info text-white">Lihat</a> --}}
<a href="{{ route('arcc.kemaskininotisperingatankedua', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-warning text-white">Kemaskini</a></td>
<a href="{{ route('arcc.detailnotisperingatankedua', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-info text-white">Lihat</a></td>
{{-- <a href="{{ route('arcc.kemaskininotisperingatankedua', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-warning text-white">Kemaskini</a></td> --}}
</tr>
@endforeach