@extends('layouts.main') @section('title', 'Dashboard Andalan') @section('css') @php $dashboardCssPath = public_path('assets/css/dashboard.css'); $dashboardCssVersion = file_exists($dashboardCssPath) ? filemtime($dashboardCssPath) : time(); $attendanceCssPath = public_path('assets/css/attendance.css'); $attendanceCssVersion = file_exists($attendanceCssPath) ? filemtime($attendanceCssPath) : time(); @endphp @if ($canManageProjects ?? false) @endif @endsection @section('content') @include('layouts.breadcrumb', [ 'title' => 'Project Management', 'current' => 'Projects', 'homeRoute' => 'dashboard', ]) @include('project_management.layouts.profile-index') @php $projectCards = collect($projectCards ?? []); $projectCompanyOptions = collect($projectCompanyOptions ?? []); $projectCityOptions = collect($projectCityOptions ?? []); $projectProvinceOptions = collect($projectProvinceOptions ?? []); $projectStaffOptions = collect($projectStaffOptions ?? []); @endphp
Projects
@if ($canManageProjects ?? false) @endif
@forelse ($projectCards as $projectCard)
{{ $projectCard['name'] }}
{{ $projectCard['client_name'] }}
@if ($canManageProjects ?? false) @endif

{{ $projectCard['description'] }}

Team
@forelse (collect($projectCard['team_members'] ?? [])->take(4) as $teamMember) @if (! empty($teamMember['avatar_url'])) {{ $teamMember['name'] ?? 'Staff' }} @else {{ $teamMember['fallback_label'] ?? 'S' }} @endif @empty {{ $projectCard['team_count'] }} Staff @endforelse @if ((int) ($projectCard['team_count'] ?? 0) > 4) +{{ (int) $projectCard['team_count'] - 4 }} @endif
Project Complete {{ $projectCard['completion_rate'] }}%
@empty
No active project found

Project cards appear after your employee is added as an active project member.

@endforelse
@if ($canManageProjects ?? false) @endif @endsection @section('script') @php $dashboardJsPath = public_path('assets/js/dashboard.js'); $dashboardJsVersion = file_exists($dashboardJsPath) ? filemtime($dashboardJsPath) : time(); @endphp @if ($canManageProjects ?? false) @endif @if ($canManageProjects ?? false) @endif @endsection