@extends($layout) @section('content') @props([ 'includeTitle' => true, 'allProjects' => [] ])
{{ __("headline.project_hub") }}
{{ __("text.project_hub_intro") }} @if ($login::userIsAtLeast("manager"))

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


@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)
{{ __("text.no_favorites") }}
@endif
{{ __("text.all_assigned_projects") }}
@foreach ($allProjects as $project) @if($project['isFavorite'] == false)
@include("projects::partials.projectCard", ["project" => $project, "type" => "detailed"])
@endif @endforeach
@endsection