diff --git a/resources/views/pdf/jananotis_new.blade.php b/resources/views/pdf/jananotis_new.blade.php index dd79bf05..95ab01cc 100644 --- a/resources/views/pdf/jananotis_new.blade.php +++ b/resources/views/pdf/jananotis_new.blade.php @@ -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 */ +} + + @foreach($marhuns as $index1=> $notis) -{{-- {{dd($notis['nama']['alamat1'])}} --}} - - -
| {{ $caw['caw_name'] }} | |||
|---|---|---|---|
| {{ $caw['alamat1'] }} | +{{ $caw['alamat1'] }} | ||
| KEPADA : | -{{ $notis['nama']['nama']}} + | {{ $notis['nama']['nama']}}
{{ strtoupper($notis['nama']['alamat1']) }} {{-- {!! ($notis['nama']['alamat1'] === null || $notis['nama']['alamat1'] === '') ? '' : ' ' . strtoupper($notis['nama']['alamat1']) !!} --}} {{ ' ' . $notis['nama']['poskod'] . ' ' . strtoupper($notis['nama']['namadaerah']) . ' ' . strtoupper($notis['nama']['negeri'])}} |
diff --git a/resources/views/pdf/jananotisfasa2_new.blade.php b/resources/views/pdf/jananotisfasa2_new.blade.php
index 1a1b349a..4d0d68f5 100644
--- a/resources/views/pdf/jananotisfasa2_new.blade.php
+++ b/resources/views/pdf/jananotisfasa2_new.blade.php
@@ -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 */
+ }
+
+
@foreach($marhuns as $index1=> $notis)
{{-- {{dd($notis['nama']['alamat1'])}} --}}
@@ -199,7 +207,7 @@
|
| KEPADA | : | -{{ $notis['nama']['nama']}} + | {{ $notis['nama']['nama']}}
{{ strtoupper($notis['nama']['alamat1']) }} {{-- {!! ($notis['nama']['alamat1'] === null || $notis['nama']['alamat1'] === '') ? '' : ' ' . strtoupper($notis['nama']['alamat1']) !!} --}} {{-- {!! ($notis['nama']['alamat2'] === null || $notis['nama']['alamat2'] === '') ? '' : ' ' . strtoupper($notis['nama']['alamat2']) !!} --}} |