@extends('admin.layouts.app')
@section('title', 'Amenities')
@section('content')
@foreach ($amenities->groupBy('category') as $category => $categoryAmenities)
{{ ucfirst($category) }}
@foreach ($categoryAmenities as $amenity)
@if (!$amenity->is_active)
@endif
{{ $amenity->name }}
({{ $amenity->properties_count }})
@endforeach
@endforeach
@endsection