@extends('admin.layouts.home') @section('title', 'Store Details') @section('styles') @endsection @section('content')

Store Details

Back to Stores
@if($store->banner) {{ $store->name }} banner @else
@endif
@if($store->logo) @else @endif

{{ $store->name }}

@php $statusClass = [ 'active' => 'bg-success', 'inactive' => 'bg-danger', 'pending' => 'bg-warning text-dark', ][$store->status] ?? 'bg-secondary'; @endphp {{ ucfirst($store->status) }}

{{ $store->tagline ?? 'No tagline available' }}

Total Products
{{ $store->products_count }}
Total Orders
{{ $totalOrders }}
Total Sales
${{ number_format($totalSales, 2) }}
Average Rating
@if($averageRating) @for($i = 1; $i <= 5; $i++) @if($i <= round($averageRating)) @else @endif @endfor {{ number_format($averageRating, 1) }} @else No ratings yet @endif
Store Information
Description

{{ $store->description ?? 'No description available.' }}

Owner
@if($store->owner)
@if($store->owner->avatar) {{ $store->owner->name }} @else
@endif
{{ $store->owner->name }}
{{ $store->owner->email }}
@else

No owner assigned

@endif
Contact Information
Store Details
  • Created: {{ $store->created_at->format('M d, Y') }}
  • Last Updated: {{ $store->updated_at->format('M d, Y') }}
Store Products
View All Products
@if($store->products->isEmpty())
This store has no products yet.
@else
@foreach($store->products->take(6) as $product)
@if($product->thumbnail) {{ $product->name }} @else
@endif
{{ Str::limit($product->name, 30) }}

${{ number_format($product->price, 2) }}

@php $statusClass = [ 'active' => 'bg-success', 'inactive' => 'bg-danger', 'pending' => 'bg-warning text-dark', ][$product->status] ?? 'bg-secondary'; @endphp {{ ucfirst($product->status) }} View Details
@endforeach
@if($store->products->count() > 6) @endif @endif
@endsection