@extends('layouts.admin.app') @section('content')
@csrf
From Date To Date Select the Status
@php $i = 0; @endphp @foreach($order as $orders) @php // Get all order_details for this order $orderDetails = $order_details->where('order_id', $orders->id); // Get unique product names for this order $productsForOrder = $products->whereIn('id', $orderDetails->pluck('product_id')); @endphp @if($orderDetails->isNotEmpty()) @php $i++; @endphp @endif @endforeach
Sr No Order Id Oredered Product Client Name Order Staus View
{{ $i }} {{ $orders->unique_order_id }} {{ $orders->created_at }} {{ $orders->user_id }} @if($orders->order_delivery_status == 'P') @elseif($orders->order_delivery_status == 'PC') @elseif($orders->order_delivery_status == 'CL') @elseif($orders->order_delivery_status == 'H') @elseif($orders->order_delivery_status == 'D') @elseif($orders->order_delivery_status == 'S') @endif {!! $productsForOrder->pluck('product_name')->implode('
') !!}
VIEW
@endsection