@extends('layouts.main') @section('page-title') {{ __('Manage Attendance List') }} @endsection @section('page-breadcrumb') {{ __('Attendance') }} @endsection @section('page-action')
@can('attendance import') @endcan @can('attendance create') @endcan
@endsection @section('content')
{{ Form::open(array('route' => array('attendance.index'),'method'=>'get','id'=>'attendance_filter')) }}

{{Form::label('month',__('Month'),['class'=>'form-label'])}} {{Form::month('month',isset($_GET['month'])?$_GET['month']:date('Y-m'),array('class'=>'month-btn form-control month-btn'))}}
{{ Form::label('date', __('Date'),['class'=>'form-label'])}} {!! Form::date('date', isset($_GET['date'])?$_GET['date']:null, ['class' => 'form-control ','placeholder'=>"Select Date"]) !!}
@if(in_array(Auth::user()->type, Auth::user()->not_emp_type))
{{ Form::label('branch', !empty(company_setting('hrm_branch_name')) ? company_setting('hrm_branch_name') : __('Branch'),['class'=>'form-label'])}} {{ Form::select('branch', $branch,isset($_GET['branch'])?$_GET['branch']:'', array('class' => 'form-control')) }}
{{ Form::label('department', !empty(company_setting('hrm_department_name')) ? company_setting('hrm_department_name') : __('Department'),['class'=>'form-label'])}} {{ Form::select('department', $department,isset($_GET['department'])?$_GET['department']:'', array('class' => 'form-control select')) }}
@endif
{{ Form::close() }}
@if (Gate::check('attendance create') || Gate::check('attendance edit') ) @endif @if (Gate::check('attendance edit') || Gate::check('attendance delete')) @endif @foreach ($attendances as $attendance) @if (Gate::check('attendance create') || Gate::check('attendance edit')) @endif @endforeach
{{ __('Employee') }}{{ __('Date') }} {{ __('Status') }} {{ __('Clock In') }} {{ __('Clock Out') }} {{ __('Late') }} {{ __('Early Leaving') }} {{ __('Overtime') }}{{ __('Action') }}
{{ !empty($attendance->employees) ? $attendance->employees->name : '' }}{{ company_date_formate($attendance->date) }} {{ $attendance->status }} {{ $attendance->clock_in != '00:00:00' ? $attendance->clock_in : '00:00' }} {{ $attendance->clock_out != '00:00:00' ? $attendance->clock_out : '00:00' }} {{ $attendance->late }} {{ $attendance->early_leaving }} {{ $attendance->overtime }} @if (Gate::check('attendance edit') || Gate::check('attendance delete')) @can('attendance edit') @endcan @can('attendance delete')
{{Form::open(array('route'=>array('attendance.destroy', $attendance->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan
@endif
@endsection @push('scripts') @endpush