@extends('layouts.personal') @section('meta') My Dashboard | Workday Time Clock @endsection @section('content')

{{ __("Dashboard") }}

{{ __("Attendance (Current Month)") }}
{{ __("Late Arrivals") }} @isset($la) {{ $la }} @endisset
{{ __("Early Departures") }} @isset($ed) {{ $ed }} @endisset
{{ __("Present Schedule") }}
{{ __("Time") }} @isset($cs) @php if ($cs->intime != null && $cs->outime != null) { if ($tf == 1) { echo e(date("h:i A", strtotime($cs->intime))); echo e(" - "); echo e(date("h:i A", strtotime($cs->outime))); } else { echo e(date("H:i", strtotime($cs->intime))); echo e(" - "); echo e(date("H:i", strtotime($cs->outime))); } } @endphp @endisset
{{ __("Rest Days") }} @isset($cs->restday) {{ $cs->restday }} @endisset
{{ __("Leaves of Absence") }}
{{ __("Approved") }} @isset($al){{ $al }}@endisset
{{ __("Pending") }} @isset($pl){{ $pl }}@endisset

{{ __("Recent Attendances") }}

@isset($a) @foreach($a as $v) @if($v->timein != '' && $v->timeout == '') @endif @if($v->timein != '' && $v->timeout != '') @endif @if($v->timein != '' && $v->timeout != '') @endif @endforeach @endisset
{{ __("Date") }} {{ __("Time") }} {{ __("Description") }}
@php echo e(date('M d, Y', strtotime($v->date))); @endphp @php if($tf == 1) { echo e(date("h:i:s A", strtotime($v->timein))); } else { echo e(date("H:i:s", strtotime($v->timein))); } @endphp Time-In
@php echo e(date('M d, Y', strtotime($v->date))); @endphp @php if($tf == 1) { echo e(date("h:i:s A", strtotime($v->timeout))); } else { echo e(date("H:i:s", strtotime($v->timeout))); } @endphp Time-Out
@php echo e(date('M d, Y', strtotime($v->date))); @endphp @php if($tf == 1) { echo e(date("h:i:s A", strtotime($v->timein))); } else { echo e(date("H:i:s", strtotime($v->timein))); } @endphp Time-In

{{ __("Previous Schedules") }}

@isset($ps) @foreach($ps as $s) @endforeach @endisset
{{ __("Time") }} {{ __("From Date / Until") }}
@php if ($s->intime != null && $s->outime != null) { if ($tf == 1) { echo e(date("h:i A", strtotime($s->intime))); echo e(" - "); echo e(date("h:i A", strtotime($s->outime))); } else { echo e(date("H:i", strtotime($s->intime))); echo e(" - "); echo e(date("H:i", strtotime($s->outime))); } } @endphp @php echo e(date('M d',strtotime($s->datefrom)).' - '.date('M d, Y',strtotime($s->dateto))); @endphp

{{ __("Recent Leaves of Absence") }}

@isset($ald) @foreach($ald as $l) @endforeach @endisset
{{ __("Description") }} {{ __("Date") }}
{{ $l->type }} @php $fd = date('M', strtotime($l->leavefrom)); $td = date('M', strtotime($l->leaveto)); if($fd == $td){ $var = date('M d', strtotime($l->leavefrom)) .' - '. date('d, Y', strtotime($l->leaveto)); } else { $var = date('M d', strtotime($l->leavefrom)) .' - '. date('M d, Y', strtotime($l->leaveto)); } @endphp {{ $var }}
@endsection