@extends('layouts.app') @section('title', $task->title) @section('content')

{{ $task->title }}

Görev Detayları

@can('update', $task) @endcan
@if(session('success'))

{{ session('success') }}

@endif

Görev Bilgileri

@if($task->description)
Açıklama
{{ $task->description }}
@endif
Durum
@php $statusLabels = [ 'todo' => ['text' => 'Yapılacak', 'class' => 'bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-300'], 'in_progress' => ['text' => 'Devam Ediyor', 'class' => 'bg-blue-100 dark:bg-blue-900/30 text-blue-800 dark:text-blue-300'], 'review' => ['text' => 'İncelemede', 'class' => 'bg-yellow-100 dark:bg-yellow-900/30 text-yellow-800 dark:text-yellow-300'], 'done' => ['text' => 'Tamamlandı', 'class' => 'bg-green-100 dark:bg-green-900/30 text-green-800 dark:text-green-300'], 'cancelled' => ['text' => 'İptal Edildi', 'class' => 'bg-red-100 dark:bg-red-900/30 text-red-800 dark:text-red-300'], ]; $status = $statusLabels[$task->status] ?? $statusLabels['todo']; @endphp {{ $status['text'] }}
Öncelik
@php $priorityLabels = [ 'low' => ['text' => 'Düşük', 'class' => 'bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-300'], 'medium' => ['text' => 'Orta', 'class' => 'bg-blue-100 dark:bg-blue-900/30 text-blue-800 dark:text-blue-300'], 'high' => ['text' => 'Yüksek', 'class' => 'bg-orange-100 dark:bg-orange-900/30 text-orange-800 dark:text-orange-300'], 'urgent' => ['text' => 'Acil', 'class' => 'bg-red-100 dark:bg-red-900/30 text-red-800 dark:text-red-300'], ]; $priority = $priorityLabels[$task->priority] ?? $priorityLabels['medium']; @endphp {{ $priority['text'] }}
@if($task->due_date)
Bitiş Tarihi
{{ $task->due_date->format('d.m.Y') }} @if($task->isOverdue()) Süresi Dolmuş @endif
@endif @if($task->completed_at)
Tamamlanma Tarihi
{{ $task->completed_at->format('d.m.Y H:i') }}
@endif
@if($task->estimated_hours || $task->actual_hours)
@if($task->estimated_hours)
Tahmini Süre
{{ $task->estimated_hours }} saat
@endif @if($task->actual_hours)
Gerçek Süre
{{ $task->actual_hours }} saat
@endif
@endif @if($task->tags && count($task->tags) > 0)
Etiketler
@foreach($task->tags as $tag) {{ $tag }} @endforeach
@endif

Zaman Bilgileri

Oluşturulma {{ $task->created_at->format('d.m.Y H:i') }}
Son Güncelleme {{ $task->updated_at->format('d.m.Y H:i') }}

Atanan Kullanıcı

@if($task->assignee)
{{ strtoupper(substr($task->assignee->name, 0, 1)) }}

{{ $task->assignee->name }}

{{ $task->assignee->email }}

@else

Atanmamış

@endif

Oluşturan

@if($task->creator)
{{ strtoupper(substr($task->creator->name, 0, 1)) }}

{{ $task->creator->name }}

{{ $task->creator->email }}

@else

Bilinmiyor

@endif
@if($task->category)

Kategori

{{ $task->category->name }}
@endif @if($task->site)

Site

{{ $task->site->name }}

{{ $task->site->url }}

@endif
@endsection