{{-- HEADER --}}
{{-- KPI STATS ROW 1 --}}
@hasleadsenabled @endhasleadsenabled @hasdealsenabled @endhasdealsenabled @hasdealsenabled @endhasdealsenabled @hasinvoicesenabled @endhasinvoicesenabled
{{-- KPI STATS ROW 2 --}}
@hasinvoicesenabled @endhasinvoicesenabled @hasquotesenabled @endhasquotesenabled @hasordersenabled @endhasordersenabled
{{-- CHARTS ROW 1: Revenue + Pipeline --}}
@hasinvoicesenabled
@endhasinvoicesenabled @hasdealsenabled
@endhasdealsenabled
{{-- CHARTS ROW 2: Leads vs Deals + Deal Status --}}
@hasleadsenabled
@endhasleadsenabled @hasdealsenabled
@endhasdealsenabled
{{-- BOTTOM ROW: Tasks + Activity --}}
{{-- Upcoming Tasks --}} @if($this->overdueTasksCount > 0) {{ $this->overdueTasksCount }} {{ strtolower(__('laravel-crm::lang.overdue')) }} {{ strtolower(__('laravel-crm::lang.tasks')) }} @endif @forelse($this->upcomingTasks as $task)
{{ $task->name }}
@if($task->taskable)
{{ class_basename($task->taskable_type) }}
@endif
{{ $task->due_at ? $task->due_at->diffForHumans() : '' }}
@empty
{{ ucfirst(__('laravel-crm::lang.no')) }} {{ strtolower(__('laravel-crm::lang.upcoming')) }} {{ strtolower(__('laravel-crm::lang.tasks')) }}
@endforelse @if(count($this->upcomingTasks) > 0) @endif
{{-- Recent Activity --}} @forelse($this->recentActivities as $activity)
@php $iconMap = [ 'created' => 'o-plus-circle', 'updated' => 'o-pencil', 'deleted' => 'o-trash', ]; $activityIcon = $iconMap[$activity->description ?? ''] ?? 'o-information-circle'; @endphp
@if($activity->causeable) {{ $activity->causeable->name ?? 'User' }} @else {{ ucfirst(__('laravel-crm::lang.system')) }} @endif {{ $activity->description ?? '' }} @if($activity->recordable) {{ class_basename($activity->recordable_type) }} @if(method_exists($activity->recordable, 'getTitle')) — {{ Str::limit($activity->recordable->getTitle(), 30) }} @elseif(isset($activity->recordable->title)) — {{ Str::limit($activity->recordable->title, 30) }} @elseif(isset($activity->recordable->name)) — {{ Str::limit($activity->recordable->name, 30) }} @endif @endif
{{ $activity->created_at->diffForHumans() }}
@empty
{{ ucfirst(__('laravel-crm::lang.no')) }} {{ strtolower(__('laravel-crm::lang.recent')) }} {{ strtolower(__('laravel-crm::lang.activity')) }}
@endforelse