@lang('global.order_details')

@foreach ($order->citems_pivot as $citem) @if ($citem->price == 0) @else @endif @foreach ($citem->details->options ?? [] as $option) @foreach ($option->choices as $choice) @endforeach @endforeach @endforeach
@lang('global.citem') @lang('global.section') @lang('global.quantity') @lang('global.unit_price') @lang('global.total_price') @lang('global.notes')
{{ $citem->title }} {{ $citem->section }} {{ $citem->quantity }}--- --- {{ $citem->price }} {{ $citem->price * $citem->quantity }} {{ $citem->notes ?? __('global.not_exists') }}
{{ $choice->title->$locale }} {{ $option->title->$locale }} {{ $choice->quantity ?? 1 }} {{ $choice->price }} {{ $choice->price * ($choice->quantity ?? 1) }} @lang('global.choice_total_times_product_quantity') : {{ $choice->price * ($choice->quantity ?? 1) * $citem->quantity }}

@lang('global.charity')

{{ $order->branch->charity->title }}

@lang('validation.attributes.created_at')

{{ $order->created_at }}

@lang('global.order_number')

{{ $order->number }}

@if ($order->notes)

@lang('global.notes')

{!! $order->notes !!}

@endif @if ($order->cancellation_notes)

@lang('validation.attributes.cancellation_notes')

{!! $order->cancellation_notes !!}

@endif @if ($order->undone_notes)

@lang('validation.attributes.undone_notes')

{{ $order->undone_notes }}

@endif

@lang('global.order_status')

@switch($order->status->title) @case('initiated') @lang('global.initiated') @break @case('undone') @lang('global.undone') @break @case('pending') @lang('global.pending') @break @case('preparing') @lang('global.accepted') @break @case('delivering') @lang('global.delivering') @break @case('done') @lang('global.done') @break @case('cancelled') @lang('global.cancelled') @break @case('rejected') @lang('global.rejected') @if (in_array($order->transaction?->status, ['voided', 'refunded'])) - @lang('global.refunded') @endif @break @endswitch

@lang('global.payment_method')

@lang("global.payment_methods.$order->payment_method")

@if ($order->rating)

@lang('global.rating')

@for ($i = 0; $i < $order->rating->stars; $i++) @endfor {!! $order->rating->review !!}

@endif

@lang('global.financial_details')

@lang('validation.attributes.total_price')

@if ($order->total_price == 0) --- @else {{ $order->total_price }} @endif

@if ($order->financial->store_coupon_discount)

@lang('global.store_coupon_discount')

{{ $order->financial->store_coupon_discount }}

@endif @if ($order->financial->platform_coupon_discount)

@lang('global.platform_coupon_discount')

{{ $order->financial->platform_coupon_discount }}

@endif @if ($order->transaction_id)

@lang('global.transaction_id')

{{ $order->transaction->provider_id }}

@endif

@lang('global.customer_details')

@if ($order->name)

@lang('validation.attributes.name')

{{ $order->name }}

@endif @if ($order->first_name)

@lang('validation.attributes.first_name')

{{ $order->first_name }}

@endif @if ($order->last_name)

@lang('validation.attributes.last_name')

{{ $order->last_name }}

@endif @if ($order->phone)

@lang('validation.attributes.phone')

{{ $order->phone }}

@endif @if ($order->email)

@lang('validation.attributes.email')

{{ $order->email }}

@endif @if ($order->birthdate)

@lang('validation.attributes.birthdate')

{{ $order->birthdate }}

@endif @if ($order->passport_number)

@lang('validation.attributes.passport_number')

{{ $order->passport_number }}

@endif @if ($order->passport_country)

@lang('validation.attributes.passport_country')

@lang("countries.{$order->passport_country}")

@endif @if ($order->residence_country)

@lang('validation.attributes.residence_country')

@lang("countries.{$order->residence_country}")

@endif
@lang('global.order_log')
@foreach ($order->statuses as $status) @endforeach
@lang('validation.attributes.description') @lang('validation.attributes.created_at')
@lang("global.$status->title") @if ($status->creator) - {{ $status->creator instanceof \App\Models\Admin || $status->creator instanceof \App\Models\Captain ? 'Pro Solutions' : __('global.digital-center') }} @endif {{ $status->created_at }}