@extends('layouts.app', ['title' => __('Orders')]) @section('content')

{{ "#".$order->id_formated." - ".$order->created_at->locale(Config::get('app.locale'))->isoFormat('LLLL') }}

@include('orders.partials.orderinfo') @include('orders.partials.actions.buttons',['order'=>$order])
@if(config('app.isft')&&$order->restorant)
{{ __("Order tracking")}}
@if ($order->restorant)
@include('orders.partials.map',['order'=>$order])
@endif
@endif
@if ($order->client_id!=null&&$order->client_id!=$order->restorant->id)
@include('clients.profile',['client'=>$order->client])
@endif
{{ __("Status History")}}
@include('orders.partials.orderstatus')
@if(auth()->user()->hasAnyRole(['admin','owner','staff','driver'])) @foreach ($orderModules as $orderModule) @include($orderModule.'::card') @endforeach @endif @if(auth()->user()->hasRole('client')) @if($order->status->pluck('alias')->last() == "delivered"||$order->status->pluck('alias')->last() == "closed")
@include('orders.partials.rating',['order'=>$order]) @endif @endif
@include('layouts.footers.auth') @include('orders.partials.modals',['order'=>$order])
@endsection @section('head') @endsection @section('js')