@section('title', __('New Order'))
{{-- customer --}} {{-- vendors --}}
{{-- products --}} @php $cellClasses = 'border border-gray-300 p-2 py-4 text-left'; @endphp @foreach ($products as $key => $product) @endforeach @empty($products) @endempty
{{ __('Product') }} {{ __('Options') }} {{ __('Quantity') }} {{ __('Price') }} {{ __('Action') }}
{{ $product['name'] ?? '' }} @php $selected_options = $product['selected_options'] ?? []; if (is_string($selected_options)) { $selected_options = json_decode($selected_options, true); } @endphp @foreach ($selected_options ?? [] as $option) {{ $option['name'] ?? '' }}{{ !$loop->last ? ',' : '' }} @endforeach {{ currencyFormat($product['total_price'] ?? ($product['price'] ?? '0')) }}
{{ __('No products added yet') }}

{{-- checkbox for if vendor allows delviery --}} @if (!$isPickup) {{-- pickup address --}} @endif
{{-- tip input --}} @if (!$isPickup) @endif {{-- order note --}} {{-- coupon input --}}
{{ __('Apply') }}

{{-- summary btn --}} {{ __('Show Summary') }}
{{-- options modal --}}

{{ __('Product Options') }}


@if (!empty($selectedModel)) {{-- option groups --}} @foreach ($optionGroups ?? [] as $optionGroup) {{-- title --}}

{{ $optionGroup->name }}

{{-- options --}}
@foreach ($optionGroup->options as $key => $option)
@if ($optionGroup->multiple ?? false) @else @endif

{{ $option->name }}

{{ currencyFormat($option->price ?? 0) }}

@endforeach
@endforeach @endif
{{-- order summary --}} {{-- ORDER PLACEMENT --}}

{{ __('Order Summary') }}

{{-- order summary --}}
@if (!$isPickup) @endif

{{-- vendor details --}} {{-- products --}}

{{ __('Products') }}

@foreach ($products ?? [] as $key => $product) @endforeach
S/N Name Options QTY
{{ $key + 1 }} {{ $product['name'] ?? '' }} @php $selected_options = $product['selected_options'] ?? []; if (is_string($selected_options)) { $selected_options = json_decode($selected_options, true); } @endphp @foreach ($selected_options ?? [] as $option) {{ $option['name'] ?? '' }}{{ !$loop->last ? ',' : '' }} @endforeach {{ $product['qty'] ?? '1' }}

@if (!$isPickup)
@endif {{-- driver tip --}}
{{-- fees --}} {{-- @foreach ($newOrder->fees ?? [] as $fee)
@endforeach --}} @if ($newOrder != null) @endif