@if (!empty($branchInfo['logo'])) Logo @else N/A @endif {{ $branchInfo['name'] }}

{{ $branchInfo['address'] }}
Phone: {{ $branchInfo['phone'] }}
Email: {{ $branchInfo['email'] }}

Purchase Invoice

Invoice No: {{ $myPurchase->invoice_number }}
Date: {{ \Carbon\Carbon::parse($myPurchase->purchase_date)->format('d-M-Y') }}
Supplier: {{ $myPurchase->purchaseParty->customer_name ?? 'N/A' }}
@if ($myPurchase->purchaseParty->phone_number ?? false) Phone: {{ $myPurchase->purchaseParty->phone_number }}
@endif @if ($myPurchase->purchaseParty->address ?? false) Address: {{ $myPurchase->purchaseParty->address }} @endif
@foreach ($myPurchase->items as $index => $item) @endforeach
# Item Item Code HSN Code S.P Qty GST (%) Total
{{ $index + 1 }} {{ $item->product->title ?? 'N/A' }} {{ $item->product->item_code ?? '-' }} {{ $item->product->hsn_code ?? '-' }} ₹{{ number_format($item->sell_price, 2) }} {{ $item->quantity }} {{ number_format($item->gst_percentage ?? 0, 2) }} ₹{{ number_format($item->quantity * $item->purchase_price, 2) }}

Thank you for purchasing from us!

Sub Total (Excl. GST): ₹{{ number_format($myPurchase->sub_total_excluding_gst, 2) }}

@if (auth()->user()->role == 'admin' && $is_gst == 1)

Tax: ₹{{ number_format($myPurchase->gst_total, 2) }}

@else

CGST: ₹{{ number_format($myPurchase->gst_total / 2, 2) }}

SGST: ₹{{ number_format($myPurchase->gst_total / 2, 2) }}

@endif @if ($myPurchase->discount_amount > 0)

Discount: -₹{{ number_format($myPurchase->discount_amount, 2) }}

@if ($myPurchase->discount_note)

{{ $myPurchase->discount_note }}

@endif @endif @if ($myPurchase->additional_charge > 0)

Additional Charge: +₹{{ number_format($myPurchase->additional_charge, 2) }}

@if ($myPurchase->additional_charge_note)

{{ $myPurchase->additional_charge_note }}

@endif @endif

Total Payable: ₹{{ number_format($myPurchase->total_amount, 2) }}