@php $layout = isSeller() ? 'layouts.seller' : 'layouts.admin'; @endphp @extends($layout) @section('content')
{!! Form::open(array('route' => $route, 'method' => 'GET', 'class'=>'filter_form mobile_filter ')) !!}
{{--
{!! Form::label("from_date", __('report.from')) !!} {!! Form::text("from_date", (isset($inputs['from_date'])?dateFormat($inputs['from_date'], 'd-m-Y h:i A'):''), ['class'=>'form-control p-3 datepicker-input-sch']) !!}
{!! Form::label("to_date", __('report.to')) !!} {!! Form::text("to_date", (isset($inputs['to_date'])?dateFormat($inputs['to_date'], 'd-m-Y h:i A'):''), ['class'=>'form-control datepicker-input-sch']) !!}
--}}
{!! 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(!empty($stores))
{!! Form::label("store_id", __('report.store'), ['class' => 'first-column']) !!} {!! Form::select('store_id[]', $stores, (isset($inputs['store_id'])?$inputs['store_id']:[]), [ 'class'=>'form-control select2 second-column', 'id' => 'store_id', 'multiple' => true, 'data-actions-box'=>'true', 'data-width'=>'100%' ]) !!}
@endif
{!! Form::label("delivery_type[]", __('report.delivery_type'), ['class' => 'first-column']) !!} {!! Form::select('delivery_type[]', deliveryType(), (isset($inputs['delivery_type'])?$inputs['delivery_type']:''), ['class'=>'form-control select2 second-column', 'multiple' => true]) !!}
{!! Form::label("payment_method[]", __('report.payment_method'), ['class' => 'first-column']) !!} {!! Form::select('payment_method[]',paymentMethodDropdown(),(isset($inputs['payment_method'])?$inputs['payment_method']:'') , ['class'=>'form-control select2 second-column','multiple' => true]) !!}
{!! Form::label("order_from", __('report.platform'), ['class' => 'first-column']) !!} {!! Form::select('order_from[]',orderFrom(), (isset($_GET['order_from'])?$_GET['order_from']:''), ['class'=>'form-control select2 second-column','multiple'=>true]) !!}
{{--
--}} {!! Form::hidden('filter', 1) !!} {!! Form::submit(__('orders.search'), ['class'=>'btn btn-primary btn_sub width80']) !!} {!! __('orders.reset') !!} {{--
--}}
@if(isSeller()) {!! Form::hidden('franchise_store',implode(',',array_keys($stores))) !!} @endif {!! Form::close() !!} @if(!isset($inputs['is_download']) && (isset($result) && count($result) > 0)) @endif
{!! Form::hidden('',$_SERVER['QUERY_STRING'],['id' => 'filters_list']) !!} @include('admin.report.order-sales-view')
@endsection