Manajemen Supplier

Kelola pendaftaran dan status supplier.

@php $actionableBatches = \App\Models\ConsignmentBatch::whereIn('status', ['REQUESTED', 'PENDING_SETTLEMENT'])->count(); @endphp Batch Konsinyasi @if($actionableBatches > 0) @endif Laporan

Total Supplier

{{ $stats['total'] }}

Menunggu Approval

{{ $stats['pending'] }}

Aktif

{{ $stats['active'] }}

Suspended

{{ $stats['suspended'] }}

@if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif
@forelse($suppliers as $supplier) @empty @endforelse
Supplier Kontak Kategori Status Produk Aksi
{{ substr($supplier->businessName, 0, 1) }}
{{ $supplier->businessName }}

{{ $supplier->code }}

{{ $supplier->ownerName }}

{{ $supplier->phone }}

{{ $supplier->email }}

{{ $supplier->productCategory ?? '-' }} @php $statusClass = match($supplier->status) { 'ACTIVE' => 'bg-emerald-100 text-emerald-700 dark:bg-emerald-500/20 dark:text-emerald-400', 'PENDING' => 'bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-400', 'SUSPENDED' => 'bg-rose-100 text-rose-700 dark:bg-rose-500/20 dark:text-rose-400', 'REJECTED' => 'bg-slate-100 text-slate-700 dark:bg-slate-700 dark:text-slate-400', default => 'bg-slate-100 text-slate-700', }; $statusLabel = match($supplier->status) { 'ACTIVE' => 'Aktif', 'PENDING' => 'Menunggu', 'APPROVED' => 'Disetujui', 'SUSPENDED' => 'Suspended', 'REJECTED' => 'Ditolak', default => $supplier->status, }; @endphp {{ $statusLabel }} {{ $supplier->currentActiveProducts }} / {{ $supplier->maxActiveProducts }}
@if($supplier->status === 'PENDING') @endif @if($supplier->status === 'ACTIVE') @endif @if($supplier->status === 'SUSPENDED') @endif

Tidak ada supplier ditemukan.

{{ $suppliers->links() }}
@if($showRejectModal)

Tolak Supplier

Apakah Anda yakin ingin menolak supplier ini? Berikan alasan penolakan.

@error('rejectReason') {{ $message }} @enderror
@endif @if($showSuspendModal)

Suspend Supplier

Supplier yang disuspend tidak akan bisa login dan produk mereka akan disembunyikan.

@error('suspendReason') {{ $message }} @enderror
@endif @if($showCreateModal)

Buat Akun Supplier Baru

Akun langsung aktif tanpa proses approval

{{-- Nama Pemilik --}}
@error('createOwnerName') {{ $message }} @enderror
{{-- Nama Bisnis --}}
@error('createBusinessName') {{ $message }} @enderror
{{-- Email --}}
@error('createEmail') {{ $message }} @enderror
{{-- Phone --}}
@error('createPhone') {{ $message }} @enderror
{{-- Kategori Produk --}}
@error('createProductCategory') {{ $message }} @enderror
{{-- Max Products --}}
@error('createMaxProducts') {{ $message }} @enderror
{{-- Alamat (full width) --}}
@error('createAddress') {{ $message }} @enderror
{{-- Deskripsi (full width) --}}
@error('createDescription') {{ $message }} @enderror
{{-- Password Section --}}

Kredensial Login

@error('createPassword') {{ $message }} @enderror

Default: 12345678. Supplier bisa ubah setelah login.

{{-- Info Banner --}}

Akun yang dibuat oleh admin:

  • Langsung berstatus AKTIF (tanpa approval)
  • Biaya registrasi Rp 0 (gratis)
  • Supplier bisa langsung login dan upload produk
@endif @if($showDetailModal && $selectedSupplier)

Detail Supplier

{{ $selectedSupplier->code }}

@php $statusClass = match($selectedSupplier->status) { 'ACTIVE' => 'bg-emerald-100 text-emerald-700 dark:bg-emerald-500/20 dark:text-emerald-400', 'PENDING' => 'bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-400', 'SUSPENDED' => 'bg-rose-100 text-rose-700 dark:bg-rose-500/20 dark:text-rose-400', 'REJECTED' => 'bg-slate-100 text-slate-700 dark:bg-slate-700 dark:text-slate-400', default => 'bg-slate-100 text-slate-700', }; $paymentClass = match($selectedSupplier->registrationPaymentStatus) { 'VERIFIED' => 'bg-emerald-100 text-emerald-700', 'PENDING_VERIFICATION' => 'bg-amber-100 text-amber-700', 'REJECTED' => 'bg-rose-100 text-rose-700', default => 'bg-slate-100 text-slate-700', }; @endphp {{ $selectedSupplier->status }} {{ $selectedSupplier->registrationPaymentStatus }}

Informasi Bisnis

Nama Bisnis

{{ $selectedSupplier->businessName }}

Kategori Produk

{{ $selectedSupplier->productCategory ?? '-' }}

Alamat

{{ $selectedSupplier->address }}

Informasi Pemilik

Nama Pemilik

{{ $selectedSupplier->ownerName }}

Email

{{ $selectedSupplier->email }}

Telepon

{{ $selectedSupplier->phone }}

@if($selectedSupplier->registrationPaymentProof)

Bukti Pembayaran

Bukti Pembayaran

Nominal

Rp {{ number_format($selectedSupplier->registrationFee, 0, ',', '.') }}

@if($selectedSupplier->registrationPaymentVerifiedAt)

Diverifikasi: {{ $selectedSupplier->registrationPaymentVerifiedAt->format('d M Y, H:i') }}

@endif
@endif

Produk

{{ $selectedSupplier->currentActiveProducts }} / {{ $selectedSupplier->maxActiveProducts }}

Produk aktif dari limit maksimal

@if($selectedSupplier->description)

Deskripsi

{{ $selectedSupplier->description }}

@endif
@endif