@extends('layouts.store.store') @section('title', 'Store Orders') @section('content') @push('styles') @endpush
@include('partials.header') @include('layouts.store.sidebar')
Order ManagementOrdersOrder Details

Order Details
Order Id:
{{$order->id}}
Order Date:
04/11/2025
Order Type:
{{ucfirst($order->order_type)}}
Store Number:
{{$order->store->store_number}}
Store Name:
{{$order->store->store_name}}
Division:
{{$order->store->divisions->name}}
Region:
{{$order->store->regions->name}}
Area:
{{$order->store->areas->name}}
@php $maxRows = max($order->OrderDetails->count(), $order->ReplacementWrenches->count()); @endphp @for ($i = 0; $i < $maxRows; $i++) @php $orderDetail = $order->OrderDetails[$i] ?? null; $replacementDetail = $order->ReplacementWrenches[$i] ?? null; $store_wrenches = $orderDetail?->wrenches?->serial_number ?? 'N/A'; $replacement_wrenches = $replacementDetail?->wrenches?->serial_number ?? 'N/A'; $urlStore = $orderDetail && $orderDetail->wrenches ? route('wrenches.edit', $orderDetail->wrenches->id) : null; $urlReplacement = $replacementDetail && $replacementDetail->wrenches ? route('wrenches.edit', $replacementDetail->wrenches->id) : null; @endphp @endfor
SL.NO. Returning Wrenches Replacement Wrenches
{{ $i + 1 }} {!! $store_wrenches !== 'N/A' ? $store_wrenches : '' !!} {!! $replacement_wrenches !== 'N/A' ? $replacement_wrenches : '' !!}
@if($order->order_status !='Cancelled')
End-to-End Order Management Support Process
    {{-- {{dd($statuses)}} --}} @foreach($statuses as $status) @php $orderid = $order->id; $helper = new \App\Helpers\Helpers(); $history = $helper->check_status_history($orderid,$status); $history_count = $helper->status_history_count($orderid,$status); if($history_count !=0){ $status_date = $history->created_at->format('m/d/Y'); } else { $status_date = '-'; } @endphp
  • {{$status_date}} {{$status}}
  • @endforeach
@endif @if($order->order_status =='Notification sent to Store')
@endif
@stop