@extends('frontend.provider.app') @section('title', 'Manage Shops') @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@include('provider.partials.sidebar')

{{ __('manage_shops') }}

@forelse($activeShops as $shop) @include('provider.shops.partials.shop-card', ['shop' => $shop, 'isActive' => true]) @empty

{{ __('no_active_shops') }}

@endforelse
{{ $activeShops->links('pagination::bootstrap-5') }}
@forelse($inactiveShops as $shop) @include('provider.shops.partials.shop-card', ['shop' => $shop, 'isActive' => false]) @empty

{{ __('no_active_shops') }}

@endforelse
{{ $inactiveShops->links('pagination::bootstrap-5') }}
@foreach($activeShops->merge($inactiveShops) as $shop) @include('provider.shops.partials.status-modal', ['shop' => $shop, 'newStatus' => 0, 'modalId' => 'inactive_modal_'.$shop->id, 'actionText' => 'Inactive']) @include('provider.shops.partials.status-modal', ['shop' => $shop, 'newStatus' => 1, 'modalId' => 'active_modal_'.$shop->id, 'actionText' => 'Active']) @include('provider.shops.partials.delete-modal', ['shop' => $shop]) @endforeach @endsection @push('scripts') @endpush