Create Invoice Create a new invoice for services and parts
{{-- Basic Information --}}
Invoice Details
Customer @foreach($customers as $customer) {{ $customer->name }} @endforeach Branch @foreach($branches as $branch) {{ $branch->name }} @endforeach Invoice Date Due Date
Description
{{-- Line Items --}}
Line Items Add Item
@foreach($line_items as $index => $item)
{{-- Type --}}
Type Labour Parts Miscellaneous
{{-- Part Selection (only for parts) --}} @if($item['type'] === 'parts')
Part {{ count($parts) }} parts available
@else
Description
@endif {{-- Quantity --}}
Quantity
{{-- Unit Price --}}
Unit Price
{{-- Total --}}
Total
${{ number_format(($item['quantity'] ?? 0) * ($item['unit_price'] ?? 0), 2) }}
{{-- Remove Button --}}
@if(count($line_items) > 1) @endif
{{-- Additional fields for parts --}} @if($item['type'] === 'parts')
Part Number Technical Notes
@endif {{-- Technical notes for labour --}} @if($item['type'] === 'labour')
Technical Notes
@endif
@endforeach
{{-- Totals and Additional Info --}}
{{-- Additional Information --}}
Tax Rate (%) Discount Amount Notes
{{-- Totals Summary --}}
Invoice Summary
Subtotal: ${{ number_format($this->calculateSubtotal(), 2) }}
@if($discount_amount > 0)
Discount: -${{ number_format($discount_amount, 2) }}
@endif
Tax ({{ $tax_rate }}%): ${{ number_format($this->calculateTax(), 2) }}

Total: ${{ number_format($this->calculateTotal(), 2) }}
Terms and Conditions
{{-- Actions --}}
Cancel Create Invoice