@extends('layouts.app') @push('styles') @if (!is_null($viewEventPermission) && $viewEventPermission != 'none') @endif @endpush @section('content')
{!! now()->timezone(global_setting()->timezone)->format(global_setting()->time_format) . '' . now()->timezone(global_setting()->timezone)->format('l') . '' !!} @if (!is_null($currentClockIn)) @lang('app.clockInAt') - {{ $currentClockIn->clock_in_time->timezone(global_setting()->timezone)->format(global_setting()->time_format) }} @endif
@if (in_array('attendance', user_modules()) && $cannotLogin == false) @if (is_null($currentClockIn) && is_null($checkTodayLeave)) @endif @endif @if (!is_null($currentClockIn) && is_null($currentClockIn->clock_out_time)) @endif @if (in_array('admin', user_roles())) @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')
@foreach ($task->labels as $label) {{ $label->label_name }} @endforeach