@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 !!}
{!! __('Status') !!} @if (empty($order->publish)) {!! __('Order pending') !!} @elseif ($order->publish == -1) {!! __('Canceled') !!} {!! __('in stage') !!} {!! transactionOrdr($order->status) !!} @else {!! transactionOrdr($order->status) !!} @endif

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

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

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

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

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

{!! $order->order_number !!}


{{-- --}} @php $j = 1; @endphp @foreach ($order->cart_items as $key =>$item) qty > ($item->model)->stock && !$order->publish) class="error" @endif> {{-- --}} @endforeach @if ($order->publish != -1) @endif
#
{!! __('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 !!} {!! ($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 h:i") }} {{ __(date("a")) }}


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