@if (in_array('clients', user_modules()) && in_array('total_clients', $activeWidgets))
@endif @if (in_array('employees', user_modules()) && in_array('total_employees', $activeWidgets))
@endif @if (in_array('projects', user_modules()) && in_array('total_projects', $activeWidgets))
@endif @if (in_array('invoices', user_modules()) && in_array('total_unpaid_invoices', $activeWidgets))
@endif @if (in_array('timelogs', user_modules()) && in_array('total_hours_logged', $activeWidgets))
@endif @if (in_array('tasks', user_modules()) && in_array('total_pending_tasks', $activeWidgets))
@endif @if (in_array('attendance', user_modules()) && in_array('total_today_attendance', $activeWidgets))
@endif @if (in_array('tickets', user_modules()) && in_array('total_unresolved_tickets', $activeWidgets))
@endif
@if (in_array('payments', user_modules()) && in_array('recent_earnings', $activeWidgets))
@endif @if (in_array('timelogs', user_modules()) && in_array('timelogs', $activeWidgets))
@endif @if (in_array('leaves', user_modules()) && in_array('settings_leaves', $activeWidgets))
@forelse ($leaves as $item) {{ $item->leave_date->translatedFormat(company()->date_format) }} @empty @endforelse
@endif @if (in_array('tickets', user_modules()) && in_array('new_tickets', $activeWidgets))
@forelse ($newTickets as $item)
{{ $item->requester->name }}
{{ ucfirst($item->subject) }}
{{ $item->requester->name }} {{ $item->updated_at->translatedFormat(company()->date_format) }} @php if ($item->priority == 'low') { $priority = 'dark-green'; } elseif ($item->priority == 'medium') { $priority = 'blue'; } elseif ($item->priority == 'high') { $priority = 'yellow'; } elseif ($item->priority == 'urgent') { $priority = 'red'; } @endphp @empty @endforelse
@endif @if (in_array('tasks', user_modules()) && in_array('overdue_tasks', $activeWidgets))
@forelse ($pendingTasks as $task)
{{ $task->heading }}
{{ $task->project->project_name ?? '' }}
@foreach ($task->users as $item) @endforeach @if(!is_null($task->due_date)) {{ $task->due_date->translatedFormat(company()->date_format) }} @else -- @endif @empty @endforelse
@endif @if (in_array('leads', user_modules()) && in_array('pending_follow_up', $activeWidgets))
@forelse ($pendingLeadFollowUps as $item)
{{ $item->client_name }}
{{ $item->company_name }}
{{ \Carbon\Carbon::parse($item->follow_up_date_past)->timezone(company()->timezone)->translatedFormat(company()->date_format) }} @if ($item->agent_id) @endif @empty @endforelse
@endif @if (in_array('projects', user_modules()) && in_array('project_activity_timeline', $activeWidgets))
@forelse($projectActivities as $key=>$activity)

{!! __($activity->activity) !!}

{{ mb_ucwords($activity->project->project_name) }}
{{ $activity->created_at->timezone(company()->timezone)->translatedFormat(company()->time_format) }}

@empty
@endforelse
@endif @if (in_array('employees', user_modules()) && in_array('user_activity_timeline', $activeWidgets))
@forelse($userActivities as $key=>$activity)

{!! __($activity->activity) !!}

{{ mb_ucwords($activity->user->name) }}
{{ $activity->created_at->timezone(company()->timezone)->translatedFormat(company()->time_format) }}

@empty
@endforelse
@endif