Add stubs for various Laravel components and scaffolding
- Created stubs for JavaScript and SASS assets. - Added stubs for channel, command, component, controller, event, factory, job, listener, mail, middleware, migration, model, notification, observer, policy, request, resource, route provider, seeder, and validation rule. - Implemented scaffolding for configuration, service provider, and Vite integration. - Included example views for module structure. - Introduced a module loader for Vite to handle asset paths dynamically.
This commit is contained in:
@@ -27,85 +27,87 @@ $cfg = array_merge([
|
||||
<style>
|
||||
@page {
|
||||
size: A4;
|
||||
margin: 0;
|
||||
margin: 17mm 18mm;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
html, body {
|
||||
width: 210mm;
|
||||
min-height: 297mm;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "DejaVu Sans", "Times New Roman", serif;
|
||||
color: #000;
|
||||
font-size: 12px;
|
||||
font-size: 11px;
|
||||
line-height: 1.45;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.page {
|
||||
width: 210mm;
|
||||
min-height: 297mm;
|
||||
padding: 12mm 15mm;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
.top-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
|
||||
.top-table { width: 100%; border-collapse: collapse; margin-bottom: 7px; table-layout: fixed; }
|
||||
.top-table td { vertical-align: top; }
|
||||
.logo-cell { width: 140px; }
|
||||
.logo-cell img { width: 130px; max-height: 55px; }
|
||||
.title-cell { text-align: center; padding: 0 8px; }
|
||||
.title-cell h1 { font-size: 18px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
|
||||
.title-cell h2 { font-size: 12px; font-style: italic; font-weight: normal; margin-bottom: 4px; }
|
||||
.title-cell .date-line { font-size: 12px; }
|
||||
.meta-cell { width: 180px; font-size: 11px; line-height: 1.7; vertical-align: top; padding-top: 2px; }
|
||||
.meta-cell strong { display: block; }
|
||||
.logo-cell { width: 31mm; }
|
||||
.logo-cell img { width: 29mm; max-height: 15mm; }
|
||||
.title-cell { text-align: center; padding: 0 10px; }
|
||||
.title-cell h1 { font-size: 16px; font-weight: bold; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
|
||||
.title-cell h2 { font-size: 11px; font-style: italic; font-weight: normal; margin-bottom: 3px; }
|
||||
.title-cell .date-line { font-size: 11px; }
|
||||
.meta-cell { width: 43mm; font-size: 10px; line-height: 1.45; vertical-align: top; padding-top: 1px; }
|
||||
.meta-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
|
||||
.meta-table td { padding: 2px 0 2px 3px; vertical-align: top; }
|
||||
.meta-table .meta-label { width: 22mm; font-weight: bold; }
|
||||
.meta-table .meta-value { word-wrap: break-word; }
|
||||
|
||||
.divider { border: none; border-top: 1px solid #999; margin: 6px 0; }
|
||||
.divider { border: none; border-top: 1px solid #999; margin: 7px 0; }
|
||||
|
||||
/* Company */
|
||||
.company-table { width: 100%; border-collapse: collapse; }
|
||||
.company-main { vertical-align: top; }
|
||||
.company-main h3 { font-size: 14px; text-transform: uppercase; font-weight: bold; margin-bottom: 5px; }
|
||||
.company-qr { width: 100px; vertical-align: top; text-align: right; }
|
||||
.qr-box { width: 85px; height: 85px; border: 1px solid #ccc; background: #f9f9f9; }
|
||||
.company-main { vertical-align: top; padding: 2px 8px 2px 0; }
|
||||
.company-main h3 { font-size: 13px; text-transform: uppercase; font-weight: bold; margin-bottom: 5px; }
|
||||
.company-qr { width: 22mm; vertical-align: top; text-align: right; padding: 2px 0 2px 8px; }
|
||||
.qr-box { width: 20mm; height: 20mm; border: 1px solid #ccc; background: #f9f9f9; }
|
||||
|
||||
.info-line { margin-bottom: 4px; font-size: 12px; line-height: 1.45; }
|
||||
.info-line { margin-bottom: 4px; font-size: 11px; line-height: 1.45; }
|
||||
.lbl { font-weight: bold; }
|
||||
|
||||
/* Buyer */
|
||||
.buyer-section { margin-top: 8px; }
|
||||
.buyer-section { margin-top: 8px; padding: 1px 0; }
|
||||
.payment-table { width: 100%; border-collapse: collapse; }
|
||||
.payment-table td { vertical-align: top; }
|
||||
.payment-table td { vertical-align: top; padding: 2px 8px 2px 0; }
|
||||
|
||||
/* Items table */
|
||||
.items-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
|
||||
.items-table th, .items-table td { border: 1px solid #333; padding: 5px 6px; vertical-align: top; }
|
||||
.items-table { width: 100%; border-collapse: collapse; margin-top: 9px; font-size: 10px; line-height: 1.4; table-layout: fixed; page-break-inside: auto; }
|
||||
.items-table th, .items-table td { border: 1px solid #333; padding: 6px 7px; vertical-align: top; overflow-wrap: break-word; word-wrap: break-word; }
|
||||
.items-table thead th { font-weight: bold; text-align: center; }
|
||||
.items-table tr { page-break-inside: avoid; page-break-after: auto; }
|
||||
.items-table td.center { text-align: center; }
|
||||
.items-table td.right { text-align: right; }
|
||||
.items-table tr.sum td { font-weight: bold; }
|
||||
.items-table tr.total-row td { font-weight: bold; font-size: 13px; background: #fafafa; }
|
||||
.items-table tr.total-row td { font-weight: bold; font-size: 11px; background: #fafafa; }
|
||||
|
||||
/* Amount words */
|
||||
.amount-words {
|
||||
border: 1px solid #333; border-top: none;
|
||||
padding: 6px 8px; font-size: 12px;
|
||||
padding: 7px 9px; font-size: 11px; line-height: 1.45;
|
||||
}
|
||||
|
||||
/* Signature */
|
||||
.sign-table { width: 100%; border-collapse: collapse; margin-top: 20mm; text-align: center; }
|
||||
.sign-table td { vertical-align: top; padding: 0 8px; }
|
||||
.sign-table h4 { font-size: 12px; margin-bottom: 3px; }
|
||||
.sign-table p { font-size: 11px; font-style: italic; color: #555; }
|
||||
.sign-spacer { height: 40px; }
|
||||
.sign-table { width: 100%; border-collapse: collapse; margin-top: 11mm; text-align: center; page-break-inside: avoid; }
|
||||
.sign-table td { vertical-align: top; padding: 0 10px; }
|
||||
.sign-table h4 { font-size: 11px; margin-bottom: 2px; }
|
||||
.sign-table p { font-size: 10px; font-style: italic; color: #555; }
|
||||
.sign-spacer { height: 24px; }
|
||||
|
||||
/* Note */
|
||||
.note-box { margin-top: 8px; border-left: 3px solid #e6a817; background: #fefce8; padding: 6px 10px; font-size: 11px; }
|
||||
.note-box { margin-top: 8px; border-left: 3px solid #e6a817; background: #fefce8; padding: 7px 10px; font-size: 10px; line-height: 1.45; page-break-inside: avoid; }
|
||||
|
||||
/* Footer */
|
||||
.footer { margin-top: 16px; text-align: center; font-size: 11px; line-height: 1.7; color: #444; border-top: 1px solid #ddd; padding-top: 8px; }
|
||||
.footer { margin-top: 10px; text-align: center; font-size: 10px; line-height: 1.5; color: #444; border-top: 1px solid #ddd; padding-top: 7px; page-break-inside: avoid; }
|
||||
|
||||
.status-paid { color: #065f46; font-weight: bold; }
|
||||
.status-unpaid { color: #991b1b; font-weight: bold; }
|
||||
@@ -136,16 +138,30 @@ body {
|
||||
</div>
|
||||
</td>
|
||||
<td class="meta-cell">
|
||||
<strong>Mã hóa đơn:</strong> {{ $invoice->invoice_number }}
|
||||
<table class="meta-table">
|
||||
<tr>
|
||||
<td class="meta-label">Mã hóa đơn:</td>
|
||||
<td class="meta-value">{{ $invoice->invoice_number }}</td>
|
||||
</tr>
|
||||
@if($order)
|
||||
<strong style="margin-top:4px">Mã đơn hàng:</strong> {{ $order->order_num }}
|
||||
<tr>
|
||||
<td class="meta-label">Mã đơn hàng:</td>
|
||||
<td class="meta-value">{{ $order->order_num }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<strong style="margin-top:4px">Hạn TT:</strong>
|
||||
{{ $invoice->due_date ? \Carbon\Carbon::parse($invoice->due_date)->format('d/m/Y') : '—' }}
|
||||
<strong style="margin-top:4px">Trạng thái:</strong>
|
||||
@if($invoice->status == 2)<span class="status-paid">Đã thanh toán</span>
|
||||
@elseif($invoice->status == 1)<span class="status-unpaid">Chưa thanh toán</span>
|
||||
@else<span class="status-cancelled">Đã hủy</span>@endif
|
||||
<tr>
|
||||
<td class="meta-label">Hạn thanh toán:</td>
|
||||
<td class="meta-value">{{ $invoice->due_date ? \Carbon\Carbon::parse($invoice->due_date)->format('d/m/Y') : '—' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="meta-label">Trạng thái:</td>
|
||||
<td class="meta-value">
|
||||
@if($invoice->status == 2)<span class="status-paid">Đã thanh toán</span>
|
||||
@elseif($invoice->status == 1)<span class="status-unpaid">Chưa thanh toán</span>
|
||||
@else<span class="status-cancelled">Đã hủy</span>@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -213,12 +229,12 @@ body {
|
||||
<table class="items-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:40px">STT</th>
|
||||
<th style="width:9mm">STT</th>
|
||||
<th>Tên hàng hóa, dịch vụ</th>
|
||||
<th style="width:80px">Đơn vị tính</th>
|
||||
<th style="width:70px">Số lượng</th>
|
||||
<th style="width:120px">Đơn giá (đ)</th>
|
||||
<th style="width:130px">Thành tiền (đ)</th>
|
||||
<th style="width:19mm">Đơn vị tính</th>
|
||||
<th style="width:17mm">Số lượng</th>
|
||||
<th style="width:27mm">Đơn giá (đ)</th>
|
||||
<th style="width:29mm">Thành tiền (đ)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user