@extends('layouts.app') @section('content') @php $locale = session()->get('locale') ? session()->get('locale') : App\Helpers\ConstantHelper::ENGLISH; @endphp

{{ __('label.appointment_history') }}

#{{ $order->order_no }}

@if ($order->status == App\Helpers\ConstantHelper::CANCELLED)
{{ __('static.cancelled') }}
@else @if ($order->balance_amount > 0)
{{ __('static.pay_amount', ['value' => $order->balance_amount]) }}
@endif @endif
/

{{ $locale == App\Helpers\ConstantHelper::ARABIC ? (isset($order->branch->name_ar) ? $order->branch->name_ar : '') : (isset($order->branch->name_en) ? $order->branch->name_en : '') }}

{{ isset($order->branchOwner->mobile_number) ? (isset($order->branchOwner->mobileCode->dial_code) ? $order->branchOwner->mobileCode->dial_code . ' ' : '') . $order->branchOwner->mobile_number : '' }}
{{ __('label.date') }}: {{ date('d-m-Y', strtotime($order->date)) }} | {{ App\Helpers\GeneralHelper::timeFormat($order->start_time) }}-{{ App\Helpers\GeneralHelper::timeFormat($order->end_time) }}

{{ isset($order->branch->address) ? $order->branch->address : '' }}

{{ __('static.staff_details') }}
{{ __('static.mobile_number') }}: {{ isset($order->staffUser->mobileCode->dial_code) ? $order->staffUser->mobileCode->dial_code : '' }} {{ isset($order->staffUser->mobile_number) ? $order->staffUser->mobile_number : '' }}
{{ __('static.name') }}: {{ isset($order->staffUser->name) ? $order->staffUser->name : '' }}
@forelse ($order->orderItems as $orderItem) @empty @endforelse
@if ($order->status != App\Helpers\ConstantHelper::CANCELLED)
  • {{ __('label.applied_distance_charges') }}

    {{ __('static.egp') }} {{ $order->applied_distance_charge ? $order->applied_distance_charge : 0 }}

  • {{ __('static.applied_coupon') }}

    {{ isset($appliedCoupon->coupon_code) ? $appliedCoupon->coupon_code : '' }}

  • {{ __('static.applied_redeem_points') }}

    {{ __('static.egp') }} {{ $order->redeem_points ? $order->redeem_points : 0 }}

  • {{ __('static.paid_amount_from_wallet') }}

    {{ __('static.egp') }} {{ $order->wallet ? $order->wallet : 0 }}

  • {{ __('static.paid_tip_amount') }}

    {{ __('static.egp') }} {{ $order->tip_amount ? $order->tip_amount : 0 }}

  • {{ __('label.amount_paid') }}

    {{ __('static.egp') }} {{ $order->total_paid ? $order->total_paid : 0 }}

  • {{ __('label.balance_amount') }}

    {{ __('static.egp') }} {{ $order->balance_amount ? $order->balance_amount : 0 }}

  • {{ __('label.total_amount') }}

    {{ __('static.egp') }} {{ $order->payable_amount ? $order->payable_amount : 0 }}

@endif @if ($order->status == App\Helpers\ConstantHelper::CANCELLED)
  • {{ __('label.amount_paid') }}

    {{ __('static.egp') }} {{ $order->total_paid ? $order->total_paid + $order->wallet : 0 }}

  • {{ __('label.refund_amount') }}

    {{ __('static.egp') }} {{ $order->refund_amount ? $order->refund_amount : 0 }}

  • {{ __('label.cancellation_charges') }}

    {{ __('static.egp') }} {{ $order->business_user_value + $order->admin_value }}

  • {{ $order->status ? __('static.' . $order->status) : '' }}
@endif
{{__('static.status')}}
    @forelse ($order->orderStatusLogs as $key => $log)
  • {{ $key + 1 }}

    {{ __('static.' . $log->status) }}

    {{ date('d-m-Y', strtotime($log->date)) }} {{ App\Helpers\GeneralHelper::timeFormat($log->created_at) }}

  • @empty @endforelse
@if ($order->description)
{{ __('static.booking_remarks') }}

{{ $order->description }}

@endif
@include('layouts.modals.pay-tip', [ 'order' => $order, ]) @endsection @section('script') @endsection