update migration file, dan laporan

This commit is contained in:
majid
2025-06-11 09:55:37 +07:00
parent f69128e18e
commit 7ddcc14167
25 changed files with 2513 additions and 821 deletions

View File

@@ -1,4 +1,4 @@
{{-- <div class="no-break"> --}}
<div class="no-break">
<table class="judul" style="width: 100%; ">
<tr>
<td style="width: 100%; border: 1px solid #000; text-align: center;">
@@ -101,6 +101,5 @@
</tr>
@endif
</table>
{{-- </div> --}}
</div>

View File

@@ -137,4 +137,4 @@
</tr>
@endif
</table>
</div>
{{-- </div> --}}

View File

@@ -93,10 +93,10 @@
</div>
</div>
<footer id="footer">
{{-- <footer id="footer"> --}}
{{-- Cabang : {{ $permohonan->debiture->branch->name ?? '' }} --}}
</footer>
<script type="text/php">
{{-- </footer> --}}
{{-- <script type="text/php">
if (isset($pdf)) {
$pdf->page_script('
$font = $fontMetrics->get_font("Arial, Helvetica, sans-serif", "normal");
@@ -107,8 +107,8 @@
$pdf->text($x, $y, $pageText, $font, $size);
');
}
</script>
<script>
</script> --}}
{{-- <script>
const datas = @json($forminspeksi);
console.log(datas);
const lpjData = @json($lpjData);
@@ -138,4 +138,4 @@
});
</script>
</body>
</html>
</html> --}}

View File

@@ -96,11 +96,14 @@
<table width="100%" border="0"
style="align-content: center; text-align: center; margin-bottom: 20px">
@foreach ($chunkedPhotos as $item)
@php
$imagePath = storage_path('app/public/' . $item['path']);
@php
$filePath = asset('storage/' . $item['path']);
$extension = strtolower(pathinfo($item['path'], PATHINFO_EXTENSION));
$isImage = in_array($extension, ['jpg', 'jpeg', 'png', 'gif']);
$isPdf = $extension === 'pdf';
@endphp
<tr>
<td style="width: 100%; padding: 10px;" class="photo-item border">
<td style="width: 100%; padding: 10px; text-align: center" class="photo-item border" >
<p style="font-weight: medium; font-size: 10px">{{ $category }} -
@isset($subcategory)
@if (trim($subcategory) !== '')
@@ -109,8 +112,18 @@
@endisset
{{ $item['name'] ?? '' }}
</p>
@if ($statusLpj || file_exists($imagePath))
<img src="{{ $imagePath }}" alt="{{ $item['path'] }}" class="photo-image">
@if ($statusLpj || file_exists(public_path('storage/' . $item['path'])))
@if ($isImage)
<img src="{{ $filePath }}" alt="{{ $item['path'] }}" class="photo-image" style="text-align: center;">
@elseif ($isPdf)
<a href="{{ $filePath }}" download="{{ basename($filePath) }}" style="font-size:12px; color:#1a73e8; text-decoration: underline;">
⬇️ Unduh File PDF
</a>
@else
<a href="{{ $filePath }}" download="{{ basename($filePath) }}" style="font-size:12px; color:#1a73e8; text-decoration: underline;">
⬇️ Unduh File
</a>
@endif
@endif
@isset($item['description'])
<p style="font-size:9px">{{ $item['description'] }}</p>
@@ -135,8 +148,10 @@
<table width="100%" border="0"
style="align-content: center; text-align: center; margin-bottom: 20px">
@foreach ($chunkedPhotos as $item)
@php
$imagePath = storage_path('app/public/' . $item['path']);
@php
$filePath = asset('storage/' . $item['path']);
$extension = strtolower(pathinfo($item['path'], PATHINFO_EXTENSION));
$isPdf = $extension === 'pdf';
@endphp
<tr>
<td style="width: 100%; padding: 10px;" class="photo-item border">
@@ -148,8 +163,18 @@
@endisset
{{ $item['name'] ?? '' }}
</p>
@if ($statusLpj || file_exists($imagePath))
<img src="{{ $imagePath }}" alt="{{ $item['path'] }}" class="photo-image">
@if ($statusLpj || file_exists(public_path('storage/' . $item['path'])))
@if ($isImage)
<img src="{{ $filePath }}" alt="{{ $item['path'] }}" class="photo-image" style="text-align: center;">
@elseif ($isPdf)
<a href="{{ $filePath }}" download="{{ basename($filePath) }}" style="font-size:12px; color:#1a73e8; text-decoration: underline;">
⬇️ Unduh File PDF
</a>
@else
<a href="{{ $filePath }}" download="{{ basename($filePath) }}" style="font-size:12px; color:#1a73e8; text-decoration: underline;">
⬇️ Unduh File
</a>
@endif
@endif
@isset($item['description'])
<p style="font-size:9px">{{ $item['description'] }}</p>

View File

@@ -21,7 +21,7 @@
}
#header {
/* #header {
position: fixed;
top: -80px;
left: 0;
@@ -29,15 +29,15 @@
height: 50px;
text-align: center;
padding-bottom: 10px;
}
} */
.header-logo {
/* .header-logo {
position: absolute;
left: 20px;
top: 10px;
max-height: 80px;
max-width: 150px;
}
} */
.header-title {
margin-top: 20px;
@@ -88,9 +88,9 @@
page-break-before: always;
break-before: page;
}
.border {
/* .border {
border: 1px solid #000;
}
} */
.no-break {
page-break-inside: avoid;