@extends('hr_main') @section('title', '| Attendance Report') @section('content')

Branch Wise Employee Attendance Report

{!! Form::open(array('url' => './report/branch-wise-employee-report', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'filterFormId', 'method'=>'get')) !!}
{!! Form::label('branchName', 'Branch Name : ', ['class' => 'control-label']) !!} {!! Form::select('branch_id_fk', $branchList, request()->get("branch_id_fk"), ['class' => 'form-control', 'id' => 'branch_id_fk', 'name' => 'branch_id_fk', 'required'=>'true','autocomplete'=>'off']) !!}
{!! Form::label('Employee', 'Employee : ', ['class' => 'control-label']) !!} {!! Form::select('employee_id',$employeeList, request()->get("employee_id"), ['class' => 'form-control select2', 'id' => 'employee_id', 'name' => 'employee_id', 'required'=>'true','autocomplete'=>'off']) !!}
{!! Form::label('fromDate', 'From Date : ', ['class' => 'control-label']) !!}
{!! Form::label('toDate', 'To Date : ', ['class' => 'control-label']) !!}
{!! Form::close() !!}
@if(request()->get("branch_id_fk"))

Name : {{$attendenceReportEmp->emp_name_english??'Not Found'}}
ID : {{$attendenceReportEmp->emp_id??'Not Found'}}
Designation : {{$attendenceReportEmp->name??'Not Found'}}
Start Date: {{date('d-M-y',strtotime($data['startDate']))}} to End Date: {{date('d-M-y',strtotime($data['endDate']))}}

@foreach ($attendenceReport as $key => $attendenceReports) @endforeach
SL Emp. No Emp. Name Date In Time Out Time Status
{{$loop->iteration}} {{$attendenceReports->emp_id}} {{$attendenceReports->emp_name_english}} {{date('d-M-y',strtotime($attendenceReports->date))}} {{date('h:i A',strtotime($attendenceReports->first_in))}} @if($attendenceReports->last_out !== "00:00:00") {{date('h:i A',strtotime($attendenceReports->last_out))}} @else -- @endif Present
@endif
@endsection