@extends('layouts.admin') @section('title') All Rooms | Dashboard @endsection @section('content')

brightness_1Current Accommodation Rooms

@component('admin.includes.per-page') @endcomponent @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') mode_edit @endhasAccess @hasAccess('Delete Room') delete @component('components.confirm',[ 'modal' => 'modal-'.$room->RoomId, 'id' => 'delete-form-'.$room->RoomId, 'title' => 'Room' ]) @endcomponent
@csrf @method('DELETE')
@endhasAccess
{{$rooms->appends(request()->query())->links('vendor.pagination.default')}}
@hasAccess('Create Room')
add
@endhasAccess @component('admin.includes.loader') @endcomponent @endsection @section('js') @endsection