@extends('layouts.master') @section('title') billing @endsection @section('css') @endsection @section('content') {{-- @component('components.breadcrumb') @slot('li_1') Dashboard @endslot @slot('title') Finance @endslot @endcomponent --}}

Edit Invoice

@csrf @method('put')
@error('due_date') {{ $message }} @enderror
@error('status') {{ $message }} @enderror
@error('amount') {{ $message }} @enderror
@if(old('products')) @foreach(old('products') as $key => $product) @endforeach @elseif($invoice->invoice_items) @foreach($invoice->invoice_items as $key => $item) @endforeach @endif
# Product Details
Rate {{--
--}}
Quantity Amount
{{ $key }}
@if($errors->has('products.' . $key . '.name'))
{{ $errors->first('products.' . $key . '.name') }}
@endif
@if($errors->has('products.' . $key . '.rate'))
{{ $errors->first('products.' . $key . '.rate') }}
@endif
@if($errors->has('products.' . $key . '.quantity'))
{{ $errors->first('products.' . $key . '.quantity') }}
@endif
Delete
{{ $key + 1 }}
@if($errors->has('products.' . $key . '.name'))
{{ $errors->first('products.' . $key . '.name') }}
@endif
@if($errors->has('products.' . $key . '.rate'))
{{ $errors->first('products.' . $key . '.rate') }}
@endif
@if($errors->has('products.' . $key . '.quantity'))
{{ $errors->first('products.' . $key . '.quantity') }}
@endif
Delete
Add Item
Sub Total
Total Amount
@endsection @section('script') {{-- --}} @endsection