@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'])?$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())
{!! Form::label('store_ids', __('report.store'), ['class' => 'first-column']) !!} {!! Form::select('store_ids[]', $stores, isset($inputs['store_ids']) ? $inputs['store_ids'] : [], [ 'class' => 'form-control select2 second-column', 'id' => 'store_ids', 'multiple' => true, 'data-actions-box' => 'true', 'data-width' => '100%', ]) !!}
@endif
{!! Form::label('income_type', __('report.income_type'), ['class' => 'first-column']) !!} {!! Form::select( 'income_type', [1 => 'Brutto Income', 2 => 'Netto Income'], isset($inputs['income_type']) ? $inputs['income_type'] : '', ['class' => 'form-control select2 second-column'], ) !!}
{!! 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('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') !!}
{!! Form::close() !!} @if (!isset($inputs['is_download']) && (isset($listData) && count($listData) > 0)) @php $extraFilters = [ 'from_date' => $inputs['from_date'], 'to_date' => $inputs['to_date'], 'from_time' => $inputs['from_time'], 'to_time' => $inputs['to_time'], ]; @endphp @endif
@include('admin.report.store-hourly-income-view')
@if (isset($listData) && count($listData) > 0)
@endif
@if (!isset($inputs['is_download']) && (isset($weekData) && count($weekData) > 0)) @endif
@include('admin.report.store-weekly-income-view')
@endsection @section('script') @endsection