@extends('superadmin.layouts.app') @section('title', 'All Shops') @section('page-title', 'Merchant Shops') @section('content') {{-- Filters --}}
@if(request('search') || request('status')) Clear @endif
{{-- Table --}}
@forelse($shops as $shop) @empty @endforelse
Shop Owner Status Orders Registered Actions

{{ $shop->name ?: '—' }}

{{ $shop->domain }}

@if($admin = $shop->users->where('role','admin')->first())

{{ $admin->name }}

{{ $admin->email }}

@else @endif
$shop->status === 'active', 'bg-amber-900/40 text-amber-400' => $shop->status === 'pending', 'bg-red-900/40 text-red-400' => $shop->status === 'suspended', 'bg-slate-700 text-slate-400' => !in_array($shop->status, ['active','pending','suspended']), ])> {{ ucfirst($shop->status ?? 'unknown') }} @if(!$shop->isInstalled()) not installed @endif {{ number_format($shop->orders_count) }} {{ $shop->created_at->format('d M Y') }}
View @if($shop->status === 'pending')
@csrf
@elseif($shop->status === 'active')
@csrf
@elseif($shop->status === 'suspended')
@csrf
@endif
No shops found
@if($shops->hasPages())
{{ $shops->links() }}
@endif
@endsection