@extends('root') @section('title', 'Pengajuan Nomor WhatsApp Dedicated') @push('styles') @endpush @section('content')
@include('components.breadcrumb', [ 'title' => 'Pengajuan Nomor WhatsApp Dedicated', 'links' => [ ['url' => route('client.dashboard'), 'label' => 'Dashboard'], ], 'current' => 'Pengajuan Nomor Dedicated' ]) {{-- Hero Banner --}}

Pengajuan Nomor WhatsApp Business Dedicated

Daftarkan nomor WhatsApp Anda untuk mendapatkan akses WhatsApp Business API. Biaya setup Rp {{ number_format($setupFee, 0, ',', '.') }} akan dipotong dari saldo saat pengajuan disetujui.

{{-- Session Alerts --}} @if(session('success')) @endif @if(session('error')) @endif {{-- Info Banner (setelah ada pengajuan approved) --}} @if($submissions->where('status', 'APPROVED')->count() > 0)
Pengajuan Anda Telah Disetujui

Tim kami akan segera menghubungi Anda untuk proses OTP Verification guna menautkan nomor WhatsApp Anda ke sistem. Harap pastikan nomor WhatsApp yang diajukan dapat menerima SMS/panggilan.

@endif {{-- Daftar Pengajuan --}} @if($submissions->isEmpty())
Belum Ada Pengajuan

Anda belum membuat pengajuan nomor WhatsApp Dedicated.

Buat Pengajuan Pertama
@else
@foreach($submissions as $sub)
{{ $sub->company_name }}
+{{ ltrim($sub->country_code, '+') }}{{ $sub->whatsapp_number }}  ยท  {{ $sub->display_name }}
{{ $sub->created_at->format('d M Y, H:i') }}
{{ $sub->status_label }} @if($sub->isNeedRevision() && $sub->admin_notes)
Catatan Admin: {{ Str::limit($sub->admin_notes, 80) }}
@endif
{{-- Status Progress --}}
@php $steps = [ ['status' => 'SUBMITTED', 'label' => 'Diajukan', 'icon' => 'ti-send'], ['status' => 'UNDER_REVIEW', 'label' => 'Direview', 'icon' => 'ti-search'], ['status' => 'APPROVED', 'label' => 'Disetujui', 'icon' => 'ti-check'], ]; $statusOrder = ['SUBMITTED' => 0, 'UNDER_REVIEW' => 1, 'NEED_REVISION' => 1, 'APPROVED' => 2, 'REJECTED' => 2]; $currentOrder = $statusOrder[$sub->status] ?? 0; @endphp @foreach($steps as $i => $step) @php $stepClass = ''; if ($sub->status === 'REJECTED' && $i === 2) { $stepClass = 'rejected'; } elseif ($i < $currentOrder) { $stepClass = 'done'; } elseif ($i === $currentOrder && !$sub->isRejected()) { $stepClass = 'active'; } @endphp
@if($sub->status === 'REJECTED' && $i === 2) @elseif($i < $currentOrder) @else @endif
@if($sub->status === 'REJECTED' && $i === 2) Ditolak @else {{ $step['label'] }} @endif
@endforeach
@endforeach
@endif
@endsection