@extends('layouts.app') @push('styles') @if (!is_null($viewEventPermission) && $viewEventPermission != 'none') @endif @endpush @section('content')

@lang('app.welcome') {{ $user->name }}

@if (in_array('attendance', user_modules()))

{{ 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
@endif
Card image

{{ $user->name }}

{{ $user->employeeDetails->designation->name ?? '--' }}

@lang('app.employeeId') : {{ strtoupper($user->employeeDetails->employee_id) }}

@forelse ($birthday as $totalBirthday) {{ $totalBirthday->employeeDetail->date_of_birth->format('d') }} {{ $totalBirthday->employeeDetail->date_of_birth->format('M') }} @php $currentYear = \Carbon\Carbon::now()->year; $dateBirth = $totalBirthday->employeeDetail->date_of_birth->format($currentYear.'-m-d'); $dateBirth = \Carbon\Carbon::parse($dateBirth); $date1 = \Carbon\Carbon::now(); $date1 = strtotime($date1); $date2 = strtotime($dateBirth); $diff = $date2 - $date1; $diff_in_days = floor($diff/(60*60*24)) + 1; @endphp @if($diff_in_days == 0) @lang('app.today') @else @lang('modules.dashboard.inDays', ['days' => $diff_in_days]) @endif @empty @endforelse
@if (!is_null($myActiveTimer))
{{ $myActiveTimer->start_time->timezone($global->timezone)->format('M d, Y' . ' - ' . $global->time_format) }}

@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('modules.timeLogs.startTime') {{ $myActiveTimer->start_time->timezone($global->timezone)->format($global->time_format) }}
  • @lang('app.task') {{ $myActiveTimer->task->heading }}
  • @foreach ($myActiveTimer->breaks as $item)
  • @if (!is_null($item->end_time)) @php $endTime = $item->end_time; $totalHours = $endTime->diff($item->start_time)->format('%d') * 24 + $endTime->diff($item->start_time)->format('%H'); $totalMinutes = $totalHours * 60 + $endTime->diff($item->start_time)->format('%i'); $timeLog = intdiv($totalMinutes, 60) . ' ' . __('app.hrs') . ' '; if ($totalMinutes % 60 > 0) { $timeLog .= $totalMinutes % 60 . ' ' . __('app.mins'); } @endphp @lang('modules.timeLogs.break') ({{ $timeLog }}) {{ $item->start_time->timezone($global->timezone)->format($global->time_format) . ' - ' . $item->end_time->timezone($global->timezone)->format($global->time_format) }} @else @lang('modules.timeLogs.break') {{ $item->start_time->timezone($global->timezone)->format($global->time_format) }} @endif
  • @endforeach
@if ( $editTimelogPermission == 'all' || ($editTimelogPermission == 'added' && $myActiveTimer->added_by == user()->id) || ($editTimelogPermission == 'owned' && (($myActiveTimer->project && $myActiveTimer->project->client_id == user()->id) || $myActiveTimer->user_id == user()->id) ) || ($editTimelogPermission == 'both' && (($myActiveTimer->project && $myActiveTimer->project->client_id == user()->id) || $myActiveTimer->user_id == user()->id || $myActiveTimer->added_by == user()->id)) ) @if (is_null($myActiveTimer->activeBreak)) @lang('modules.timeLogs.pauseTimer') @lang('modules.timeLogs.stopTimer') @else @lang('modules.timeLogs.resumeTimer') @endif @endif
@endif @isset($notices)

@lang('app.menu.notices')

@foreach ($notices as $notice) @endforeach
@endisset
@if (!is_null($viewEventPermission) && $viewEventPermission != 'none')
@endif
@endsection @push('scripts') @if (!is_null($viewEventPermission) && $viewEventPermission != 'none') @endif @endpush