170 lines
4.4 KiB
PHP
170 lines
4.4 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>{{ $invoice->invoice_number }}</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
font-family: sans-serif;
|
|
font-size: 13px;
|
|
color: #333;
|
|
}
|
|
|
|
.header-box {
|
|
text-align: center;
|
|
padding: 10px 0;
|
|
border-bottom: 2px solid #000;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.logo {
|
|
width: 120px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.title {
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
color: #000;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 14px;
|
|
margin-top: 3px;
|
|
color: #666;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
margin-top: 20px;
|
|
margin-bottom: 6px;
|
|
color: #222;
|
|
}
|
|
|
|
.info-box {
|
|
border: 1px solid #ccc;
|
|
padding: 10px;
|
|
line-height: 1.6;
|
|
background: #f9f9f9;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
th {
|
|
background: #efefef;
|
|
padding: 6px;
|
|
font-size: 13px;
|
|
font-weight: bold;
|
|
border: 1px solid #444;
|
|
}
|
|
|
|
td {
|
|
padding: 6px;
|
|
border: 1px solid #444;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.totals-box {
|
|
margin-top: 20px;
|
|
padding: 10px;
|
|
border: 1px solid #bbb;
|
|
background: #fafafa;
|
|
font-size: 14px;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<!-- HEADER -->
|
|
<div class="header-box">
|
|
|
|
<!-- LOGO -->
|
|
<img src="{{ public_path('images/kent_logo2.png') }}" class="logo">
|
|
|
|
<div class="title">KENT LOGISTICS</div>
|
|
<div class="subtitle">Official Invoice</div>
|
|
</div>
|
|
|
|
<!-- INVOICE INFO -->
|
|
<div class="info-box">
|
|
<strong>Invoice No:</strong> {{ $invoice->invoice_number }} <br>
|
|
<strong>Invoice Date:</strong> {{ $invoice->invoice_date }} <br>
|
|
<strong>Due Date:</strong> {{ $invoice->due_date }} <br>
|
|
<strong>Status:</strong> {{ ucfirst($invoice->status) }}
|
|
</div>
|
|
|
|
<!-- CUSTOMER DETAILS -->
|
|
<div class="section-title">Customer Details</div>
|
|
<div class="info-box">
|
|
<strong>{{ $invoice->customer_name }}</strong><br>
|
|
{{ $invoice->company_name }} <br>
|
|
{{ $invoice->customer_mobile }} <br>
|
|
{{ $invoice->customer_email }} <br>
|
|
{{ $invoice->customer_address }}
|
|
</div>
|
|
|
|
<!-- ITEMS TABLE -->
|
|
<div class="section-title">Invoice Items</div>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Description</th>
|
|
<th>CTN</th>
|
|
<th>QTY</th>
|
|
<th>TTL/QTY</th>
|
|
<th>Unit</th>
|
|
<th>Price</th>
|
|
<th>TTL Amount</th>
|
|
<th>CBM</th>
|
|
<th>TTL CBM</th>
|
|
<th>KG</th>
|
|
<th>TTL KG</th>
|
|
<th>Shop No</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
@foreach($invoice->items as $i => $item)
|
|
<tr>
|
|
<td>{{ $i + 1 }}</td>
|
|
<td>{{ $item->description }}</td>
|
|
<td>{{ $item->ctn }}</td>
|
|
<td>{{ $item->qty }}</td>
|
|
<td>{{ $item->ttl_qty }}</td>
|
|
<td>{{ $item->unit }}</td>
|
|
<td>{{ number_format($item->price, 2) }}</td>
|
|
<td>{{ number_format($item->ttl_amount, 2) }}</td>
|
|
<td>{{ $item->cbm }}</td>
|
|
<td>{{ $item->ttl_cbm }}</td>
|
|
<td>{{ $item->kg }}</td>
|
|
<td>{{ $item->ttl_kg }}</td>
|
|
<td>{{ $item->shop_no }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<!-- TOTALS -->
|
|
<div class="section-title">Totals</div>
|
|
|
|
<div class="totals-box">
|
|
<strong>Amount:</strong> ₹{{ number_format($invoice->final_amount, 2) }} <br>
|
|
<strong>GST ({{ $invoice->gst_percent }}%):</strong> ₹{{ number_format($invoice->gst_amount, 2) }} <br>
|
|
<strong>Total With GST:</strong> <strong>₹{{ number_format($invoice->final_amount_with_gst, 2) }}</strong>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|