@extends('layouts.default') @section('meta') Attendance | Workday Time Clock @endsection @section('styles') @endsection @section('content') @include('admin.modals.modal-add-attendance')

{{ __('Attendances') }} {{ __('View web clock') }}

{{ csrf_field() }}
@isset($ss) @if($ss->clock_comment == "on") @endif @endisset @isset($data) @foreach ($data as $d) @isset($ss) @if($ss->clock_comment == "on") @endif @endisset @endforeach @endisset
{{ __('Date') }} {{ __('Employee') }} {{ __('Time In') }} {{ __('Time Out') }} {{ __('Total Hours') }} {{ __('Status (In/Out)') }}Comment
{{ $d->date }} {{ $d->employee }} @php if($ss->time_format == 1) { echo e(date('h:i:s A', strtotime($d->timein))); } else { echo e(date('H:i:s', strtotime($d->timein))); } @endphp @isset($d->timeout) @php if($ss->time_format == 1) { echo e(date('h:i:s A', strtotime($d->timeout))); } else { echo e(date('H:i:s', strtotime($d->timeout))); } @endphp @endisset @isset($d->totalhours) @if($d->totalhours != null) @php if(stripos($d->totalhours, ".") === false) { $h = $d->totalhours; } else { $HM = explode('.', $d->totalhours); $h = $HM[0]; $m = $HM[1]; } @endphp @endif @if($d->totalhours != null) @if(stripos($d->totalhours, ".") === false) {{ $h }} hr @else {{ $h }} hr {{ $m }} mins @endif @endif @endisset @if($d->status_timein != null OR $d->status_timeout != null) {{ $d->status_timein }} / @isset($d->status_timeout) {{ $d->status_timeout }} @endisset @else {{ $d->status_timein }} @endif {{ $d->comment }}
@endsection @section('scripts') @endsection