@php $layout = isSeller() ? 'layouts.seller' : 'layouts.admin'; $routDashboard = isSeller() ? route('seller.dashboard', getStoreSlug()) :route('admin.dashboard'); @endphp @extends($layout) @section('content')
{!! Form::open(array('route' =>[$route], 'method' => 'GET', 'class'=>'filter_form col-md-12')) !!}
{{--
{!! Form::label("month", __('report.month')) !!} {!! Form::text("date",$inputs['date'] ?? dateFormat(currentDate(),'M,Y'), ['class'=>'form-control datepicker']) !!}
--}}
{!! Form::label("date", __('report.date'), ['class' => 'first-column']) !!}
{!! Form::hidden('from_date', isset($inputs['from_date'])?$inputs['from_date'] : '', ['id' => 'from_date']) !!} {!! Form::hidden('to_date', isset($inputs['to_date'])?$inputs['to_date'] : '', ['id' => 'to_date']) !!}
{{ Form::label('time', __('report.time'), ['class' => 'first-column']) }} {{ Form::text('', $inputs['from_time'] .'-'. $inputs['to_time'], ['class' => 'form-control', 'id' => 'start_end_time']) }} {!! Form::hidden('from_time', isset($inputs['from_time'])?$inputs['from_time'] : '', ['id' => 'from_time']) !!} {!! Form::hidden('to_time', isset($inputs['to_time'])?$inputs['to_time'] : '', ['id' => 'to_time']) !!}
@if(isSeller() < 1)
{!! Form::label("Stores", __('report.store')) !!} {!! Form::select("store_id[]", $stores, $inputs['store_id'] ?? "", [ 'class'=>'form-control select2', 'id' => 'store_id', 'multiple' => true, 'required' => true, 'data-actions-box'=>'true', 'data-width'=>'100%', 'data-route' => route('report.get-store-category')]) !!}
@endif
{!! Form::label("category[]", __('report.category'), ['class' => 'first-column']) !!} {!! Form::select('category[]', $categoryDropDown, (isset($inputs['category']) ? $inputs['category'] : []), [ 'class'=>'form-control select2 second-column', 'id' => 'category_id', 'multiple' => true, 'data-actions-box'=>'true', 'data-width'=>'100%', ]) !!}
{!! Form::submit(__('common.search'), ['class'=>'btn btn-primary btn_sub']) !!} {!! __('orders.reset') !!}
{!! Form::close() !!}
@if(isSeller() < 1)
{!! Form::open(array('route' =>[$route], 'method' => 'GET', 'class'=>'filter_form col-md-12')) !!}
{!! Form::label("Email(s)", __('report.email')) !!} {!! Form::select("email[]",[],null, ['class'=>'form-control select-2', 'required' => true,'multiple' => true]) !!} {!! Form::hidden('from_date', isset($inputs['from_date'])?$inputs['from_date'] : '', ['id' => 'from_date']) !!} {!! Form::hidden('to_date', isset($inputs['to_date'])?$inputs['to_date'] : '', ['id' => 'to_date']) !!} {!! Form::select("store_id[]", $stores, $inputs['store_id'] ?? "", ['class'=>'form-control hidden','multiple' => true]) !!} {!! Form::hidden("type", "email") !!} Eg : abc@domain.com, xyz@domain.com, etc
{!! Form::submit(__('report.send'), ['class'=>'btn btn-primary btn_sub']) !!}
{!! Form::close() !!}
{!! Form::open(array('route' =>['master-admin-settings.update-emails', masterCompanyId()], 'method' => 'POST', 'class'=>'filter_form col-md-12','id' => 'ajaxSave')) !!}
{!! Form::label("Email(s)", __('report.email_automatic')) !!} {!! Form::select("consolidated_report_emails[]",array_combine($reportEmailsList,$reportEmailsList),$reportEmailsList, ['class'=>'form-control select-2','required'=>true,'multiple'=>true]) !!} Eg : abc@domain.com, xyz@domain.com, etc
{!! Form::hidden('consolidated_product_sale', 1) !!}
{!! Form::submit(__('common.save'), ['class'=>'btn btn-primary btn_sub']) !!}
{!! Form::close() !!}
@endif
@if(count($result['category_items']) > 0) @endif
@include('admin.report.consolidated-product-sale-view')
@endsection @section('script') @endsection