Merged in izzati-hotfix-alamat-notislelong (pull request #98)

update alamat new line
This commit is contained in:
izzati zulkifli
2025-03-11 03:40:53 +00:00
2 changed files with 20 additions and 7 deletions
+10 -5
View File
@@ -123,12 +123,17 @@
.page-break {
page-break-before: always;
}
.alamat {
width: 300px; /* Adjust as needed */
word-wrap: break-word; /* Allows long words to break */
overflow-wrap: break-word; /* Ensures wrapping */
white-space: normal; /* Prevents text from staying in a single line */
}
</style>
@foreach($marhuns as $index1=> $notis)
{{-- {{dd($notis['nama']['alamat1'])}} --}}
<div class="container">
<table id="header">
@@ -202,7 +207,7 @@
<tr>
<td style="vertical-align:top;">KEPADA :</td>
<!-- <td style="vertical-align:top;">:</td> -->
<td style="vertical-align:top;">{{ $notis['nama']['nama']}}
<td style="vertical-align:top;" class="alamat">{{ $notis['nama']['nama']}}
<br> {{ strtoupper($notis['nama']['alamat1']) }}
{{-- {!! ($notis['nama']['alamat1'] === null || $notis['nama']['alamat1'] === '') ? '' : '<br>' . strtoupper($notis['nama']['alamat1']) !!} <br> --}} <br>
{{ ' ' . $notis['nama']['poskod'] . ' ' . strtoupper($notis['nama']['namadaerah']) . ' ' . strtoupper($notis['nama']['negeri'])}}</td>
@@ -123,6 +123,14 @@
.page-break {
page-break-before: always;
}
.alamat {
width: 300px; /* Adjust as needed */
word-wrap: break-word; /* Allows long words to break */
overflow-wrap: break-word; /* Ensures wrapping */
white-space: normal; /* Prevents text from staying in a single line */
}
</style>
@foreach($marhuns as $index1=> $notis)
{{-- {{dd($notis['nama']['alamat1'])}} --}}
@@ -199,7 +207,7 @@
<tr>
<td style="vertical-align:top;">KEPADA</td>
<td style="vertical-align:top;">:</td>
<td style="vertical-align:top;">{{ $notis['nama']['nama']}}
<td style="vertical-align:top;" class="alamat">{{ $notis['nama']['nama']}}
<br> {{ strtoupper($notis['nama']['alamat1']) }} <br>
{{-- {!! ($notis['nama']['alamat1'] === null || $notis['nama']['alamat1'] === '') ? '' : '<br>' . strtoupper($notis['nama']['alamat1']) !!} <br> --}}
{{-- {!! ($notis['nama']['alamat2'] === null || $notis['nama']['alamat2'] === '') ? '' : '<br>' . strtoupper($notis['nama']['alamat2']) !!} <br> --}}