JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@extends('layouts.admin') @section('page-title') {{ __('Manage Attendance List') }} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('action-button') @endsection @section('content') @if (session('status')) @endif
{{ Form::open(['route' => ['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'), ['class' => 'month-btn form-control month-btn']) }}
{{ Form::label('date', __('Date'), ['class' => 'form-label']) }} {{ Form::date('date', isset($_GET['date']) ? $_GET['date'] : '', ['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'] : '', ['class' => 'form-control select branch_id', 'id' => 'branch_id']) }}
{{ Form::label('department', __('department'), ['class' => 'form-label']) }} {{ Form::select('department', $department, isset($_GET['department']) ? $_GET['department'] : '', ['class' => 'form-control select department_id', 'id' => 'department_id']) }}
{{--
{{ Form::label('department', __('Department'), ['class' => 'form-label']) }}
--}}
@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, ]) !!}
@endcan
@endsection