update error report

This commit is contained in:
Amirah22
2022-11-01 11:14:22 +08:00
parent a4a859f6db
commit be8e969ec3
6 changed files with 45 additions and 16 deletions
@@ -97,7 +97,7 @@
<span class="input-group-text" id="basic-addon1">Cawangan</span>
</div>
<select class="custom-select" name="caw" id="caw">
<option value="">Please select</option>
<option value="">Pilih Cawangan</option>
@foreach ($caw as $item)
<option value="{{$item->id}}">{{$item->caw_name}}</option>
@endforeach
@@ -130,7 +130,14 @@ tr:nth-child(even) {
<td>{{ $item['berat'] }}</td>
<td>{{ $item['hargaasas'] }}</td>
</tr>
@endforeach</td>
@endforeach
<tr>
<td colspan="3" align="left"><strong>Jumlah Keseluruhan</strong></td>
<td><strong>{{ number_format($total_berat, 2, '.', ',') }}</strong></td>
<td><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td>
<td></td>
</tr>
</table>
@@ -142,7 +142,11 @@ tr:nth-child(even) {
</td>
<td>
@foreach($laporan['details'] as $details)
<span class="m-2">{{ $details['masa_bidaan']}}</span><br>
<span class="m-2"> @php
$myDateTime = DateTime::createFromFormat('Y-m-d H:i:s', $details['masa_bidaan'] );
$t_lelong = $myDateTime->format('d-m-Y h:i:s');
echo($t_lelong);
@endphp</span><br>
@endforeach
</td>
</tr>