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

Dashboard Seller

Selamat datang, {{ auth()->user()->name }}

Tambah Produk
@include('seller.partials.nav') @if(!$store)

Toko kamu belum dibuat. Hubungi admin untuk aktivasi.

@else

Total Produk

{{ number_format($stats['total_products']) }}

{{ $stats['active_products'] }} aktif

Total Penjualan

{{ number_format($stats['total_sales']) }}

item terjual

Rating Toko

{{ number_format($stats['rating'], 1) }}

Toko

{{ $store->name }}

Lihat halaman toko →

Produk Terbaru

Lihat semua →
@if($recentProducts->isEmpty())

Belum ada produk. Tambah sekarang

@else
@foreach($recentProducts as $product)
@if($product->images->first()) @endif

{{ $product->name }}

Rp {{ number_format($product->price, 0, ',', '.') }} · {{ $product->type === 'digital' ? 'Digital' : 'Fisik' }}

{{ $product->is_active ? 'Aktif' : 'Nonaktif' }} Edit
@endforeach
@endif
@endif
@endsection