@extends($layout) @section('content') @props([ 'includeTitle' => true, 'allProjects' => [] ]) @php Use Leantime\Core\Frontcontroller; $currentUrlPath = BASE_URL . "/" . str_replace(".", "/", Frontcontroller::getCurrentRoute()); @endphp
{{ __("headline.project_hub") }}
This is your project hub. All the projects you are currently assigned to or have favorited are here. @if ($login::userIsAtLeast("manager"))

{!! __("menu.create_something_new") !!} @endif


{!! $tpl->displayNotification() !!} @if(is_array($allProjects) && count($allProjects) == 0) @endif
@if (count($clients) > 0) @endif @if (count($allProjects) == 0)

{{ __('notifications.not_assigned_to_any_project') }} @if($login::userIsAtLeast($roles::$manager))

{{ __('link.new_project') }} @endif
@endif ⭐ My Favorites
@php $hasFavorites = false; @endphp @foreach ($allProjects as $project) @if($project['isFavorite'] == true)
@include("projects::partials.projectCard", ["project" => $project, "type" => "detailed"])
@php $hasFavorites = true; @endphp @endif @endforeach @if($hasFavorites === false) You don't have any favorites. 😿 @endif
🗂️ All Assigned Projects
@foreach ($allProjects as $project) @if($project['isFavorite'] == false)
@include("projects::partials.projectCard", ["project" => $project, "type" => "detailed"])
@endif @endforeach
@endsection