@extends('layouts.admin') @section('page-title') {{__('Manage Bulk Attendance')}} @endsection @push('script-page') @endpush @section('breadcrumb') @endsection {{--@section('action-btn')--}} {{--
--}} {{-- --}} {{--
--}} {{--@endsection--}} @section('content')
{{ Form::open(array('route' => array('attendanceemployee.bulkattendance'),'method'=>'get','id'=>'bulkattendance_filter')) }}
{{Form::label('date',__('Date'),['class'=>'form-label']) }} {{Form::date('date',isset($_GET['date'])?$_GET['date']:date('Y-m-d'),array('class'=>'month-btn form-control '))}}
{{ Form::label('branch', __('Branch'),['class'=>'form-label']) }} {{ Form::select('branch', $branch,isset($_GET['branch'])?$_GET['branch']:'', array('class' => 'form-control select','required')) }}
{{ Form::label('department', __('Department'),['class'=>'form-label']) }} {{ Form::select('department', $department,isset($_GET['department'])?$_GET['department']:'', array('class' => 'form-control select','required')) }}
{{ Form::close() }}
{{ Form::open(['route' => ['attendanceemployee.bulkattendance'], 'method' => 'post']) }}
@foreach ($employees as $employee) @php $attendance = $employee->present_status($employee->id, isset($_GET['date']) ? $_GET['date'] : date('Y-m-d')); @endphp @endforeach
{{ __('Employee Id') }} {{ __('Employee') }} {{ __('Branch') }} {{ __('Department') }}
{{ \Auth::user()->employeeIdFormat($employee->employee_id) }} {{ $employee->name }} {{ !empty($employee->branch) ? $employee->branch->name : '' }} {{ !empty($employee->department) ? $employee->department->name : '' }}
status == 'Present' ? 'checked' : '' }}>
{{ Form::submit(__('Update'), ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
@endsection @push('script-page') {{-- --}} @endpush