@extends('layouts.app') @section('title', 'Purchase #' . $purchase->id) @section('content')

Purchase #{{ $purchase->id }}

New Purchase (same vendor) All Purchases
Vendor
{{ $purchase->vendor->name }}
@if($purchase->vendor->phone){{ $purchase->vendor->phone }}@endif @if($purchase->vendor->address)
{{ nl2br(e($purchase->vendor->address)) }}
@endif
Date: {{ $purchase->purchase_date->format('d M Y') }}
@foreach($purchase->items as $idx => $item) @endforeach
# Product Qty Unit price Amount
{{ $idx + 1 }} {{ $item->product_name }} {{ $item->quantity }} {{ number_format($item->unit_price, 2) }} {{ number_format($item->total, 2) }}
@if($purchase->discount_amount > 0) @endif @if($purchase->gst_amount > 0) @endif
Subtotal {{ number_format($purchase->subtotal, 2) }}
Discount- {{ number_format($purchase->discount_amount, 2) }}
GST ({{ $purchase->gst_percent }}%){{ number_format($purchase->gst_amount, 2) }}
Total₹ {{ number_format($purchase->total, 2) }}
@if($purchase->notes)

Note: {{ $purchase->notes }}

@endif
@endsection