@extends('admin.adminlayouts.adminlayout') @section('head') {!! HTML::style("assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css") !!} {!! HTML::style("assets/global/plugins/bootstrap-datepicker/css/datepicker3.css") !!} @stop @section('mainarea')

Edit Attendance

{{--INCLUDE ERROR MESSAGE BOX--}} @include('admin.common.error') {{--END ERROR MESSAGE BOX--}}
{!! Form::open(['route'=>["admin.attendances.create"],'class'=>'form-horizontal','method'=>'GET']) !!}
{!! Form::close() !!}

@if(isset($todays_holidays->date)) Holiday, {{ date('d M Y', strtotime($todays_holidays->date)) }} @else Mark Attendance @endif
@if(isset($todays_holidays->date))

{{ date('D', strtotime($todays_holidays->date)) }}

Holiday on the occasion of {{ $todays_holidays->occassion }}

@elseif(count($employees) == 0)

Employees Missing

Please add some employees to the database


@else

Date {{ date('d-M-Y', strtotime($date)) }}



@foreach($employees as $employee) {!! Form::open(['route'=>["admin.attendances.update", $date],'class'=>'form-horizontal','method'=>'PATCH']) !!}
employeeID]['status']) && $attendanceArray[$employee->employeeID]['status'] == 'present' ? 'checked' : '' }}>
employeeID]['wfh']) && $attendanceArray[$employee->employeeID]['wfh'] ? 'checked' : '' }}>
{!! Form::close() !!} @endforeach
@endif
@stop @section('footerjs') {!! HTML::script("https://cdnjs.cloudflare.com/ajax/libs/corejs-typeahead/1.3.1/typeahead.bundle.min.js") !!} {!! HTML::script("assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js") !!} {!! HTML::script("assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js") !!} {!! HTML::script("assets/admin/pages/scripts/components-pickers.js") !!} @stop