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

{{ __('Purchase invoice') }}

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

  • {!! __('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 }}

{!! __('Status') !!}:

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

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

@foreach ($order->cart as $k => $item) @endforeach
{!! __('Item') !!} {!! __('Price') !!} {!! __('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 !!}×{!! $item->qty !!} {{ $item->subtotal }} {{ __('EGP') }}
{!! __('Subtotal') !!} {{ @$price }} {!! __('EGP') !!}
{{ __('Delivery') }} {{ @$order->delivery }} {!! __('EGP') !!}
{{ __('Order Total') }} {{ @$price+@$order->delivery }} {!! __('EGP') !!}
@endsection