This commit is contained in:
hafifierahman
2022-01-08 11:01:36 +08:00
23 changed files with 311 additions and 111 deletions
@@ -172,7 +172,7 @@
<table id="scan">
<tr>
<th colspan ="5"><b>LAPORAN WAKIL</b></th>
<th colspan ="5"><b>LAPORAN SAG HILANG</b></th>
<th> </th>
<th> </th>
<th></th>
@@ -192,48 +192,50 @@
<td> </td>
<td> </td>
</tr>
{{-- <tr>
<tr>
<td style="width:20px"> <b>TARIKH:</b></td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $date);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate);
@endphp</td> --}}
@endphp</td>
{{-- <td style="width:20px"> <b>HINGGA:</b></td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $hingga_date);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate);
@endphp</td> --}}
{{-- <td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr> --}}
<td> </td>
</tr>
</table>
<br>
<table id="details">
<tr>
<th>Bil</th>
<th>nama</th>
<th>nokp</th>
<th>nowakil</th>
<th>hubungan</th>
<th>alamat1</th>
<th>telefon</th>
<th>Norujukan</th>
<th>Alasan</th>
<th>PC/PPC</th>
<th>Daerah</th>
<th>Negeri</th>
</tr>
@foreach($wakil as $index=>$lw)
@foreach($polis as $index=>$sh)
<tr>
<td>{{ $loop->iteration}}</td>
<td>{{ $lw['nama'] }}</td>
<td>{{ $lw['nokp'] }}</td>
<td>{{ $lw['nowakil'] }}</td>
<td>{{ $lw['hubungan'] }}</td>
<td>{{ $lw['alamat1'] }}</td>
<td>{{ $lw['telefon'] }}</td>
<td> {{ $sh['norujukan'] }}</th>
<td> {{ $sh['komen1'] }}</th>
<td> {{ $sh['teller'] }}</th>
@php
$koddaerah = Http::get(config('api.url') .'/api/daerah/' .$sh['koddaerah'] )->json();
$kodnegeri = Http::get(config('api.url') .'/api/negeri/' .$sh['kodnegeri'] )->json();
@endphp
<td> {{ $koddaerah['namadaerah'] }}</th>
<td> {{ $kodnegeri['negeri'] }}</th>
</tr>
@endforeach
</table>