@extends('layouts.admin.app') @section('content')

Order

Edit :: Order Id - {{ $order->unique_order_id }}

@csrf @php $agentIndex = 0; @endphp
@foreach($tableItem as $tableItems) @php $productIndex = 0; @endphp
Agent Details

@php $addBtnRmv = 0; @endphp @forelse($tableItems['products'] as $product) @php $addBtnRmv++; @endphp @php $productIndex++; @endphp @empty @endforelse
Product Price QTY Image Link Text Action
@if($product['imagePath']) @php $imagePathDecoded = json_decode($product['imagePath'], true); $flatImages = collect($imagePathDecoded)->flatten(); // In case it's nested arrays @endphp @endif @if($product['imageText']) @endif @if($addBtnRmv > 0) (-) @else
(-) @endif
Delivery Type Price Total Price
@if($tableItems['delivery_type'] == 's_delivery') @php $value = $tableItems['delivery_price']->s_delivery; @endphp @else @php $value = $tableItems['delivery_price']->m_delivery; @endphp @endif
Delivery Date Delivery Time Any other requirments
Remove
@php $agentIndex++; @endphp @endforeach
@endsection @section('script') @endsection