@forelse($sale->activities->sortByDesc('created_at') as $activity) @php $iconClass = $activity->activity_type_icon; $typeLabel = $activity->activity_type_label; @endphp
{{-- Left Timeline Icon --}}
{{-- Feed Card Body --}}
@if($activity->is_pinned) Sabitlendi @endif {{ $typeLabel }} {{ $activity->created_at->translatedFormat('d F Y, H:i') }} @if($activity->due_date) Bitiş: {{ $activity->due_date->translatedFormat('d M H:i') }} @endif
{{-- Right Actions & Performer --}}
{{ $activity->performer->full_name ?? 'Sistem' }} {{-- Dropdown Actions --}}
@if($activity->subject)
{{ $activity->subject }}
@endif @if($activity->description)
{{ $activity->description }}
@endif {{-- Attachments --}} @if($activity->attachments && is_array($activity->attachments))
Dosyalar:
@foreach($activity->attachments as $file)
@php $ext = pathinfo($file['name'], PATHINFO_EXTENSION); $isExcel = in_array(strtolower($ext), ['xls', 'xlsx', 'csv']); $fileIcon = $isExcel ? 'fa-file-excel text-success' : 'fa-file-alt text-primary'; @endphp {{ $file['name'] }} ({{ number_format(($file['size'] ?? 0) / 1024, 2) }} KB)
@endforeach
@endif
{{-- Pin status toggle action button under card (like the screenshot "SABİTLEMEYİ KALDIR") --}} @if($activity->is_pinned) @endif
@empty

Henüz bir aktivite kaydı bulunmuyor.

Yandaki panelden yeni bir yorum, görev veya etkinlik ekleyebilirsiniz.

@endforelse