@extends('layouts.app') @section('content')

Edit Sale Invoice {{ $sale->invoice_no }}

Cancel
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if (session('error'))
{{ session('error') }}
@endif
@csrf @method('PUT')
@foreach ($sale->details as $detail) @php($unit = $detail->medicine?->unit ?: 'pcs') @endforeach
Product / BatchQuantityFreeUnit priceCommissionLine total
{{ $detail->medicine?->name ?? 'Product' }} {{ $unit }}
Batch {{ $detail->batch_no }}
{{ number_format((float) $detail->total_price, 2) }}
Invoice total after commission৳{{ number_format($sale->grand_total, 2) }}
Cancel
@endsection