Edit Offline Sale #{{ $order_id }}
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf @method('PUT')
Customer Details
Customer Name:
Phone Number:
House No:
Road Name:
Landmark:
District:
State:
PIN:
Sale Items
@foreach ($items as $index => $item)
Product:
Select Product
@foreach($allProducts as $product)
product_id == $item['product_id']) selected @endif> {{ $product->title }}
@endforeach
Variant:
Select Variant
{{-- Variants will be dynamically loaded here via JavaScript based on product selection --}} @if(isset($item['variant_id'])) @foreach($allVariants->where('product_id', $item['product_id']) as $variant)
variant_id == $item['variant_id']) selected @endif> {{ $variant->variant_name }}
@endforeach @endif
Quantity:
Unit Price (₹):
Remove
@endforeach
Add Item
Financial Details
Subtotal:
Cash Wallet Deduction:
Shopping Wallet Deduction:
Amount Payable:
Payment Mode:
Update Invoice
Cancel