@extends('dashboard.layouts.app') @section('title', __('dashboard.Create New Invoice')) @section('page_heading', __('dashboard.Create New Invoice')) @section('breadcrumb') @endsection @section('content')

{{ __('dashboard.Create New Invoice') }}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@error('source')
{{ $message }}
@enderror
@error('created_by_id')
{{ $message }}
@enderror
@error('assigned_to_id')
{{ $message }}
@enderror
@error('invoice_type')
{{ $message }}
@enderror
@error('due_date')
{{ $message }}
@enderror
@error('global_general_discount_id')
{{ $message }}
@enderror

{{ __('dashboard.Invoice Items') }}

@if(old('items')) @foreach(old('items') as $index => $itemData) @if($itemData['item_type'] == 'track')
{{ __('dashboard.Item') }} #{{ $index + 1 }}
{{ __('dashboard.Type') }} {{ __('dashboard.Track Category') }} {{ __('dashboard.Track Sub Category') }} {{ __('dashboard.Track') }} {{ __('dashboard.Pricing Type') }} {{ __('dashboard.Track Type') }} {{ __('dashboard.Pricing Option') }} {{ __('dashboard.Price') }} {{ __('dashboard.Quantity') }} {{ __('dashboard.Discount') }} {{ __('dashboard.Actions') }}
{{ __('dashboard.Track') }}
{{ __('dashboard.Subtotal') }}: 0.00
@elseif($itemData['item_type'] == 'item')
{{ __('dashboard.Item') }} #{{ $index + 1 }}
{{ __('dashboard.Type') }} {{ __('dashboard.Item Category') }} {{ __('dashboard.Item') }} {{ __('dashboard.Pricing Type') }} {{ __('dashboard.Pricing Option') }} {{ __('dashboard.Price') }} {{ __('dashboard.Quantity') }} {{ __('dashboard.Discount') }} {{ __('dashboard.Actions') }}
{{ __('dashboard.Item') }}
{{ __('dashboard.Subtotal') }}: 0.00
@elseif($itemData['item_type'] == 'custom')
{{ __('dashboard.Item') }} #{{ $index + 1 }}
{{ __('dashboard.Type') }} {{ __('dashboard.Custom Item Name') }} {{ __('dashboard.Price') }} {{ __('dashboard.Quantity') }} {{ __('dashboard.Discount') }} {{ __('dashboard.Actions') }}
{{ __('dashboard.Custom') }}
{{ __('dashboard.Subtotal') }}: 0.00
@endif @endforeach @endif
@error('coupon_code')
{{ $message }}
@enderror
{{ __('dashboard.Price Breakdown') }}:

{{ __('dashboard.Price Before Discounts') }}: 0.00

{{ __('dashboard.General Discounts Total') }}: 0.00

{{ __('dashboard.Coupon Discount') }}: 0.00

{{ __('dashboard.Total Discounts') }}: 0.00

{{ __('dashboard.Final Total') }}: 0.00
{{ __('dashboard.Cancel') }}
@endsection @section('scripts') @endsection