{{-- Topbar --}}
{{-- Content --}}

Projeler

Tüm aktif ve tamamlanmış projeleriniz

{{-- ✅ Başarı mesajı --}} @if(session('ok'))
{{ session('ok') }}
@endif {{-- View Toggle --}}
{{ count($projects ?? []) }} proje
{{-- Card View --}}
@forelse(($projects ?? []) as $p) @php $status = $p->status ?? 'active'; $priority = $p->priority ?? 'medium'; $statusBadge = match($status) { 'completed' => ['badge-success','Tamamlandı'], 'pending' => ['badge-warning','Beklemede'], 'delayed' => ['badge-danger','Gecikmiş'], default => ['badge-primary','Aktif'], }; $prioBadge = match($priority) { 'high' => ['badge-danger','Yüksek Öncelik'], 'low' => ['badge-success','Düşük Öncelik'], default => ['badge-warning','Orta Öncelik'], }; @endphp

{{ $p->name }}

{{ $p->description ?? '—' }}

{{ $statusBadge[1] }} {{ $prioBadge[1] }}
@if(!empty($p->due_date)) {{ \Carbon\Carbon::parse($p->due_date)->translatedFormat('d M Y') }} @else — @endif
@empty
Henüz proje yok.
@endforelse
{{-- Table View (şimdilik basit) --}}