invoice update

This commit is contained in:
Abhishek Mali
2025-11-17 10:33:11 +05:30
parent cfd128cf9b
commit df89031d36
16 changed files with 1330 additions and 139 deletions

View File

@@ -0,0 +1,73 @@
<div>
<h4 class="fw-bold mb-2">
Invoice: {{ $invoice->invoice_number }}
</h4>
<p><strong>Invoice Date:</strong> {{ $invoice->invoice_date }}</p>
<p><strong>Due Date:</strong> {{ $invoice->due_date }}</p>
<hr>
<h5>Customer Details</h5>
<p>
<strong>{{ $invoice->customer_name }}</strong><br>
{{ $invoice->company_name }}<br>
{{ $invoice->customer_mobile }}<br>
{{ $invoice->customer_email }}<br>
{{ $invoice->customer_address }}
</p>
<hr>
<h5>Invoice Items</h5>
<div class="table-responsive">
<table class="table table-bordered align-middle text-center">
<thead class="table-light">
<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>
</div>
<hr>
<h5>Final Summary</h5>
<p><strong>Amount:</strong> {{ number_format($invoice->final_amount,2) }}</p>
<p><strong>GST ({{ $invoice->gst_percent }}%):</strong> {{ number_format($invoice->gst_amount,2) }}</p>
<p><strong>Total With GST:</strong> {{ number_format($invoice->final_amount_with_gst,2) }}</p>
<p><strong>Status:</strong> {{ ucfirst($invoice->status) }}</p>
</div>