@extends('layouts.app') @section('page-title', 'Projects') @section('page-heading', 'All Projects') @section('breadcrumbs') @endsection @section('content') @include('partials.messages') {{-- Active Project Display --}} @if(isset($currentActiveProject) && $currentActiveProject)
Active Project: {{ $currentActiveProject->name }} @if($currentActiveProject->description)
{{ Str::limit($currentActiveProject->description, 100) }} @endif
@csrf @method('DELETE')
@else
No active project selected. Select a project below to set it as active.
@endif
Projects
@if(auth()->user()->hasPermission('project.manage')) @lang('Create Project') @endif
@forelse($projects as $project) @empty @endforelse
Name Description Budget Start Date End Date Status Actions
{{ $project->name }} @if(isset($currentActiveProject) && $currentActiveProject && $currentActiveProject->id == $project->id) Active @endif {{ Str::limit($project->description, 60) }} {{ $project->budget ? number_format($project->budget) : '-' }} {{ $project->start_date->format('d M Y') }} {{ $project->end_date?->format('d M Y') ?? '-' }} {{ $project->is_active ? 'Active' : 'Inactive' }}
@lang('No projects found.')
{{ $projects->links() }}
@endsection