@php
$uploaded = $submission ? $submission->files->count() : 0;
$max = $rule['max_files'] ?? 0;
$percent = $max > 0 ? round(($uploaded / $max) * 100) : 0;
@endphp
@php
$tierStyle = match($submission?->tier) {
1 => 'bg-gray-200 text-gray-700',
2 => 'bg-yellow-200 text-yellow-800',
3 => 'bg-slate-300 text-slate-800',
default => 'bg-gray-100 text-gray-600'
};
@endphp
📤
@if($submission)
{{ $submission->tier_badge['label'] }}
@else
Belum Ada Tier
@endif
{{ $uploaded }} / {{ $max }} file
{{-- Progress Bar --}}
Progress {{ $percent }}%
@if($submission && $submission->status == 1)
Approved ✅
@else
In Progress ⏳
@endif