@extends('backend.partials.master') @section('title', isset($invoice) ? 'Edit Purchase Invoice' : 'Create Purchase Invoice') @section('maincontent')

{{ isset($invoice) ? 'Edit Purchase Invoice' : 'New Purchase Invoice' }}

@csrf @if(isset($invoice)) @method('PUT') @endif
{{-- Supplier --}}
@error('supplier_id') {{ $message }} @enderror
{{-- GST State --}}
@error('invoice_document') {{ $message }} @enderror @if(isset($invoice) && $invoice->attachment) View Existing Document @endif
{{-- Product Table --}}
@if(isset($invoice) && $invoice->products) @foreach($invoice->products as $i => $p) @endforeach @else @endif
Product* HSN Quantity* GST % Rate* CGST SGST IGST Total Action
Total 0.00 0.00 0.00 0.00 0.00
Cancel
@endsection @push('scripts') @endpush