@extends('home') @section('title') @lang('site.site_name') @endsection @section('styles') {!! Html::style(theme_url('/invoice.css')) !!} @endsection @section('content')
{!! Form::open(array('route' => 'delivery2.order','method' => 'POST', 'class' => 'form-horizontal','id' => 'myform')) !!}
{!! __('Customer name') !!} {!! @$order->user->name !!}
{!! __('Phone') !!} {!! @$order->address->phone !!}
@if ($order->check) @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 @else {!! __('Status') !!} {!! __('The order cannot be confirmed, because some products are not in stock') !!} @endif @if (!$order->publish) @if ($order->check) @else @endif @else @if ($order->publish == 1 ) @else {!! __('Canceled') !!} @endif @endif

{!! __('Customer name') !!} {!! @$order->user->name !!}

{!! __('Phone') !!} : {!! @$order->address->phone !!}

{!! __('Destination') !!} : {!! @$order->destination->title !!}

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


{!! siteName() !!}

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

{!! $order->order_number !!}


@php $j = 1; @endphp @foreach ($order->cart_items as $key =>$item) model)->stock < 1) class="error" @endif> @endforeach
#
{!! __('Item') !!}
{!! __('Quantity') !!}
{!! __('Price') !!}
{!! __('Total') !!}
{!! $j++ !!} {!! $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->qty !!} {!! $item->price !!} {{ __('EGP') }} {!! ($item->price)*$item->qty !!} {!! __('EGP') !!}

{{ __('Order Total') }}:

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

@if (@$order->discount)

{!! __('Discount coupon') !!}:

@endif

{{ @$order->price - 0}} {{ __('EGP') }}

{{ @$order->delivery - 0}} {{ __('EGP') }}

@if (@$order->discount)

{{ @$order->discount - 0}} {{ __('EGP') }}

@endif

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

{{ @$order->price + @$order->delivery - @$order->discount}} {{ __('EGP') }}

{!! __('Printed on') !!} : {{ date("d-m-Y") }}


{!! Form::close() !!} @endsection @section('scripts') @endsection