@if (in_array('clients', $modules) && in_array('total_clients', $activeWidgets))
@endif
@if (in_array('employees', $modules) && in_array('total_employees', $activeWidgets))
@endif
@if (in_array('projects', $modules) && in_array('total_projects', $activeWidgets))
@endif
@if (in_array('invoices', $modules) && in_array('total_unpaid_invoices', $activeWidgets))
@endif
@if (in_array('timelogs', $modules) && in_array('total_hours_logged', $activeWidgets))
@endif
@if (in_array('tasks', $modules) && in_array('total_pending_tasks', $activeWidgets))
@endif
@if (in_array('attendance', $modules) && in_array('total_today_attendance', $activeWidgets))
@endif
@if (in_array('tickets', $modules) && in_array('total_unresolved_tickets', $activeWidgets))
@endif
@if (in_array('payments', $modules) && in_array('recent_earnings', $activeWidgets))
@endif
@if (in_array('timelogs', $modules) && in_array('timelogs', $activeWidgets))
@endif
@if (in_array('leaves', $modules) && in_array('settings_leaves', $activeWidgets))
@forelse ($leaves as $item)
|
{{ $item->leave_date->format($global->date_format) }} |
|
|
@empty
|
@endforelse
@endif
@if (in_array('tickets', $modules) && in_array('new_tickets', $activeWidgets))
@forelse ($newTickets as $item)
|
{{ ucfirst($item->subject) }}
{{ $item->requester->name }}
|
{{ $item->updated_at->format($global->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', $modules) && in_array('overdue_tasks', $activeWidgets))
@forelse ($pendingTasks as $task)
{{ $task->project->project_name ?? '' }}
|
@foreach ($task->users as $item)
@endforeach
|
@if(!is_null($task->due_date)) {{ $task->due_date->format($global->date_format) }} @else -- @endif |
|
@empty
|
@endforelse
@endif
@if (in_array('leads', $modules) && in_array('pending_follow_up', $activeWidgets))
@forelse ($pendingLeadFollowUps as $item)
{{ $item->company_name }}
|
{{ \Carbon\Carbon::parse($item->follow_up_date_past)->timezone($global->timezone)->format($global->date_format) }}
|
@if ($item->agent_id)
@endif
|
@empty
|
@endforelse
@endif
@if (in_array('projects', $modules) && in_array('project_activity_timeline', $activeWidgets))
@forelse($projectActivities as $key=>$activity)
@empty
@endforelse
@endif
@if (in_array('employees', $modules) && in_array('user_activity_timeline', $activeWidgets))
@forelse($userActivities as $key=>$activity)
@empty
@endforelse
@endif