@if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif

Create Quotation

Fill in the details to create a new quotation

@error('customer_id') {{ $message }} @enderror
@error('invoice_date') {{ $message }} @enderror

Quotation Items

@foreach($items as $index => $item)
@error('items.'.$index.'.product_id') {{ $message }} @enderror @if(!empty($showProductDropdown[$index]) && !empty($productResults[$index]))
@foreach($productResults[$index] as $product)
{{ $product->name }}
@if($product->style)
Style: {{ $product->style }}
@endif
@if($product->brand)
{{ $product->brand->name }}
@endif
@endforeach
@endif @if(!empty($productSearches[$index]) && strlen($productSearches[$index]) >= 2 && empty($productResults[$index]))
No products found
@endif
@error('items.'.$index.'.size_id') {{ $message }} @enderror
@error('items.'.$index.'.quantity') {{ $message }} @enderror
@error('items.'.$index.'.unit_price') {{ $message }} @enderror
Total: ₹{{ number_format(($item['quantity'] ?? 0) * ($item['unit_price'] ?? 0), 2) }}
@endforeach
Subtotal: ₹{{ number_format($subtotal, 2) }}
Tax Amount: ₹{{ number_format($tax_amount, 2) }}
Total: ₹{{ number_format($total, 2) }}
Cancel