@extends('layouts.admin') @push('styles') @endpush @section('content')

Edit Invoice — {{ $entry_no }}

@csrf {{-- ✅ Hidden field to track deleted row IDs --}}
{{-- Invoice Header --}}
{{-- Date --}}
{{-- Outlet --}}
{{-- Invoice No --}}
{{-- Products Table --}}
@foreach ($items as $k => $item) {{-- Hidden fields inside the row --}} @endforeach
SL Product Code Product Name Category Unit Qty * Action
{{ $k + 1 }} {{ $item->product_code ?? '' }} {{ $item->product_name }} {{ $item->cat_name ?? '' }} {{ $item->unit_name ?? '' }} @can('Delete Daily Closing Stock') {{-- ✅ Delete row button --}} @endcan
Total Qty: {{ $items->sum('manual_stock') }}
@endsection @push('scripts') {{-- ✅ Add SweetAlert2 CDN --}} @endpush