@extends('layouts.app') @push('styles') @if (!is_null($viewEventPermission) && $viewEventPermission != 'none') @endif @endpush @section('content')
{{ now()->timezone($global->timezone)->format($global->time_format) }} @if (!is_null($currentClockIn)) @lang('app.clockInAt') - {{ $currentClockIn->clock_in_time->timezone($global->timezone)->format($global->time_format) }} @endif
@if (is_null($currentClockIn) && is_null($checkTodayLeave)) @endif @if (!is_null($currentClockIn) && is_null($currentClockIn->clock_out_time)) @endif{{ $user->employeeDetails->designation->name ?? '--' }}
@lang('app.employeeId') : {{ strtoupper($user->employeeDetails->employee_id) }}
@php $endTime = now(); $totalHours = $endTime->diff($myActiveTimer->start_time)->format('%d') * 24 + $endTime->diff($myActiveTimer->start_time)->format('%H'); $totalMinutes = $totalHours * 60 + $endTime->diff($myActiveTimer->start_time)->format('%i'); $totalMinutes = $totalMinutes - $myActiveTimer->breaks->sum('total_minutes'); $timeLog = intdiv($totalMinutes, 60) . ' ' . __('app.hrs') . ' '; if ($totalMinutes % 60 > 0) { $timeLog .= $totalMinutes % 60 . ' ' . __('app.mins'); } @endphp @lang('modules.timeLogs.totalHours'): {{ $timeLog }}
@lang('app.menu.notices')