|
@php
$logoPath = public_path($company['company_logo']);
if (file_exists($logoPath)) {
$base64Image = base64_encode(file_get_contents($logoPath));
} else {
$base64Image = null;
}
@endphp
@if ($base64Image)
{{ $company['email'] }} |
@if ($company['company_gst_no']) GST: {{ $company['company_gst_no'] }} @endif |
@if ($sale->is_return)
CREDIT NOTE@elseif (!empty($sale->tax_amount) && $sale->tax_amount > 0)TAX INVOICE@elsePROFORMA INVOICE@endif{{ $company['name'] ?? '' }} {{ $company['address'] ?? '' }} Call: {{ $company['phone_number'] ?? '' }} |
|
Bill
To
Name: {{ $sale->customer->name ?? '-' }} |
Details
Date:
{{ \Carbon\Carbon::parse($sale->date ?? $sale->created_at)->format('d-m-Y') }}
|
| # | Product Description | Price | Qty | Subtotal | Total |
|---|---|---|---|---|---|
| {{ $globalIndex + 1 }} |
{{ $name }} @if (!empty($item['size'])) Size: {{ $item['size'] }} @endif |
{{ $company['company_currency'] }}{{ number_format($price, 2) }} | {{ $qty }} | {{ $company['company_currency'] }}{{ number_format($subTotal, 2) }} | {{ $company['company_currency'] }}{{ number_format($lineTotal, 2) }} |