@php $locale = session()->get('locale') ? session()->get('locale') : App\Helpers\ConstantHelper::ENGLISH; @endphp @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 @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]) }}

  • {{ ucfirst($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