@extends('backEnd.layouts.master') @section('title','Edit Purchase') @section('css') @endsection @section('content')
{{-- PAGE HEADER --}}

Edit Purchase

Update invoice details and payment information.

Back to List
@csrf
{{-- LEFT COLUMN: EDITABLE FORM --}}
Editable Information
@error('invoice_no') {{ $message }} @enderror
@error('purchase_date') {{ $message }} @enderror
@error('paid_amount') {{ $message }} @enderror
Warning: Changing the "Paid Amount" will automatically adjust your company fund balance.
Cancel
{{-- RIGHT COLUMN: READ-ONLY INFO --}}
{{-- Grand Total Card --}}
Grand Total Amount

{{ number_format($purchase->grand_total, 2) }} ৳

(Cannot be edited here)
{{-- Supplier Info --}}
Supplier Details
Name
{{ $purchase->supplier->name ?? 'N/A' }}
Phone
{{ $purchase->supplier->phone ?? 'N/A' }}
{{-- Meta Info --}}
Created At
{{ $purchase->created_at->format('d M Y, h:i A') }}
@if($purchase->updated_by)
Last Updated
{{ $purchase->updated_at->format('d M Y, h:i A') }}
@endif
@endsection