@extends('layouts.admin.app') @section('content')
@if( Session::get('permissions.user_type') == 'A' )

Order Details

Assign Orders
@php $i = 0; @endphp @foreach($order as $orders) @php $orderDetails = $order_details->where('order_id', $orders->id); $productsForOrder = $products->whereIn('id', $orderDetails->pluck('product_id')); @endphp @if($orderDetails->isNotEmpty()) @php $i++; @endphp @endif @endforeach
Sr No Order Id Oredered Date Order Status Products View
{{ $i }} {{ $orders->unique_order_id }} {{ $orders->created_at }} @if($orders->order_delivery_status == 'P')
PENDING
@elseif($orders->order_delivery_status == 'PC')
PROCESS
@elseif($orders->order_delivery_status == 'CL')
CANCELED
@elseif($orders->order_delivery_status == 'H')
HOLD
@elseif($orders->order_delivery_status == 'D')
Delivered
@elseif($orders->order_delivery_status == 'S')
Shipped
@endif
{!! $productsForOrder->pluck('product_name')->implode('
') !!}
VIEW
@endif
@endsection