@extends('admin.layouts.home') @section('title', 'Stores Management') @section('styles') @endsection @section('content')

Stores Management

Dashboard
Filter Stores
Reset
Stores List {{ $stores->total() }} Stores
@if($stores->isEmpty())
No stores found. Try adjusting your filters.
@else
@foreach($stores as $store) @endforeach
ID Store Owner Products Status Created Actions
{{ $store->id }}
@if($store->logo) @else @endif
{{ $store->name }}
{{ Str::limit($store->description, 50) }}
@if($store->owner) {{ $store->owner->name }} @else No owner @endif
{{ $store->products_count ?? 0 }}
@php $statusClass = [ 'active' => 'bg-success', 'inactive' => 'bg-danger', 'pending' => 'bg-warning text-dark', ][$store->status] ?? 'bg-secondary'; @endphp {{ ucfirst($store->status) }} {{ $store->created_at->format('M d, Y') }}
{{ $stores->appends(request()->query())->links('pagination::bootstrap-5') }}
@endif
@endsection @section('scripts') @endsection