Initial commit
This commit is contained in:
491
resources/views/menu_v2/Finance/_printInvoice.blade.php
Executable file
491
resources/views/menu_v2/Finance/_printInvoice.blade.php
Executable file
@ -0,0 +1,491 @@
|
||||
<?php
|
||||
// https://stackoverflow.com/questions/1328036/php-date-in-foreign-languages-e-g-mar-25-ao%C3%BB-09
|
||||
// https://www.educative.io/edpresso/how-to-change-the-timezone-in-a-laravel-application
|
||||
// https://stackoverflow.com/questions/22059495/strftime-for-indonesia-locale
|
||||
// https://askubuntu.com/questions/76013/how-do-i-add-locale-to-ubuntu-server
|
||||
setlocale(LC_TIME, 'id_ID.UTF8', 'id_ID.UTF-8', 'id_ID.8859-1', 'id_ID', 'IND.UTF8', 'IND.UTF-8', 'IND.8859-1', 'IND', 'Indonesian.UTF8', 'Indonesian.UTF-8', 'Indonesian.8859-1', 'Indonesian', 'Indonesia', 'id', 'ID', 'en_US.UTF8', 'en_US.UTF-8', 'en_US.8859-1', 'en_US', 'American', 'ENG', 'English');
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>INVOICE #{{ $ord_invc->code }}</title>
|
||||
<link href="{{ base_path() . '/public/assets/vendor/bootstrap-5.0.2-dist/css/bootstrap.css' }}" rel="stylesheet">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<style>
|
||||
@page {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
|
||||
/* devanagari */
|
||||
|
||||
* {
|
||||
/* margin: 0; */
|
||||
/* line-height: 1.2; */
|
||||
line-height: 0.8;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* html { margin: 0} */
|
||||
|
||||
body {
|
||||
font-weight: 400;
|
||||
margin: 1cm 1.3cm 1cm 1.3cm;
|
||||
font-family: 'Poppins';
|
||||
}
|
||||
|
||||
.table-border-dark th,
|
||||
.table-border-dark td,
|
||||
{
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
.table-border-none th,
|
||||
.table-border-none td,
|
||||
{
|
||||
border: 0 solid #000;
|
||||
}
|
||||
|
||||
.table-padding-paragraph td {
|
||||
padding: 0.25rem 0.35rem;
|
||||
}
|
||||
.table-padding-paragraph2 td {
|
||||
padding: 0.25rem;
|
||||
}
|
||||
.table-padding-vertical td {
|
||||
padding: 0.25rem 0;
|
||||
}
|
||||
|
||||
.word-break {
|
||||
word-wrap: break-word;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.page-break {
|
||||
page-break-after: always;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: 1000;
|
||||
}
|
||||
|
||||
.general-photo {
|
||||
max-width: 600px;
|
||||
max-height: 400px;
|
||||
}
|
||||
|
||||
.dynamic-photo {
|
||||
max-width: 80%;
|
||||
max-height: 40%;
|
||||
}
|
||||
|
||||
.mx-garis-tepi {
|
||||
margin-left: 3.5rem;
|
||||
margin-right: 3.5rem;
|
||||
}
|
||||
|
||||
.ol-without-left {
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table class="table mb-4">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="">
|
||||
{{-- <img src="{{ base_path() . '/public/images/bonceng-red.png' }}" --}}
|
||||
{{-- alt="PT. BONCENG INDONESIA" style="width:150px; height:40px; margin:0 1rem 0 0;"></td> --}}
|
||||
<img src="{{ base_path() . '/public/images/logo-bonceng-big.png' }}"
|
||||
alt="PT. BONCENG INDONESIA" style="width:150px; height:45px; margin:0 1rem 0 0;">
|
||||
</td>
|
||||
<td class="text-start" style="padding-left:0;">
|
||||
{{-- padding-left:345px; --}}
|
||||
<p class="mb-1 text-end"><strong>PT. BONCENG INDONESIA</strong></p>
|
||||
{{-- <p class="mb-1 text-end">{{ implode(str_split(''.env('BINGCORP_PHONE'), 4), ' ') }}</p> --}}
|
||||
<p class="mb-0 text-end" style="font-size:10px;">{{ substr(env('BINGCORP_ADDR'), 0, 37) }}</p>
|
||||
<p class="mb-1 text-end" style="font-size:10px;">{{ substr(env('BINGCORP_ADDR'), 39) }}</p>
|
||||
<p class="mb-1 text-end" style="color:#0d6efd;text-decoration:underline;">{{ env('BINGCORP_WEB') }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="mb-4" style="text-align: center;">
|
||||
<p style="font-size: 18px;">
|
||||
{{-- <strong>INVOICE #{{ $order->ord_code }}</strong> --}}
|
||||
{{-- <strong>INVOICE #{{ $ord_invc->code }}</strong> --}}
|
||||
<strong>INVOICE</strong>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="" style="margin-bottom: 1rem; font-size: 12px;">
|
||||
<table class="table table-border-dark table-padding-paragraph mb-3">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:65%;">
|
||||
<p class="mb-1">Kepada</p>
|
||||
<p class="mb-1"><strong>{{ $order->c_pt_name }}</strong></p>
|
||||
<p style="margin-bottom: 1rem;">{{ $order->c_pt_addr }}</p>
|
||||
<p class="mb-1">U.P: {{ $order->c_pt_pic_name.' ( '.implode(str_split('0'.$order->c_pt_pic_phone_val, 4), ' ').' )' }}</p>
|
||||
</td>
|
||||
<td style="width:35%;">
|
||||
<table class="table table-border-none table-padding-vertical mx-0 my-0">
|
||||
<tr>
|
||||
<td class="text-start">Tanggal Invoice</td>
|
||||
<td class="text-end">{{ date('d-m-Y', $ord_invc->invc_at) }}</td>
|
||||
</tr>
|
||||
{{-- <tr>
|
||||
<td class="text-start">Tanggal Pengiriman</td>
|
||||
<td class="text-end">{{ date('d-m-Y', $order->set_pck_at) }}</td>
|
||||
</tr> --}}
|
||||
<tr>
|
||||
<td class="text-start">Jatuh Tempo</td>
|
||||
<td class="text-end">{{ date('d-m-Y', strtotime('+30 day', $ord_invc->invc_at)) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{{-- <p style="margin-bottom: 0.5rem;">Tanggal Invoice {{ date('d-m-Y', $ord_invc->invc_at) }}</p>
|
||||
<p style="margin-bottom: 0.5rem;">Tanggal Pengiriman {{ date('d-m-Y', $order->set_pck_at) }}</p> --}}
|
||||
<br>
|
||||
<p class="mb-1">No Invoice</p>
|
||||
<p class="mb-0" style="font-size: 18px;"><strong>{{ $ord_invc->code }}</strong></p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="" style="margin-bottom: 1rem; font-size: 12px;">
|
||||
<p class="mb-1"><strong>Informasi Order</strong></p>
|
||||
<table class="table table-border-dark table-padding-paragraph2 mb-3">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-center" style="vertical-align: middle;">#</td>
|
||||
<td style="vertical-align: middle;">Item</td>
|
||||
<td class="text-center" style="vertical-align: middle;">Jumlah</td>
|
||||
<td class="text-center" style="vertical-align: middle;">Satuan</td>
|
||||
<td class="text-center" style="vertical-align: middle;">Harga (Rp)</td>
|
||||
<td class="text-center" style="vertical-align: middle;">Total (Rp)</td>
|
||||
</tr>
|
||||
@foreach ($items as $i => $item)
|
||||
<tr>
|
||||
<td class="text-center" style="vertical-align: top;">{{ $i + 1 }}</td>
|
||||
<td style="vertical-align: top;">{!! $item->desc !!}</td>
|
||||
<td class="text-end" style="vertical-align: top;">{{ $item->unit_qty }}</td>
|
||||
<td style="vertical-align: top;">{{ $item->unit_type_name }}</td>
|
||||
<td class="text-end" style="vertical-align: top;">
|
||||
@if ($ord_invc->amt_tax_type_kind === App\Models\OrdersAItems::AMT_TAX_TYPE_INCLUDE)
|
||||
{{ number_format($item->amt_bill_total_tax_flat, 0, ',', '.') }}
|
||||
@else
|
||||
{{ number_format($item->amt_bill_base_flat, 0, ',', '.') }}
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-end" style="vertical-align: top;">{{ number_format($item->amt_bill_total_flat, 0, ',', '.') }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@if ($ord_invc->amt_tax_type_kind === App\Models\OrdersAItems::AMT_TAX_TYPE_INCLUDE)
|
||||
<tr>
|
||||
<td colspan="5" class="text-end" style="border-bottom:0;border-right:1;"><strong>Sub Total</strong></td>
|
||||
{{-- jika ppn pph minus --}}
|
||||
{{-- <td class="text-end" style="border-bottom:0;border-left:1;"><strong>{{ number_format($ord_invc->amt_base_flat + $ord_invc->amt_tax_ppn_flat + $ord_invc->amt_tax_pph_flat, 0, ',', '.') }}</strong></td> --}}
|
||||
{{-- jika ppn pph positif --}}
|
||||
{{-- <td class="text-end"><strong>{{ number_format($ord_invc->amt_base_flat - $ord_invc->amt_tax_ppn_flat - $ord_invc->amt_tax_pph_flat, 0, ',', '.') }}</strong></td> --}}
|
||||
{{-- normal --}}
|
||||
<td class="text-end" style="border-bottom:0; border-left:1;"><strong>{{ number_format($ord_invc->amt_base_flat, 0, ',', '.') }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@if ($ord_invc->amt_disc_flat != 0)
|
||||
@if ($ord_invc->amt_disc_type === \App\Models\OrdersInvoices::AMT_TYPE_FLAT)
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>Diskon</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>{{ '-'.number_format($ord_invc->amt_disc_flat, 0, ',', '.') }}</strong></td>
|
||||
@else
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>Diskon ({{ $ord_invc->amt_disc_percent }}%)</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>{{ '-'.number_format($ord_invc->amt_disc_flat, 0, ',', '.') }}</strong></td>
|
||||
@endif
|
||||
@else
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>Diskon</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>0</strong></td>
|
||||
@endif
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>PPN ({{ $ord_invc->amt_tax_ppn_percent }}%)</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>{{ number_format($ord_invc->amt_tax_ppn_flat, 0, ',', '.') }}</strong></td>
|
||||
</tr>
|
||||
@if ($ord_invc->amt_tax_pph_percent > 0)
|
||||
<tr>
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>PPH ({{ $ord_invc->amt_tax_pph_percent }}%)</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>{{ number_format(-1*$ord_invc->amt_tax_pph_flat, 0, ',', '.') }}</strong></td>
|
||||
</tr>
|
||||
@endif
|
||||
{{-- <tr>
|
||||
<td colspan="5" class="text-end"><strong>Sebelum Pajak</strong></td>
|
||||
<td class="text-end"><strong>{{ number_format($ord_invc->amt_base_flat-$ord_invc->amt_tax_ppn_flat-$ord_invc->amt_tax_pph_flat, 0, ',', '.') }}</strong></td>
|
||||
</tr> --}}
|
||||
@elseif ($ord_invc->amt_tax_type_kind === App\Models\OrdersAItems::AMT_TAX_TYPE_EXCLUDE)
|
||||
<tr>
|
||||
<td colspan="5" class="text-end" style="border-bottom:0; border-right:1;"><strong>Sub Total</strong></td>
|
||||
<td class="text-end" style="border-bottom:0; border-left:1;"><strong>{{ number_format($ord_invc->amt_base_flat, 0, ',', '.') }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@if ($ord_invc->amt_disc_flat != 0)
|
||||
@if ($ord_invc->amt_disc_type === \App\Models\OrdersInvoices::AMT_TYPE_FLAT)
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>Diskon</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>{{ '-'.number_format($ord_invc->amt_disc_flat, 0, ',', '.') }}</strong></td>
|
||||
@else
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>Diskon ({{ $ord_invc->amt_disc_percent }}%)</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>{{ '-'.number_format($ord_invc->amt_disc_flat, 0, ',', '.') }}</strong></td>
|
||||
@endif
|
||||
@else
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>Diskon</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>0</strong></td>
|
||||
@endif
|
||||
</tr>
|
||||
{{-- <tr>
|
||||
<td colspan="5" class="text-end"><strong>Setelah Diskon</strong></td>
|
||||
<td class="text-end"><strong>{{ number_format($ord_invc->amt_base_flat-$ord_invc->amt_disc_flat, 0, ',', '.') }}</strong></td>
|
||||
</tr> --}}
|
||||
<tr>
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>PPN ({{ $ord_invc->amt_tax_ppn_percent }}%)</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>{{ number_format($ord_invc->amt_tax_ppn_flat, 0, ',', '.') }}</strong></td>
|
||||
</tr>
|
||||
@if ($ord_invc->amt_tax_pph_percent > 0)
|
||||
<tr>
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>PPH ({{ $ord_invc->amt_tax_pph_percent }}%)</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>{{ number_format($ord_invc->amt_tax_pph_flat, 0, ',', '.') }}</strong></td>
|
||||
</tr>
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="5" class="text-end" style="border-bottom:0; border-right:1;"><strong>Sub Total</strong></td>
|
||||
<td class="text-end" style="border-bottom:0; border-left:1;"><strong>{{ number_format($ord_invc->amt_base_flat, 0, ',', '.') }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@if ($ord_invc->amt_disc_flat != 0)
|
||||
@if ($ord_invc->amt_disc_type === \App\Models\OrdersInvoices::AMT_TYPE_FLAT)
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>Diskon</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>{{ '-'.number_format($ord_invc->amt_disc_flat, 0, ',', '.') }}</strong></td>
|
||||
@else
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>Diskon ({{ $ord_invc->amt_disc_percent }}%)</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>{{ '-'.number_format($ord_invc->amt_disc_flat, 0, ',', '.') }}</strong></td>
|
||||
@endif
|
||||
@else
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1; border-bottom:0;"><strong>Diskon</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1; border-bottom:0;"><strong>0</strong></td>
|
||||
@endif
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td colspan="5" class="text-end" style="border-top:0; border-right:1;"><strong>Total</strong></td>
|
||||
<td class="text-end" style="border-top:0; border-left:1;"><strong>
|
||||
@if ($ord_invc->amt_tax_type_kind === App\Models\OrdersAItems::AMT_TAX_TYPE_INCLUDE)
|
||||
{{-- {{ number_format($ord_invc->amt_base_flat + $ord_invc->amt_tax_ppn_flat + $ord_invc->amt_tax_pph_flat - $ord_invc->amt_disc_flat, 0, ',', '.') }} --}}
|
||||
{{ number_format($ord_invc->amt_total_flat, 0, ',', '.') }}
|
||||
@elseif ($ord_invc->amt_tax_type_kind === App\Models\OrdersAItems::AMT_TAX_TYPE_EXCLUDE)
|
||||
{{ number_format($ord_invc->amt_total_flat, 0, ',', '.') }}
|
||||
@else
|
||||
{{ number_format($ord_invc->amt_total_flat, 0, ',', '.') }}
|
||||
@endif
|
||||
</strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="" style="margin-bottom: 1rem; font-size: 12px;">
|
||||
<p class="mb-1"><strong style="font-weight: 900;">Terbilang</strong></p>
|
||||
<p class="mb-0"><em>
|
||||
@php
|
||||
echo strtoupper(\App\Helper::terbilang(round($ord_invc->amt_total_flat))).' RUPIAH';
|
||||
@endphp
|
||||
</em></p>
|
||||
</div>
|
||||
|
||||
{{-- <div class="" style="margin-bottom: 1rem; font-size: 12px;">
|
||||
<p class="mb-1"><strong style="font-weight: 900;">Syarat & Ketentuan</strong></p>
|
||||
<p class="mb-0">Pembayaran jatuh tempo 30 hari setelah invoice diterima</p>
|
||||
</div> --}}
|
||||
|
||||
<div class="" style="margin-bottom: 1rem; font-size: 12px;">
|
||||
<p class="mb-1"><strong style="font-weight: 900;">Informasi Pembayaran</strong></p>
|
||||
<table class="table table-border-none">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:25%;">Metode Pembayaran</td>
|
||||
<td>{{ ($ord_invc->paid_method === \App\Models\OrdersInvoices::PAID_TYPE_TF) ? 'Transfer' : '-' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:25%;">Bank Tujuan</td>
|
||||
<td>{{ $ord_invc->bank_name }} ({{ $ord_invc->bank_short_name }})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:25%;">Cabang</td>
|
||||
<td>{{ env('BANK_KCP_NAME') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:25%;">No. Rekening</td>
|
||||
{{-- <td>527 0860 721</td> --}}
|
||||
<td>{{ implode(' ', str_split('0' . $ord_invc->bank_acc_number, 3)) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:25%;">Atas Nama</td>
|
||||
<td>{{ $ord_invc->bank_acc_name }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="" style="margin-bottom: 1rem; font-size: 12px;">
|
||||
<table class="table table-border-none">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:70%;"></td>
|
||||
<td class="text-center" style="width:30%;">PT. Bonceng Indonesia</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:70%;"></td>
|
||||
<td class="text-center" style="width:30%;"><div style="height:8rem;"></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:70%;"></td>
|
||||
<td class="text-center" style="width:30%;"><u>Cahyo Nurindah</u></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:70%;"></td>
|
||||
<td class="text-center" style="width:30%;">Accounts Receivable Manager</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@php
|
||||
$endFooterDrvUp = 0; // buat footer di berkas driver
|
||||
$penentuFooterDrvUp = 2; // penentu munculnya footer di berkas driver
|
||||
$absoluteLeftBottom = date('d/m/Y H:i:s');
|
||||
$currentPage = 1;
|
||||
$totalPage = (count($drvs_ups) / 2) + 1;
|
||||
@endphp
|
||||
|
||||
<table class="table" style="position: absolute; left: 2.3rem; bottom: 1cm; padding-right: 4.5rem;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-start">{{ $absoluteLeftBottom }}</td>
|
||||
<td class="text-end">{{ $currentPage }}/{{ $totalPage }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if (count($drvs_ups) > 0)
|
||||
{{-- example --}}
|
||||
{{-- <div class="page-break"></div>
|
||||
<div class="mb-4" style="text-align: center;">
|
||||
<p style="font-size: 18px;">
|
||||
<strong>BERKAS DRIVER</strong>
|
||||
</p>
|
||||
</div>
|
||||
<div class="" style="margin-bottom: 1rem; font-size: 12px;">
|
||||
<table class="table table-border-none">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:50%;">
|
||||
<table class="table table-border-none" style="margin-bottom:0;padding-bottom:0;">
|
||||
<tr>
|
||||
<td style="width:50%;" class="text-start"><p class="mb-0 text-start"><strong style="font-weight: 900;">Foto Label</strong></p></td>
|
||||
<td style="width:50%;" class="text-end"><p class="mb-0 text-end"><strong style="font-weight: 900;">{{ $drvs_ups[0]->crt }}</strong></p></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="width:50%;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:50%;">
|
||||
<img style="object-fit: none;" src="{{ isset($drvs_ups[0]->img)? $drvs_ups[0]->img: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQDVPuMlKfGrFErmCt6hCuECLbbhekJF-GCtAJvPIZpHX5upTT-hABFlp8qZY8rkgaZ0DE&usqp=CAU' }}" alt="" class="img-fluid img-report">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div> --}}
|
||||
@foreach ($drvs_ups as $i => $drvUp)
|
||||
@if (($i % 2) === 0)
|
||||
@php
|
||||
$endFooterDrvUp = 0;
|
||||
@endphp
|
||||
<div class="page-break"></div>
|
||||
<div class="mb-4" style="text-align: center;">
|
||||
<p style="font-size: 18px;">
|
||||
<strong>BERKAS DRIVER</strong>
|
||||
</p>
|
||||
</div>
|
||||
<div class="" style="margin-bottom: 1rem; font-size: 12px;">
|
||||
<table class="table table-border-none">
|
||||
<tbody>
|
||||
@endif
|
||||
@php
|
||||
$endFooterDrvUp += 1;
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="width:50%;margin-bottom:5px;padding-bottom:5px;">
|
||||
<table class="table table-border-none" style="margin-bottom:0;padding-bottom:0;">
|
||||
<tr>
|
||||
<td style="width:50%;" class="text-start"><p class="mb-0 text-start"><strong style="font-weight: 900;">
|
||||
@if ($drvUp->stts === \App\Models\OrdersDriversUploads::STTS_UP_ARRIVED_PICKUP)
|
||||
Foto Sampai dilokasi Pickup
|
||||
@elseif ($drvUp->stts === \App\Models\OrdersDriversUploads::STTS_UP_PROCESS_PICKUP)
|
||||
Foto Mulai Memuat Barang
|
||||
@elseif ($drvUp->stts === \App\Models\OrdersDriversUploads::STTS_UP_FINISH_PICKUP)
|
||||
Foto Selesai Memuat
|
||||
@elseif ($drvUp->stts === \App\Models\OrdersDriversUploads::STTS_UP_TRAVEL_DOCUMENT)
|
||||
Foto Dokumen Perjalanan
|
||||
@elseif ($drvUp->stts === \App\Models\OrdersDriversUploads::STTS_UP_OTW_DROP)
|
||||
Foto Saat diperjalanan
|
||||
@elseif ($drvUp->stts === \App\Models\OrdersDriversUploads::STTS_UP_ARRIVED_DROP)
|
||||
Foto Tiba dilokasi Bongkar
|
||||
@elseif ($drvUp->stts === \App\Models\OrdersDriversUploads::STTS_UP_PROCESS_DROP)
|
||||
Foto Proses Bongkar
|
||||
@elseif ($drvUp->stts === \App\Models\OrdersDriversUploads::STTS_UP_FINISH_DROP)
|
||||
Foto Selesai Bongkar
|
||||
@elseif ($drvUp->stts === \App\Models\OrdersDriversUploads::STTS_UP_HANDOVER_DOCUMENT)
|
||||
Foto Serah Terima
|
||||
@elseif ($drvUp->stts === \App\Models\OrdersDriversUploads::STTS_UP_ACCIDENT)
|
||||
Foto Mengalami Trouble / Kecelakaan
|
||||
@endif
|
||||
</strong></p></td>
|
||||
<td style="width:50%;" class="text-end"><p class="mb-0 text-end"><strong style="font-weight: 900;">{{ date('d-m-Y H:m:s', $drvUp->crt) }} WIB</strong></p></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="width:50%;margin-bottom:5px;padding-bottom:5px;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:50%;margin-bottom:5px;padding-bottom:5px;">
|
||||
<img src="{{ isset($drvUp->img)? $drvUp->img: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQDVPuMlKfGrFErmCt6hCuECLbbhekJF-GCtAJvPIZpHX5upTT-hABFlp8qZY8rkgaZ0DE&usqp=CAU' }}" alt="" class="img-fluid img-report">
|
||||
</td>
|
||||
</tr>
|
||||
@if ($i !==0 && $endFooterDrvUp === $penentuFooterDrvUp)
|
||||
@php
|
||||
$currentPage += 1;
|
||||
@endphp
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<table class="table" style="position: absolute; left: 2.3rem; bottom: 1cm; padding-right: 4.5rem;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-start">{{ $absoluteLeftBottom }}</td>
|
||||
<td class="text-end">{{ $currentPage }}/{{ $totalPage }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user