@extends('layouts.seller') @section('content')
{!! Form::open(array('route' => 'seller.report.schedule-stats', 'method' => 'GET', 'class'=>'filter_form col-md-12')) !!}
{!! Form::label('group', __('report.employee_group')) !!} {!! Form::select('emp_group', $employeeGroups, (isset($_GET['emp_group'])?$_GET['emp_group']:''), ['class'=>'form-control select2']) !!}
{!! Form::label('emp_shift', __('report.shift_type')) !!} {!! Form::select('emp_shift', $shiftTypes, (isset($_GET['emp_shift'])?$_GET['emp_shift']:''), ['class'=>'form-control select2']) !!}
{!! Form::label('emp_id', __('report.employee')) !!} {!! Form::select('emp_id', $employees, (isset($_GET['emp_id'])?$_GET['emp_id']:''), ['class'=>'form-control select2']) !!}
{!! Form::label('month', __('report.month')) !!} {!! Form::select('month', getMonths(), $month, ['class'=>'form-control select2']) !!}
@php $years = getYears('2019', date('Y')); @endphp {!! Form::label('year', __('report.year')) !!} {!! Form::select('year', $years, $year, ['class'=>'form-control select2']) !!}
{!! Form::submit('Search', ['class'=>'form-control btn-primary btn_sub']) !!}
{!! Form::close() !!}
@if(isset($schedules) && count($schedules) > 0) @foreach($schedules as $i => $detail) @endforeach @else @endif
{{ __('common.sr-no')}} {{ __('report.date')}} {{ __('report.time')}} {{ __('report.employee')}} {{ __('report.employee_group')}} {{ __('report.shift_type')}} {{ __('report.is_approved')}}
{!! ++$i !!} {!! dateFormat($detail->start_dt, 'l, M d, Y') !!} {!! dateFormat($detail->start_dt, 'H:i') . ' - ' . dateFormat($detail->end_dt, 'H:i') !!} {!! $detail->first_name . ' ' . $detail->last_name !!} {!! $detail->group !!} {!! $detail->shift_type !!} {!! ($detail->is_approved == 1) ? "YES" : "No" !!}
{!! __('common.no_records') !!}
@endsection