@extends('admin.layout_admin.main') @section('content')

Danh sách phòng

@can('them-phong') Thêm @endcan
Reset
@if ($rooms->count() > 0)
@foreach ($rooms as $key => $room) @endforeach
STT Số phòng Loại phòng Mô tả Trạng thái Xử lý
{{ $rooms->firstItem() + $key }} {{ $room->name }} {{ $room->roomType->name ?? 'Không xác định' }} {{ Str::limit($room->description, 50) ?? "Chưa có mô tả"}} @if ($room->status == 1) Ẩn @elseif ($room->status == 0) Hiển thị @endif
@can('sua-phong') @endcan @can('xoa-phong')
@csrf @method('DELETE')
@endcan
@else

Không có phòng nào!

@endif
{{ $rooms->links() }}
@endsection @section('css') @endsection @section('js') @endsection