@extends('layouts.app') @section('content') @php $locale = session()->get('locale') ? session()->get('locale') : App\Helpers\ConstantHelper::ENGLISH; @endphp {{ $todayAppointmentCount }} {{ __('label.today_appointment') }} {{ $upcomingAppointmentCount }} {{ __('label.upcoming_appointment') }} {{ $rescheduledAppointmentCount }} {{ __('label.reschedule_appointment') }} {{ $cancelledAppointmentCount }} {{ __('label.cancelled_appointment') }} {{ __('label.my_today_appointments') }} @forelse ($orders as $key => $order) {{ __('static.pay_amount', ['value' => $order->balance_amount]) }} {{ $locale == App\Helpers\ConstantHelper::ARABIC ? $order->branch->name_ar : $order->branch->name_en }} {{ __('label.date') }}: {{ date('d-m-Y', strtotime($order->date)) }} | {{ App\Helpers\GeneralHelper::timeFormat($order->start_time) }}-{{ App\Helpers\GeneralHelper::timeFormat($order->end_time) }} {{ $order->branch->address }} ({{ round($order->branch->distance) . ' Km' }}) {{ $locale == App\Helpers\ConstantHelper::ARABIC ? (isset($order->serviceType->service_ar) ? $order->serviceType->service_ar : '') : (isset($order->serviceType->service_en) ? $order->serviceType->service_en : '') }} @foreach ($order->services as $key => $service) @php $discount = 0; $totalDiscount = 0; $price = $orginalPrice = isset($service['serviceTypes'][0]['pivot']['price']) ? $service['serviceTypes'][0]['pivot']['price'] : 0; if (isset($service['offers']) && $price) { foreach ($service['offers'] as $offer) { $discount_amount = ($price * $offer->discount) / 100; $price = $price - $discount_amount; $discount = $discount + $discount_amount; } } @endphp {{ $locale == App\Helpers\ConstantHelper::ARABIC ? $service->name_ar : $service->name_en }} - {{ $service->time . ' ' . __('static.min') . ' ' . __('static.egp') }} {{ round($price) }} @if ($key == 2) +4 @break @endif @endforeach {{ __('label.amount_paid') }} {{ __('static.egp_amount', ['amount' => $order->total_paid]) }} {{ __('label.balance_amount') }} {{ __('static.egp_amount', ['amount' => $order->balance_amount]) }} {{ __('label.total_amount') }} {{ __('static.egp_amount', ['amount' => $order->payable_amount]) }} {{ __('static.'.$order->payment_status) }} Status @foreach ($order->orderStatusLogs as $key => $orderStatusLog) {{ $key + 1 }} {{ __('static.' . $orderStatusLog->status) }} {{ date('d-m-Y', strtotime($orderStatusLog->date)) }} {{ App\Helpers\GeneralHelper::timeFormat($orderStatusLog->start_time) }}-{{ App\Helpers\GeneralHelper::timeFormat($orderStatusLog->end_time) }} @endforeach @empty {{ __('message.no_records_found') }} @endforelse {{ __('label.your_schedule') }} {{ __('label.completed') }} {{ __('label.cancelled') }} {{ __('label.upcoming') }} @endsection @section('script') @endsection
{{ $order->branch->address }} ({{ round($order->branch->distance) . ' Km' }})
{{ __('static.egp_amount', ['amount' => $order->total_paid]) }}
{{ __('static.egp_amount', ['amount' => $order->balance_amount]) }}
{{ __('static.egp_amount', ['amount' => $order->payable_amount]) }}
{{ date('d-m-Y', strtotime($orderStatusLog->date)) }} {{ App\Helpers\GeneralHelper::timeFormat($orderStatusLog->start_time) }}-{{ App\Helpers\GeneralHelper::timeFormat($orderStatusLog->end_time) }}