Add no telefon at jana notis pdf and blade

This commit is contained in:
Amir
2023-03-01 12:31:03 +08:00
parent 8077be9249
commit bebbc38998
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -298,7 +298,7 @@ class NotisController extends Controller
else
{
$pdf = PDF::loadView('pdf.listnotis',compact('marhuns','lelong_id','bayaran','listsag','caw'))
->setPaper('a4', 'potrait');
->setPaper('a4', 'landscape');
return $pdf->download('Senarai Notis.pdf');
}
@@ -31,6 +31,7 @@
<tr>
<th>No</th>
<th>No KP</th>
<th>No Telefon</th>
<th>Alamat 1</th>
<th>Alamat 2</th>
<th>Alamat 3</th>
@@ -46,6 +47,7 @@
<tr>
<td>{{ $loop->iteration }} </td>
<td>{{ $notis['nokp']}}</td>
<td>{{ $notis['nama']->telefon}}</td>
<td>{{ $notis['nama']->alamat1 }}</td>
<td>{{ $notis['nama']->alamat2 }}</td>
<td>{{ $notis['nama']->alamat3 }}</td>
+2
View File
@@ -157,6 +157,7 @@
<tr>
<th>No</th>
<th>No Kp</th>
<th>No Telefon</th>
<th>Alamat 1</th>
<th>Alamat 2</th>
<th>Alamat 3</th>
@@ -172,6 +173,7 @@
<tr>
<td>{{ $loop->iteration }} </td>
<td>{{ $notis['nokp']}}</td>
<td>{{ $notis['nama'][0]['telefon'] }}</td>
{{-- <td style='word-wrap'>{{ $notis['nama']['nama']}}</td> --}}
<td>@foreach($notis['nama'] as $item){{ $item['alamat1']}}<br>@endforeach</td>