@extends('home') @section('title') @lang('site.site_name') @endsection @section('styles') @endsection @section('content') {!! Form::open(array('route' => 'sales.orders','method' => 'POST', 'class' => 'form-inline margin-bottom-0','id' => 'myform')) !!}
@if (count($orders) > 0)

{!! __('Sales report') !!} {!! __('Month') !!} {!! Date('m-Y') !!}

  • {!! __('Total sales') !!} {!! number_format($orders->sum('price')) !!} {!! __('EGP') !!}
  • {!! __('Total delivery') !!} {!! number_format($orders->sum('delivery')) !!} {!! __('EGP') !!}
  • {!! __('Total') !!} {!! number_format($orders->sum('price')+$orders->sum('delivery')) !!} {!! __('EGP') !!}
  • {!! __('Total invoices') !!} {!! count($orders) !!}
@foreach ($orders as $index => $order) @endforeach
{!! __('Invoice') !!} {!! __('Customer') !!} {!! __('Region') !!} {!! __('Date of request') !!} {!! __('Total') !!}
{{ $loop->index + 1 }} {!! $order->order_number !!} {!! @$order->user->name !!} {!! @Optional($order->destination)->title !!} {{ $order->created_at->format('Y-m-d') }} {!! $order->delivery+$order->price !!} {!! __('EGP') !!}
{!! __('Total invoices') !!} {!! number_format($orders->sum('price')+$orders->sum('delivery')) !!} {!! __('EGP') !!}
@if (count($orders) > 0 && isDesktop())
{{ __('Print') }} {{-- {{ __('Export PDF') }} --}}
@endif @else

{!! __('Month Reports') !!} {!! Date('m-Y') !!}



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



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