@extends('layouts.seller') @section('title', 'Dashboard') @section('content')

Welcome back, {{ auth()->user()->name }}! 👋

Your business overview for {{ now()->format('l, F j, Y') }}

@if(!auth()->user()->seller->is_verified)
Verification Pending

Complete your KYC to unlock full features.

Verify Now
@endif
{{ auth()->user()->seller->is_active ? 'Profile Visible' : 'Profile Hidden' }}

{{ auth()->user()->seller->is_active ? 'Your profile & products are visible to buyers on the platform.' : 'Your profile is hidden from buyers. Toggle to make it visible.' }}

@csrf
Profile Views

{{ $viewsCount ?? 0 }}

Inquiries

{{ $inquiriesCount ?? 0 }}

Active Quotes

{{ $quotesCount ?? 0 }}

Products

{{ auth()->user()->seller->products->count() }}

Profile Performance
Current Plan
@if(auth()->user()->seller->subscription && auth()->user()->seller->subscription->status === 'active') Active @else Free @endif
@if(auth()->user()->seller->subscription && auth()->user()->seller->subscription->plan)
{{ auth()->user()->seller->subscription->plan->name }}
@if(auth()->user()->seller->subscription->end_date)

Expires in {{ auth()->user()->seller->subscription->end_date->diffInDays(now()) }} days

@endif @else
Free Plan

Upgrade to unlock more features

@endif Upgrade Plan
Recent Inquiries
@forelse(auth()->user()->seller->inquiries->take(4) as $inquiry)
{{ $inquiry->name }} {{ $inquiry->message }}
{{ $inquiry->created_at->diffForHumans() }}
@empty
No recent inquiries.
@endforelse
@endsection @push('scripts') @endpush