{{ __('Submission') }}

@php $uploaded = $submission ? $submission->files->count() : 0; $stepLimit = 0; if ($submission) { if ($submission->tier == 1) { if ($submission->current_step == 1) { $stepLimit = 3; } elseif ($submission->current_step == 2) { $stepLimit = 6; } } elseif ($submission->tier == 2) { if ($submission->current_step == 1) { $stepLimit = 5; // contoh tier 2 step 1 } elseif ($submission->current_step == 2) { $stepLimit = 10; } } elseif ($submission->tier == 3) { if ($submission->current_step == 1) { $stepLimit = 7; // contoh tier 2 step 1 } elseif ($submission->current_step == 2) { $stepLimit = 14; } } } $canUpload = $submission->status == 0 && // ⬅️ BELUM APPROVED $stepLimit > 0 && $uploaded < $stepLimit; @endphp @php $tierStyle = match($submission->tier) { 1 => 'bg-gray-200 text-gray-700', // Silver 2 => 'bg-yellow-200 text-yellow-800', // Gold 3 => 'bg-slate-300 text-slate-800', // Platinum default => 'bg-gray-100 text-gray-600' }; @endphp

{{ $submission->tier_badge['label'] }}

{{-- HEADER --}}

Upload Screenshot

{{ $uploaded }} / {{ $stepLimit }} file
{{-- PROGRESS BAR --}}
{{-- FORM UPLOAD --}} @if($canUpload)
@csrf

* Pastikan screenshot jelas & sesuai ketentuan

@else @if($submission->status == 1)
✅ Submission telah disetujui, upload ditutup
@else
⏳ Upload ditutup, menunggu step berikutnya
@endif @endif

{{-- FORM INPUT TEXT --}}

Referal

@csrf @php $fields = match($submission->tier) { 1 => [ ['name' => 'referal1', 'type' => 'text', 'label' => $submission->referal1], ], 2 => [ ['name' => 'referal1', 'type' => 'text', 'label' => $submission->referal1], ['name' => 'referal2', 'type' => 'text', 'label' => $submission->referal2], ['name' => 'referal3', 'type' => 'text', 'label' => $submission->referal3], ['name' => 'referal4', 'type' => 'url', 'label' => $submission->referal4], ], 3 => [ ['name' => 'referal1', 'type' => 'text', 'label' => $submission->referal1], ['name' => 'referal2', 'type' => 'text', 'label' => $submission->referal2], ['name' => 'referal3', 'type' => 'text', 'label' => $submission->referal3], ['name' => 'referal4', 'type' => 'text', 'label' => $submission->referal4], ['name' => 'referal5', 'type' => 'text', 'label' => $submission->referal5], ['name' => 'referal6', 'type' => 'url', 'label' => $submission->referal6], ['name' => 'referal7', 'type' => 'url', 'label' => $submission->referal7], ], default => [] }; @endphp @foreach($fields as $field)
@endforeach