<div class="border rounded p-2 mb-2 {{ $task->isOverdue() ? 'border-danger' : '' }}">
    <div class="d-flex justify-content-between gap-2">
        <strong class="small">{{ $task->title }}</strong>
        <span class="badge {{ $task->priorityBadgeClass() }}">{{ $task->priorityLabel() }}</span>
    </div>
    <div class="small text-muted">{{ optional($task->client)->company_name ?: 'Genel görev' }}</div>
    <div class="small {{ $task->isOverdue() ? 'text-danger' : 'text-muted' }}">{{ $task->dueLabel() }}</div>
    <form method="POST" action="{{ route('admin.task-board.tasks.complete', $task) }}" class="mt-2">
        @csrf
        <button class="btn btn-sm btn-outline-success">Tamamla</button>
    </form>
</div>
