@extends('website.layouts.master') @section('content') {{--
--}} {{-- --}}@lang('header.address') : {{ $order->address->address }}
@lang('header.state') : {{ $order->address->state }}
@lang('header.extranote') : @if ($order->address->building || $order->address->floor_number || $order->address->apartment_number)
@lang('header.note') : {{ $order->address->notes ?? __('header.nonote') }}
@lang('header.phone') : {{ $order->address->address_phone ?? __('header.nophone') }}
@else@lang('header.noaddress')
@endif@lang('header.name') : {{ $order->client?->name }}
@lang('header.paymentmethod') @switch($transaction->payment_method) @case('cash') @lang('header.cash') @break @case('credit_card') @lang('header.credit_card') @break @case('online') @lang('header.online') @break @default @lang('header.cash') @endswitch
@endforeach @else@lang('header.nopaymentmethod')
@endif@if ($order->tax_application == 0) {{ $detail->price_befor_tax + $addons->sum('price_before_tax') }} @else {{ $detail->price_after_tax + $addons->sum('price_after_tax') }} @endif {{ $order->Branch->country->currency_symbol }}
@lang('header.totalorder')
@php $subTotalPrice = $order->total_price_befor_tax; if ($order->tax_application == 1) { $subTotalPrice += $order->tax_value; } @endphp {{ $subTotalPrice }} {{ $order->Branch->country->currency_symbol }}
@lang('header.coupon')
-{{ $order->coupon_value }} {{ $order->Branch->country->currency_symbol }}
@lang('header.feesdelivery')
{{ $order->delivery_fees ?? 0 }} {{ $order->Branch->country->currency_symbol }}
@lang('header.serviceFees')
{{ $order->service_fees ?? 0 }} {{ $order->Branch->country->currency_symbol }}
@lang('header.includefees') {{ number_format(($order->tax_value / $order->total_price_befor_tax) * 100, 2) . '%' }} @lang('header.anotherway') {{ $order->tax_value }} {{ $order->Branch->country->currency_symbol }}
@lang('header.notincludefees')
{{ $order->delivery->first_name . ' ' . $order->delivery->last_name }}
{{ app()->getLocale() === 'ar' ? $order->branch->address_ar : $order->branch->address_en }}
{{ app()->getLocale() === 'ar' ? $order->branch->name_ar : $order->branch->name_en }}
@lang('header.paymentmethod') @switch($transaction->payment_method) @case('cash') @lang('header.cash') @break @case('credit_card') @lang('header.credit_card') @break @case('online') @lang('header.online') @break @default @lang('header.cash') @endswitch
@endforeach @else@lang('header.nopaymentmethod')
@endif@if ($order->tax_application == 0) {{ $detail->price_befor_tax + $addons->sum('price_before_tax') }} @else {{ $detail->price_after_tax + $addons->sum('price_after_tax') }} @endif {{ $order->Branch->country->currency_symbol }}
@lang('header.totalorder')
@php $basePrice = $order->total_price_befor_tax; $couponDiscount = 0; if ($order->coupon_id) { if ($order->coupon->type === 'percentage') { $couponDiscount = ($basePrice * $order->coupon->value) / 100; } elseif ($order->coupon->type === 'fixed') { $couponDiscount = $order->coupon->value; } } $subTotalPrice = $basePrice + $couponDiscount; if ($order->tax_application == 1) { $subTotalPrice += $order->tax_value; } @endphp {{ $subTotalPrice }} {{ $order->Branch->country->currency_symbol }}
@lang('header.coupon')
@if ($order->coupon->type === 'percentage')-{{ ($order->total_price_befor_tax * $order->coupon->value) / 100 }} {{ $order->Branch->country->currency_symbol }}
@elseif ($order->coupon->type === 'fixed')-{{ $order->coupon->value }} {{ $order->Branch->country->currency_symbol }}
@endif@lang('header.includefees') {{ number_format(($order->tax_value / $order->total_price_befor_tax) * 100, 2) . '%' }} @lang('header.anotherway') {{ $order->tax_value }} {{ $order->Branch->country->currency_symbol }}
@lang('header.notincludefees')
@lang('order.withoutDeposit')
@elseif($reservation->transaction->payment_status == 'part')@lang('order.withDeposit') ({{ $reservation->transaction->paid }} {{ $reservation->branch->country->currency_symbol }})
@if ($reservation->transaction->payment_method == 'online')@lang('order.paidOnline')
@elseif($reservation->transaction->payment_method == 'cash')@lang('order.paidCash')
@elseif($reservation->transaction->payment_method == 'credit_card')@lang('order.paidCredit')
@endif@lang('order.withoutDeposit')
@elseif($reservation->order->transaction->payment_status == 'part')@lang('order.withDeposit') ({{ $reservation->order->transaction->paid }} {{ $reservation->branch->country->currency_symbol }})
@if ($reservation->order->transaction->payment_method == 'online')@lang('order.paidOnline')
@elseif($reservation->order->transaction->payment_method == 'cash')@lang('order.paidCash')
@elseif($reservation->order->transaction->payment_method == 'credit_card')@lang('order.paidCredit')
@endif@lang('order.wholeDeposit') ({{ $reservation->order->transaction->paid }} {{ $reservation->branch->country->currency_symbol }})
@if ($reservation->order->transaction->payment_method == 'online')@lang('order.paidOnline')
@elseif($reservation->order->transaction->payment_method == 'cash')@lang('order.paidCash')
@elseif($reservation->order->transaction->payment_method == 'credit_card')@lang('order.paidCredit')
@endif@if ($reservation->order->tax_application == 0) {{ $detail->price_befor_tax + $addons->sum(fn($addon) => $addon->price_before_tax) }} @else {{ $detail->price_after_tax + $addons->sum(fn($addon) => $addon->price_after_tax) }} @endif {{ $reservation->order->Branch->country->currency_symbol }}
@lang('header.totalorder')
@php $basePrice = $reservation->order->total_price_befor_tax; $couponDiscount = 0; if ($reservation->order->coupon_id) { if ($reservation->order->coupon->type === 'percentage') { $couponDiscount = ($basePrice * $reservation->order->coupon->value) / 100; } elseif ($reservation->order->coupon->type === 'fixed') { $couponDiscount = $reservation->order->coupon->value; } } $subTotalPrice = $basePrice + $couponDiscount; if ($reservation->order->tax_application == 1) { $subTotalPrice += $reservation->order->tax_value; } @endphp {{ $subTotalPrice }} {{ $reservation->order->Branch->country->currency_symbol }}
@lang('header.coupon')
@if ($reservation->order->coupon->type === 'percentage')-{{ ($reservation->order->total_price_befor_tax * $order->coupon->value) / 100 }} {{ $reservation->order->Branch->country->currency_symbol }}
@elseif ($reservation->order->coupon->type === 'fixed')-{{ $reservation->order->coupon->value }} {{ $reservation->order->Branch->country->currency_symbol }}
@endif@lang('header.serviceFees')
{{ $reservation->order->service_fees ?? 0 }} {{ $reservation->order->Branch->country->currency_symbol }}
@lang('header.includefees') {{ number_format(($order->tax_value / $order->total_price_befor_tax) * 100, 2) . '%' }} @lang('header.anotherway') {{ $reservation->order->tax_value }} {{ $reservation->order->Branch->country->currency_symbol }}
@lang('header.notincludefees')