@extends('layouts.app') @push('styles') @if ((!is_null($viewEventPermission) && $viewEventPermission != 'none') || (!is_null($viewHolidayPermission) && $viewHolidayPermission != 'none') || (!is_null($viewTaskPermission) && $viewTaskPermission != 'none') || (!is_null($viewTicketsPermission) && $viewTicketsPermission != 'none') || (!is_null($viewLeavePermission) && $viewLeavePermission != 'none') ) @endif @endpush @section('content')
@if (!is_null($checkTodayLeave))
@elseif (!is_null($checkTodayHoliday))
@endif @if(in_array('admin', user_roles()))
@include('dashboard.update-message-dashboard') {{-- Remove for versions above 5.2.4 --}} @include('dashboard.update-gateway-credentials')
@endif

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

{!! now()->timezone(company()->timezone)->format(company()->time_format) . '' . now()->timezone(company()->timezone)->format('l') . '' !!} @if (!is_null($currentClockIn)) @lang('app.clockInAt') - {{ $currentClockIn->clock_in_time->timezone(company()->timezone)->format(company()->time_format) }} @endif

@if (in_array('attendance', user_modules()) && $cannotLogin == false) @if (is_null($currentClockIn) && is_null($checkTodayLeave) && is_null($checkTodayHoliday)) @endif @endif @if (!is_null($currentClockIn) && is_null($currentClockIn->clock_out_time)) @endif @if (in_array('admin', user_roles()))
@endif
@if(count(array_intersect(['profile', 'shift_schedule', 'birthday', 'notices'], $activeWidgets)) > 0)
@if (in_array('profile', $activeWidgets))
Card image

{{ mb_ucfirst($user->name) }}

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

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

@endif @if (!is_null($myActiveTimer))
{{ $myActiveTimer->start_time->timezone(company()->timezone)->format('M d, Y' . ' - ' . company()->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(company()->timezone)->format(company()->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(company()->timezone)->format(company()->time_format) . ' - ' . $item->end_time->timezone(company()->timezone)->format(company()->time_format) }} @else @lang('modules.timeLogs.break') {{ $item->start_time->timezone(company()->timezone)->format(company()->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 @if (in_array('attendance', user_modules()) && in_array('shift_schedule', $activeWidgets))
@lang('modules.attendance.shift') @foreach ($currentWeekDates as $key => $weekDate) @if (isset($weekShifts[$key])) {{ $weekDate->format(company()->date_format) }} {{ __('app.'.strtolower($weekDate->format('l'))) }} @if (isset($weekShifts[$key]->shift)) {{ $weekShifts[$key]->shift->shift_name }} @if (!is_null($weekShifts[$key]->remarks) && $weekShifts[$key]->remarks != '') @endif @else {!! $weekShifts[$key] !!} @endif @if (isset($weekShifts[$key]->shift)) @if (attendance_setting()->allow_shift_change && !$weekDate->isPast()) @if (!is_null($weekShifts[$key]->requestChange) && $weekShifts[$key]->requestChange->status == 'waiting') @else @endif @else -- @endif @else -- @endif @endif @endforeach
@endif @include('dashboard.employee.widgets.birthday') @include('dashboard.employee.widgets.appreciation') @include('dashboard.employee.widgets.leave') @include('dashboard.employee.widgets.work_from_home') @include('dashboard.employee.widgets.work_anniversary') @include('dashboard.employee.widgets.notice-period') @include('dashboard.employee.widgets.probation') @include('dashboard.employee.widgets.internship') @include('dashboard.employee.widgets.contract')
@endif
@if (in_array('tasks', $activeWidgets)) @endif @if (in_array('projects', $activeWidgets)) @endif @if (in_array('lead', $activeWidgets) && $leadAgent) @endif @if (in_array('week_timelog', $activeWidgets))
@lang('modules.dashboard.weekTimelog') {{ minute_to_hour($weekWiseTimelogs - $weekWiseTimelogBreak) . ' ' . __('modules.timeLogs.thisWeek') }}
@php $totalDayMinutes = $dateWiseTimelogs->sum('total_minutes'); $totalDayBreakMinutes = $dateWiseTimelogBreak->sum('total_minutes'); $totalDayMinutesPercent = ($totalDayMinutes > 0) ? floatval((floatval($totalDayMinutes - $totalDayBreakMinutes)/$totalDayMinutes) * 100) : 0; @endphp
@lang('app.duration'): {{ minute_to_hour($dateWiseTimelogs->sum('total_minutes') - $dateWiseTimelogBreak->sum('total_minutes')) }} @lang('modules.timeLogs.break'): {{ minute_to_hour($dateWiseTimelogBreak->sum('total_minutes')) }}
@endif
@if (in_array('my_task', $activeWidgets))
@lang('app.task')# @lang('app.task') @lang('app.status') @lang('app.dueDate') @forelse ($pendingTasks as $task) #{{ $task->task_short_code }}
{{ ucfirst($task->heading) }}

@foreach ($task->labels as $label) {{ $label->label_name }} @endforeach

{{ $task->boardColumn->column_name }} @if (is_null($task->due_date)) -- @elseif ($task->due_date->endOfDay()->isPast()) {{ $task->due_date->format(company()->date_format) }} @elseif ($task->due_date->setTimezone(company()->timezone)->isToday()) {{ __('app.today') }} @else {{ $task->due_date->format(company()->date_format) }} @endif @empty @endforelse
@endif @if (in_array('ticket', $activeWidgets))
@lang('modules.module.tickets')# @lang('modules.tickets.ticketSubject') @lang('app.status') @lang('modules.tickets.requestedOn') @forelse ($tickets as $ticket) #{{ $ticket->id }} @if( $ticket->status == 'open') @else @endif {{ ucfirst($ticket->status) }} {{ $ticket->updated_at->format(company()->date_format) }} @empty @endforelse
@endif @if (in_array('my_calender', $activeWidgets))
@endif @if (in_array('notices', $activeWidgets)) @isset($notices)

@lang('app.menu.notices')

@foreach ($notices as $notice) @endforeach
@endisset @endif
@endsection @push('scripts') @if ((!is_null($viewEventPermission) && $viewEventPermission != 'none') || (!is_null($viewHolidayPermission) && $viewHolidayPermission != 'none') || (!is_null($viewTaskPermission) && $viewTaskPermission != 'none') || (!is_null($viewTicketsPermission) && $viewTicketsPermission != 'none') || (!is_null($viewLeavePermission) && $viewLeavePermission != 'none') ) @endif @if (attendance_setting()->radius_check == 'yes' || attendance_setting()->save_current_location) @endif @endpush