@extends('admin.layout.master') @section('css') @endsection @section('css') @endsection @section('content')
{{-- start order details --}}
{{ __('admin.show') }}

{{ __('admin.order_num') }}
{{ $order->order_num??'' }}
@if($order->provider)
{{ __('admin.provider_name') }}
{{ $order->provider?->name??'' }}
@endif
{{ __('admin.category') }}
{{ $order->category?->name??'' }}
@if($order->subCategory)
{{ __('admin.sub_category') }}
{{ $order->subCategory->name??'' }}
@endif
{{ __('admin.pay_type') }}
{{ $order->PayTypeText??'' }}
{{ __('admin.order_status') }}
{{ $order->StatusText??'' }}
{{ __('admin.order_pay_status') }}
{{ $order->PayStatusText }}
{{-- Display date and time for hall, chalet, rest orders --}} @if(in_array($order->category_type, ['hall', 'chalet', 'rest', 'hotel'])) @if($order->from_date)
{{ __('admin.from_date') }}
{{ \Carbon\Carbon::parse($order->from_date)->format('d/m/Y') }}
@endif @if($order->to_date)
{{ __('admin.to_date') }}
{{ \Carbon\Carbon::parse($order->to_date)->format('d/m/Y') }}
@endif @if($order->time)
{{ __('admin.time') }}
{{ $order->time }}
@endif @if($order->people_num)
{{ __('admin.people_num') }}
{{ $order->people_num }}
@endif @endif
{{ __('admin.vat_value') }}
{{ $order->vat_amount . ' ' . __('admin.SAR') }}
{{ __('admin.admin_commission') }}
{{ $order->admin_commission . ' ' . __('admin.SAR') }}
{{-- //coupon --}} @if ($order->coupon_num !== null)
{{ __('admin.coupon_num') }}
{{ $order->coupon_num }}
@endif @if ($order->coupon_type !== null)
{{ __('admin.coupon_type') }}
{{ $order->coupon_type }}
@endif @if ($order->coupon_value !== null)
{{ __('admin.coupon_value') }}
{{ $order->coupon_value }}
@endif
{{ __('admin.total_products_price') }}
{{ $order->total_products . ' ' . __('admin.SAR') }}
{{ __('admin.final_total_price') }}
{{ $order->final_total . ' ' . __('admin.SAR') }}
{{-- Deposit Information --}} @if($order->deposit_amount > 0)
{{ __('admin.deposit_amount') }}
{{ number_format($order->deposit_amount, 2) . ' ' . __('admin.SAR') }}
@if($order->deposit_percentage > 0)
{{ __('admin.deposit_percentage') }}
{{ number_format($order->deposit_percentage, 2) . ' %' }}
@endif
{{ __('admin.deposit_paid') }}
@if($order->deposit_paid) {{ __('admin.yes') }} @else {{ __('admin.no') }} @endif
@if($order->remaining_amount > 0)
{{ __('admin.remaining_amount') }}
{{ number_format($order->remaining_amount, 2) . ' ' . __('admin.SAR') }}
@endif @endif @if($order->notes)
{{ __('admin.notes') }}
@endif {{-- //canceled --}} @if ($order->status == 3 && $order->cancel_reason_id !== null)
{{ __('admin.cancel_reason') }}
@endif {{-- //refused --}} @if ($order->status == 2 && $order->refuse_reason_id !== null)
{{ __('admin.refuse_reason') }}
@endif
{{-- end order details --}} {{-- map --}} {{-- start map --}} {{--

{{-- --}} {{--
--}} {{--
--}} {{-- end map --}} {{-- map --}} {{-- user details --}}
{{ __('admin.user_details') }}

{{ __('admin.name') }}
{{ $order?->user?->name }}
{{ __('admin.phone') }}
{{ $order?->user?->full_phone }}
{{ __('admin.email') }}
{{ $order->user->email ?? '' }}
{{ __('admin.ban_status') }}
@if ($order?->user?->is_blocked)
{{ __('admin.Prohibited') }}
@else
{{ __('admin.Unspoken') }}
@endif
{{ __('admin.activation') }}
@if ($order?->user?->active)
{{ __('admin.active') }}
@else
{{ __('admin.disactive') }}
@endif
{{-- end user details --}} {{-- provider details --}} @if($order->provider)
{{ __('admin.provider_details') }}

{{ __('admin.name') }}
{{ $order->provider->name }}
{{ __('admin.phone') }}
{{ $order->provider->full_phone }}
{{ __('admin.ban_status') }}
@if ($order->provider->is_blocked)
{{ __('admin.Prohibited') }}
@else
{{ __('admin.Unspoken') }}
@endif
{{ __('admin.activation') }}
@if ($order->provider->active)
{{ __('admin.active') }}
@else
{{ __('admin.disactive') }}
@endif
@endif {{-- end provider details --}} {{-- rate --}} @if ($order->rate)
{{ __('admin.order_rate') }}

{{ __('admin.rate') }} {{ __('admin.comment') }}
{{ $order->rate->rate ?? '' }} {{ $order->rate->comment ?? '' }}
@endif {{-- rate --}}
@endsection