@php $layout = isSeller() ? 'layouts.seller' : 'layouts.admin'; @endphp @extends($layout) @section('css') @endsection @section('content')
{!! Form::open(array('route' => $route, 'method' => 'GET', 'class'=>'filter_form mobile_filter' , 'style' => 'display:block;')) !!}
{!! Form::label('date', __('report.date'), ['class' => 'first-column']) !!}
{!! Form::hidden('from_date', (isset($inputs['from_date'])?dateFormat($inputs['from_date'], 'd-m-Y H:i') :''), ['id' => 'from_date']) !!} {!! Form::hidden('to_date', (isset($inputs['to_date'])?dateFormat($inputs['to_date'], 'd-m-Y H:i') :''), ['id' => 'to_date']) !!}
@if (isSeller() < 1)
{!! Form::label('store', __('report.store'), ['class' => 'control-label mb-2']) !!} {!! Form::select('store_id[]',$stores, isset($inputs['store_id']) ? $inputs['store_id'] : '', [ 'class' => 'form-control select2', 'multiple' => 'true', 'data-actions-box' => 'true', 'data-width' => '100%', ]) !!}
@endif
{!! Form::label('platform', __('report.all_devices'), ['class' => 'control-label mb-2']) !!} {!! Form::select('order_from[]', orderFrom(), isset($inputs['order_from']) ? $inputs['order_from'] : '', [ 'class' => 'form-control select2', 'multiple' => 'true', 'data-actions-box' => 'true', 'data-width' => '100%', ]) !!}
{!! Form::hidden('filter', 1) !!} {!! Form::submit(__('orders.search'), ['class' => 'btn btn-primary btn_sub width80']) !!} {!! __('orders.reset') !!}
{!! Form::close() !!}
@php $filter = [ 'order_from' => isset($inputs['order_from']) ? $inputs['order_from'] : '', 'store_id' => isset($inputs['store_id']) ? $inputs['store_id'] : '', 'from_date' => isset($inputs['from_date'])?dateFormat($inputs['from_date'], 'd-m-Y H:i') :'', 'to_date' => isset($inputs['to_date'])?dateFormat($inputs['to_date'], 'd-m-Y H:i') :'' ]; @endphp {!! __('report.download_excel') !!} {!! __('report.download_pdf') !!}
@include('seller.report.economy-report-view')
@endsection @section('script') @endsection