@extends('layouts.layout-horizontal') @section('title', 'Proforma Invoice - ' . $proforma->proforma_no) @section('content')
{{ $proforma->proforma_no }}
Proforma Invoice @if($proforma->status === 'converted') Converted to {{ $proforma->convertedSale->bill_no ?? 'Invoice' }} @endif
PDF @if($proforma->status === 'open') Edit
@csrf
@endif Back
Party

{{ $proforma->party->name ?? '-' }}

Invoice Date

{{ $proforma->invoice_date->format('d-M-Y') }}

Proforma No

{{ $proforma->proforma_no }}

Bill Type

{{ ucfirst($proforma->bill_type) }}

Status

@if($proforma->status === 'converted') Converted @else Open @endif

@foreach($proforma->items as $item) @endforeach
# Product HSN Unit Qty Rate Tax % Amount Tax Total
{{ $loop->iteration }} {{ $item->product->name ?? '-' }} {{ $item->hsn }} {{ $item->unit }} {{ indian_number($item->qty, 3) }} {{ indian_number($item->rate, 2) }} {{ $item->tax_percent }}% {{ indian_number($item->line_amount, 2) }} {{ indian_number($item->line_tax_amount, 2) }} {{ indian_number($item->line_total, 2) }}
Sub Total {{ indian_number($proforma->amount_total, 2) }} {{ indian_number($proforma->tax_total, 2) }} {{ indian_number($proforma->grand_total, 2) }}
@endsection @push('scripts') @endpush