@extends('admin.master') @section('content') @section('title','Employee Working Hour')
@yield('title')
@if(session()->has('success'))
 {{ session()->get('success') }}
@endif @if(session()->has('error'))
 {{ session()->get('error') }}
@endif

@if(isset($attendanceData)) {{ Form::open(array('route' => 'workHourApproval.store','id'=>'employeeAttendance')) }}
@if(nCount($attendanceData) > 0) @foreach($attendanceData as $value) @php if($value['approve_working_hour'] !='' && $value['approve_working_hour'] !='00:00'){ $totalWorkingHour = date('H:i', strtotime($value['approve_working_hour'])); $readonly = "readonly"; }else{ $totalWorkingHour = date('H:i', strtotime($value['workingHour'])); $readonly = ""; } $explodeValue = explode(":",$totalWorkingHour); $hour = $explodeValue[0]; $minutes = $explodeValue[1]; @endphp @endforeach @else @endif
S/L Fingerprint No. Employee Name In Time Out Time Total Working Hour Approve Hour Approve Minutes Status
1 {{$value['finger_id']}} {{$value['fullName']}}
@if($value['approve_working_hour'] !='' && $value['approve_working_hour'] !='00:00') Approved @else pending @endif
No data available
@if(nCount($attendanceData) > 0)
@endif {{ Form::close() }} @endif
@endsection