@extends('layouts.app') @section('title', 'Purchase Bill #' . $purchase->purchase_number) @section('page_title', 'Purchase Bill Overview') @section('content')
Back to Purchases
@if($purchase->status !== 'cancelled' && $purchase->balance_due > 0) @endif @if($purchase->status !== 'cancelled')
@csrf
@endif
INWARD PURCHASE BILL

{{ $purchase->purchase_number }}

Supplier Bill #: {{ $purchase->supplier_bill_no ?: 'N/A' }}
Bill Date: {{ $purchase->purchase_date->format('d/m/Y') }}
@if($purchase->status == 'cancelled') CANCELLED (Stock Reverted) @else {{ ucfirst(str_replace('_', ' ', $purchase->payment_status)) }} @endif
Tax Regime: @if($purchase->is_inter_state) Inter-State (IGST) @else Intra-State (CGST + SGST) @endif
Supplier Details:
{{ $purchase->party_name }}
@if($purchase->party && $purchase->party->billing_address)
{{ $purchase->party->billing_address }}
@endif
GSTIN: {{ $purchase->party_gstin ?: 'Unregistered' }}
State: {{ $purchase->place_of_supply_state }} [{{ $purchase->place_of_supply_code }}]
Billed To (Our Company):
{{ $company->company_name }}
{{ $company->address }}, {{ $company->city }}
Our GSTIN: {{ $company->gstin }}
State: {{ $company->state }} [{{ $company->state_code }}]
@if($purchase->is_inter_state) @else @endif @foreach($purchase->items as $idx => $item) @if($purchase->is_inter_state) @else @endif @endforeach
# Description of Goods HSN Code Qty Cost Price (₹) Taxable Value (₹)Input IGSTInput CGST Input SGSTTotal (₹)
{{ $idx + 1 }}
{{ $item->product_name }}
{{ $item->hsn_code }} {{ number_format($item->quantity, 0) }} {{ $item->unit_code }} ₹{{ number_format($item->unit_price, 2) }} ₹{{ number_format($item->taxable_value, 2) }} {{ $item->igst_rate }}%
₹{{ number_format($item->igst_amount, 2) }}
{{ $item->cgst_rate }}%
₹{{ number_format($item->cgst_amount, 2) }}
{{ $item->sgst_rate }}%
₹{{ number_format($item->sgst_amount, 2) }}
₹{{ number_format($item->total_amount, 2) }}
Total Bill Value in Words:
{{ $amountInWords }}
@if($purchase->notes)
Purchase Notes: {{ $purchase->notes }}
@endif
@if($purchase->is_inter_state) @else @endif
Total Taxable Value: ₹{{ number_format($purchase->taxable_amount, 2) }}
Input IGST (ITC): ₹{{ number_format($purchase->igst_amount, 2) }}
Input CGST (ITC): ₹{{ number_format($purchase->cgst_amount, 2) }}
Input SGST (ITC): ₹{{ number_format($purchase->sgst_amount, 2) }}
Total Input Tax Credit: ₹{{ number_format($purchase->total_tax_amount, 2) }}
Grand Total: ₹{{ number_format($purchase->grand_total, 2) }}
Amount Paid: ₹{{ number_format($purchase->paid_amount, 2) }}
Payable Balance: ₹{{ number_format($purchase->balance_due, 2) }}
@if($purchase->status !== 'cancelled' && $purchase->balance_due > 0) @endif @endsection