@extends('layouts.main-layout') @section('title') All Rooms | Dashboard @endsection @section('content')

Current Accommodation Rooms

@forelse($rooms as $i => $room) @if($room->roomType) @else @endif @if($room->floor) @else @endif @empty @endforelse
# Room Id Room Name Room Type Floor Create Date Actions
{{$i + $rooms->firstItem()}} {{$room->RoomId}} {{$room->RoomName}} {{$room->roomType->RoomTypeName}} - {{$room->floor->FloorName}} - {{$room->CreateDate->diffForHumans()}} @hasAccess('Edit Room') @endhasAccess @hasAccess('Delete Room')
@csrf @method('DELETE')
{{-- @component('components.confirm',[ 'modal' => 'modal-'.$user->UserId, 'id' => 'delete-form-'.$user->UserId, 'title' => 'User' ]) @endcomponent --}} {{-- href="#modal-{{$user->UserId}}"--}} @endhasAccess
{{-- {{$users->appends(request()->query())->links('vendor.pagination.default')}} --}} {{$rooms->links()}}
@endsection @section('js') @endsection