@extends('layouts.admin') @section('page-title') {{__('Manage Attendance List')}} @endsection @push('script-page') @endpush @section('breadcrumb') @endsection {{--@section('action-btn')--}} {{--
--}} {{-- --}} {{--
--}} {{--@endsection--}} @section('content')
{{ Form::open(array('route' => array('attendanceemployee.index'),'method'=>'get','id'=>'attendanceemployee_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']:'', array('class' => 'form-control month-btn')) }}
@if(\Auth::user()->type != 'employee')
{{ Form::label('branch', __('Branch'),['class'=>'form-label'])}} {{ Form::select('branch', $branch,isset($_GET['branch'])?$_GET['branch']:'', array('class' => 'form-control select')) }}
{{ Form::label('department', __('Department'),['class'=>'form-label'])}} {{ Form::select('department', $department,isset($_GET['department'])?$_GET['department']:'', array('class' => 'form-control select')) }}
@endif
{{ Form::close() }}
@if(\Auth::user()->type!='employee') @endif @if(Gate::check('edit attendance') || Gate::check('delete attendance')) @endif @foreach ($attendanceEmployee as $attendance) @if(\Auth::user()->type!='employee') @endif @if(Gate::check('edit attendance') || Gate::check('delete attendance')) @endif @endforeach
{{__('Employee')}}{{__('Date')}} {{__('Status')}} {{__('Clock In')}} {{__('Clock Out')}} {{__('Late')}} {{__('Early Leaving')}} {{__('Overtime')}}{{__('Action')}}
{{!empty($attendance->employee)?$attendance->employee->name:'' }}{{ \Auth::user()->dateFormat($attendance->date) }} {{ $attendance->status }} {{ ($attendance->clock_in !='00:00:00') ?\Auth::user()->timeFormat( $attendance->clock_in):'00:00' }} {{ ($attendance->clock_out !='00:00:00') ?\Auth::user()->timeFormat( $attendance->clock_out):'00:00' }} {{ $attendance->late }} {{ $attendance->early_leaving }} {{ $attendance->overtime }} @can('edit attendance') @endcan @can('delete attendance')
{!! Form::open(['method' => 'DELETE', 'route' => ['attendanceemployee.destroy', $attendance->id],'id'=>'delete-form-'.$attendance->id]) !!} {!! Form::close() !!}
@endif
@endsection @push('script-page') @endpush