@extends('home') @section('title') @lang('site.site_name') @endsection @section('styles') {!! Html::style(Theme::current()->assetPath.'/pages/css/profile.min.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/bootstrap-fileinput/bootstrap-fileinput.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css') !!} {!! Html::style(theme_url('css/bootstrap-datepicker.min.css')) !!} @endsection @section('content') {!! Form::open(array('route' => 'sales.orders','method' => 'POST', 'class' => 'form-inline margin-bottom-0','id' => 'myform')) !!}
{!! __('Search requests the following options') !!}
{!! __('Sales during a period') !!}
- -
@foreach ($orders as $index => $order) @endforeach
{!! __('Invoice') !!} {!! __('Customer name') !!} {!! __('Total') !!} {!! __('Region') !!} {!! __('Date of request') !!}
{{ $loop->index + $orders->firstItem() }} {!! $order->order_number !!} {!! @$order->user->name !!} {!! $order->delivery+$order->price !!} {!! __('EGP') !!} {!! @$order->destination->title !!} {{ $order->created_at->format('Y-m-d') }}
{!! __('Total invoices') !!} {!! number_format($orders->sum('price')+$orders->sum('delivery')) !!} {!! __('EGP') !!}
{!! Form::close() !!} @if (count($orders) > 0)
{{ __('Print') }} {{-- {{ __('Export PDF') }} --}}
@endif @endsection @section('scripts') {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/lib/markdown.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/js/bootstrap-markdown.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/jquery-validation/js/jquery.validate.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/jquery-validation/js/additional-methods.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/pages/scripts/form-validation.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/jquery-ui/jquery-ui.min.js') !!} {!! Html::script(theme_url('js/bootstrap-datepicker.min.js')) !!} {!! Html::script(theme_url('js/bootstrap-datepicker.ar.min.js')) !!} @endsection