@extends('layouts.app') @section('title', 'Dashboard') @section('content') @php $user = auth()->user(); $today = now()->toDateString(); $weekStart = now()->startOfWeek()->toDateString(); $monthStart = now()->startOfMonth()->toDateString(); @endphp
{{ ($reminders['show_creator'] ?? false) ? 'No team follow-ups in the next 7 days.' : 'No follow-ups in the next 7 days. Schedule one from a submission note.' }}
@else @if($reminders['today']->isNotEmpty())Overdue overview shows the latest 8 of {{ $reminders['overdue_total'] }} overdue (newest first). Header count is the full total.
@endif @endifNo submissions yet.
@endforelse| Lead | Project | Status | Updated by | When |
|---|---|---|---|---|
| {{ $row->visitor_name ?: ('#' . $row->id) }} | {{ $row->project->name ?? '—' }} | {!! lead_status_badge($row->lead_status_id) !!} | {{ $row->leadStatusUpdatedBy->name ?? '—' }} | {{ format_date($row->lead_status_updated_at) }} |
| No status changes in the last {{ $statusChanged['days'] }} days. | ||||
{{ \Carbon\Carbon::parse($stats['chart_daily']['from'])->format('d M Y') }} – {{ \Carbon\Carbon::parse($stats['chart_daily']['to'])->format('d M Y') }} · daily count (max 90 days)
| ID | Form | Visitor | Project | Status | Date |
|---|---|---|---|---|---|
| #{{ $row->id }} | {{ $row->form_name }} | {{ $row->visitor_name ?? '-' }} | {{ $row->project->name ?? '-' }} | {!! lead_status_badge($row->lead_status_id) !!} | {{ format_date($row->created_at) }} |
| No submissions yet | |||||
No data
@endforelseNo activity
@endforelse