{{t_('Order')}}

{{$order->user?->name}}

{{t_('Tel No')}}: {{$order->user?->phone}}
{{t_('Email')}}: {{$order->user?->email}}

{{t_('Order Status: ')}}

{{$order->status}}

{{t_('order details')}}

{{$order->facilities->where('type', 'custom')->first()->pivot->description_custom}}

{{t_('order notes')}}

{{$order->facilities->where('type', 'custom')->first()->pivot->notes}}

{{t_('option details')}}

{{$order->facilities->where('type', '!=', 'custom')->first()->title}}

@if($order->facilities->where('type', '!=', 'custom')->first()->type == 'delivery')
{{t_('delivery address')}}

{{$order->facilities->where('type', '!=', 'custom')->first()->pivot->address}}

{{t_('delivery cost')}}

{{$order->delivery_cost.' '.t_('R.S')}} {{-- {{$order->facilities->where('type', 'custom')->first()->pivot->address}}--}}

@endif @if($order->facilities->where('type', '!=', 'custom')->first()->type == 'book')
{{t_('persons count')}}

{{$order->facilities->where('type', '!=', 'custom')->first()->pivot->persons}}

@endif @if($order->facilities->where('type', '!=', 'custom')->first()->type == 'to_car')
{{t_('receipt in car')}}

{{$order->facilities->where('type', '!=', 'custom')->first()->pivot->in_car == 0? 'no' : 'yes'}}

@endif @if($order->facilities->where('type', '!=', 'custom')->first()->type == 'book' || $order->facilities->where('type', '!=', 'custom')->first()->type == 'to_car')
{{t_('receipt date')}}

{{$order->facilities->where('type', '!=', 'custom')->first()->pivot->date}}

{{t_('receipt time')}}

{{$order->facilities->where('type', '!=', 'custom')->first()->pivot->time}}

@endif @if($order->status == 'available')
{{t_('Order Cost')}}

{{$order->sub_total.' '.t_('R.S')}}

@if($order->facilities->where('type', '!=', 'custom')->first()->type == 'delivery')
{{t_('Order Total Cost (Cost + delivery)')}}

{{$order->total.' '.t_('R.S')}}

@endif @endif
@if($order->status == 'waiting')
@csrf
@endif
@push('scripts') @endpush