@extends('layouts.admin') @section('title', isset($invoice) ? 'Edit Invoice' : 'Create Invoice') @php $title = isset($invoice) ? 'Edit Invoice' : 'Create Invoice'; @endphp @section('content')

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

{{ isset($invoice) ? 'Update invoice details and line items' : 'Fill in the details to create a new invoice' }}

@if(isset($invoice)) @endif
@csrf

Invoice Items

@if(isset($invoice)) @foreach($invoice->items as $index => $item)
Total: ₹{{ number_format($item->total, 2) }}
@endforeach @endif
Subtotal: 0.00
Tax Amount: 0.00
Total: 0.00
Cancel
@endsection