@extends('main') @section('styles') @endsection @section('content') @php $price = intval(str_replace(',', '', $order->price)); @endphp
@if (isDesktop()) @endif
@if (isDesktop())

{!! __('My account') !!} {!! __('My Orders') !!}

@endif

{{ __('Purchase invoice') }}

@if (isDesktop())

{!! __('Total bill') !!} :

@endif
  • {!! __('Subtotal') !!} :{{ @$price }} {!! __('EGP') !!}
  • {{ __('Delivery') }} : {{ @$order->delivery }} {!! __('EGP') !!}
  • {{ __('Order Total') }} :{{ @$price+@$order->delivery }} {!! __('EGP') !!}

{!! __('Place of delivery') !!} :

  • {{ __('Mobile number') }} :{{ @$order->address->phone }}
  • {{ __('City / District') }} :{{ @$order->address->region }}
  • {{ __('Detailed address') }} : {{ @$order->address->address }}
@php $status = $order->status ?? 0; if ($order->publish == -1) { $status = 9; } @endphp

@if (empty($order->publish)) {!! __('Status') !!} : {!! __('Order pending') !!} @elseif ($order->publish == -1) {!! __('Status') !!} : {!! __('Canceled') !!} @else {!! __('Status') !!}: {!! transactionOrdr($order->status) !!} @endif

  • {!! __('Invoice number') !!} :{!! $order->order_number !!}
  • {!! __('Date') !!} : {{ $order->created_at->format('Y/m/d - h:i') }} {{ __($order->created_at->format('a')) }}

{!! __('Order summary') !!}

@if (isDesktop()) @endif @foreach ($order->cart_items as $k => $item) @if (isDesktop()) @endif @endforeach
{!! __('Item') !!}{!! __('Price') !!}{!! __('Quantity') !!} {!! __('Total') !!}
{!! $item->name !!} @if ($item->options->has('unit')) / {{ $item->options->unit }} {{ ($item->options->has('type') && $item->options->type) ? ' - '.$item->options->type : '' }} @else / {{ $item->model->unit->title }} {{ ($item->options->has('type') && $item->options->type) ? ' - '.$item->options->type : '' }} @endif{!! $item->price !!} {{ __('EGP') }}{!! $item->qty !!} {{ $item->subtotal }} {{ __('EGP') }}
{!! __('Subtotal') !!} {{ @$price }} {!! __('EGP') !!}
{{ __('Delivery') }} {{ @$order->delivery }} {!! __('EGP') !!}
{{ __('Order Total') }} {{ @$price+@$order->delivery }} {!! __('EGP') !!}
@if (isDesktop()) {!! __('Print') !!} @endif
@if (!isDesktop()) @endif
@endsection @section('scripts') @endsection