@extends('layouts.app') @section('title', 'Pazarlama Kart Detayi') @section('content') @php $status = strtolower(trim((string) ($task->status ?? 'todo'))); $priority = strtolower(trim((string) ($task->priority ?? 'normal'))); $statusMap = [ 'todo' => ['label' => 'To Do', 'class' => 'bg-secondary-subtle text-secondary-emphasis border border-secondary-subtle'], 'active' => ['label' => 'In Progress', 'class' => 'bg-warning-subtle text-warning-emphasis border border-warning-subtle'], 'done' => ['label' => 'Done', 'class' => 'bg-success-subtle text-success-emphasis border border-success-subtle'], ]; $priorityMap = [ 'low' => ['label' => 'Low', 'class' => 'bg-info'], 'normal' => ['label' => 'Normal', 'class' => 'bg-secondary'], 'high' => ['label' => 'High', 'class' => 'bg-warning text-dark'], 'critical' => ['label' => 'Critical', 'class' => 'bg-danger'], ]; $statusCfg = $statusMap[$status] ?? $statusMap['todo']; $priorityCfg = $priorityMap[$priority] ?? $priorityMap['normal']; $projectColor = trim((string) ($task->project_color ?? '')); $projectStyle = $projectColor !== '' ? 'background-color:' . e($projectColor) . ';color:#fff;' : ''; $progress = isset($detailData['progress_percent']) && $detailData['progress_percent'] !== null ? max(0, min(100, (int) $detailData['progress_percent'])) : 0; @endphp
Board {{ $statusCfg['label'] }} {{ $priorityCfg['label'] }} {{ $task->project_name }}
@if ($canManage)
@csrf
@endif
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif

{{ $task->title }}

Oluşturan: {{ $task->creator_name ?: '-' }} | Sorumlu: {{ $task->owner_name ?: '-' }} | Oluşturma: {{ \Carbon\Carbon::parse($task->created_at)->format('d.m.Y H:i') }}
{{ $task->description ?: 'Açıklama girilmemis.' }}
@if ($canManage)
Kart Durumu ve Atama
@csrf
Kurumsal Kart Detaylari
@csrf
@php $channel = (string) ($detailData['channel'] ?? ''); @endphp
Aktivite Ekle
@csrf
Maks 10 MB
@endif
Ilerleme
%{{ $progress }}
Aktivite Gecmisi
{{ $activities->count() }} kayıt
@forelse ($activities as $activity) @php $aType = strtolower(trim((string) ($activity->activity_type ?? 'note'))); $aColor = match ($aType) { 'created' => 'primary', 'status_change' => 'warning', 'detail_update' => 'info', 'risk' => 'danger', 'decision' => 'success', 'document' => 'secondary', 'deleted' => 'dark', default => 'secondary', }; @endphp
{{ strtoupper($aType) }}
{{ $activity->title ?: 'Aktivite' }}
{{ $activity->user_name ?: 'Sistem' }} | {{ \Carbon\Carbon::parse($activity->created_at)->format('d.m.Y H:i') }}
@if (!empty($activity->message))
{{ $activity->message }}
@endif @if (!empty($activity->attachment_path)) @endif
@empty
Heniz aktivite kaydı yok.
@endforelse
@endsection @push('styles') @endpush @push('modals') @endpush @push('scripts') @endpush