@extends('layouts.supplier') @section('title', 'Profil Saya') @section('content') @php $supplier = Auth::guard('supplier')->user(); $activeProductsCount = $supplier ? $supplier->products()->where('approvalStatus', 'APPROVED')->where('isActive', true)->count() : 0; $totalProductsCount = $supplier ? $supplier->products()->count() : 0; $maxProducts = ($supplier && $supplier->maxActiveProducts) ? $supplier->maxActiveProducts : 20; $capacityPercentage = min(100, round(($activeProductsCount / max(1, $maxProducts)) * 100)); @endphp

Profil Mitra Supplier

Informasi akun bisnis, kontak, dan rekening pencairan dana Anda

@csrf
{{ strtoupper(substr($supplier->businessName ?? 'S', 0, 1)) }}

{{ $supplier->businessName ?? 'Nama Toko' }}

{{ $supplier->code ?? 'SUP-PARTNER' }}

Pemilik: {{ $supplier->ownerName ?? '-' }}

Status: {{ $supplier->statusLabel ?? 'Aktif' }} @if(!empty($supplier->productCategory)) {{ $supplier->productCategory }} @endif
Katalog SKU {{ $activeProductsCount }} dari {{ $totalProductsCount }} diajukan
Batas Kuota {{ $maxProducts }} Maksimum SKU

Detail Usaha & Identitas

Nama Toko / Brand

{{ $supplier->businessName ?? '-' }}

Nama Pemilik (Owner)

{{ $supplier->ownerName ?? '-' }}

Kode Kode Mitra

{{ $supplier->code ?? '-' }}

Kategori Produk

{{ $supplier->productCategory ?? 'Umum / Makanan' }}

@if(!empty($supplier->description))
Deskripsi Singkat Usaha
"{{ $supplier->description }}"
@endif

Kontak & Lokasi Operasional

Email Resmi

{{ $supplier->email ?? '-' }}

No. Telepon / WhatsApp

{{ $supplier->phone ?? '-' }}

Alamat Usaha / Gudang

{{ $supplier->address ?? '-' }}

Rekening Pencairan

Aktif
{{ $supplier->bankName ?? 'BANK TRANSFER' }}
Nomor Rekening

{{ !empty($supplier->bankAccountNumber) ? chunk_split($supplier->bankAccountNumber, 4, ' ') : 'Belum diisi' }}

Atas Nama (Owner)

{{ $supplier->bankAccountHolderName ?? $supplier->ownerName ?? '-' }}

Uang hasil penjualan konsinyasi ditransfer langsung ke rekening di atas.

Kapasitas Produk

{{ $activeProductsCount }}/{{ $maxProducts }} SKU
{{ $capacityPercentage }}% Terpakai Sisa: {{ max(0, $maxProducts - $activeProductsCount) }} SKU
Ajukan Produk Baru

Update Profil & Rekening

Untuk menjaga keamanan rekening dan identitas toko konsinyasi, perubahan data profil (seperti nama rekening bank atau nama pemilik) diverifikasi secara manual oleh pengurus Koperasi.

Hubungi Admin Koperasi

Silakan hubungi WhatsApp Sekretariat Koperasi untuk pengajuan perubahan data profil Anda.

@endsection