{{-- Compact Verification & Trust Cards --}} @php $kycPct = (int) ($stats['kyc_completion_percent'] ?? 0); $isFullyVerified = $stats['is_fully_verified'] ?? $vendor->isFullyVerified(); $kycStatus = $stats['kyc_status'] ?? 'Not Submitted'; $kycNormalized = $vendor->normalizedKycStatus(); $kycFormUrl = route('vendor.kyc.index'); if (!$isFullyVerified && $kycPct >= 100 && !in_array($kycNormalized, ['under_review', 'on_hold'])) { $kycFormUrl .= '#kyc-submit-section'; } elseif (!$isFullyVerified) { $kycFormUrl .= '#full-kyc-form'; } $kycBtnLabel = match(true) { $isFullyVerified => 'View Full KYC', $kycNormalized === 'under_review' => 'KYC Under Review', $kycNormalized === 'on_hold' => 'KYC On Hold', $kycPct >= 100 => 'Submit Full KYC', default => 'Open KYC Form', }; @endphp
@unless($isFullyVerified)
Full KYC Verification {{ $kycStatus }}
{{ $kycPct }}% complete
  • Unlimited products
  • Withdrawals
  • Coupons
{{ $kycBtnLabel }}
@endunless
Trust Score {{ $stats['trust_score'] ?? 0 }}/100 {{ $stats['trust_tier_label'] ?? 'Bronze' }}
Products @if($stats['product_limit'] ?? null) {{ $stats['total_products'] }}/{{ $stats['product_limit'] }}
@else {{ $stats['total_products'] }} @endif
Store Health {{ $stats['store_health_score'] ?? 0 }}%
@if(!($stats['can_add_product'] ?? true))
Product limit reached. Complete Full KYC for unlimited listings.
Open KYC Form
@endif @if($isShopOwner ?? auth()->user()->hasAccountRole('vendor'))
Lifetime ₹{{ number_format($stats['total_sales'] ?? 0, 0) }}
Pending ₹{{ number_format($stats['pending_withdrawals'] ?? 0, 0) }}
Withdrawn ₹{{ number_format($stats['approved_withdrawals'] ?? 0, 0) }}
@endif