36 lines
1.3 KiB
PHP
36 lines
1.3 KiB
PHP
@extends('Layouts.master')
|
|
|
|
@section('content')
|
|
<div class="main-container pb-4" id="tables">
|
|
@include('Partials.Pages.index_top')
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<th>@lang('building')</th>
|
|
<th>@lang('room')</th>
|
|
<th>@lang('action')</th>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($data as $room)
|
|
<tr>
|
|
<td class="align-middle">
|
|
<a href="{{route('buildings.show',['building' => $room->building->id])}}" target="_blank"
|
|
class="btn btn-success">{{$room->building->name}}</a>
|
|
</td>
|
|
<td class="align-middle">
|
|
<a href="{{route('rooms.show',['room' => $room])}}" target="_blank"
|
|
class="btn btn-success">{{$room->name}}</a>
|
|
</td>
|
|
<td>
|
|
<a href="{{route('rooms.edit',['room' => $room])}}" target="_blank"
|
|
class="btn btn-outline-success">@lang('edit')</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@include('Partials.Pages.display')
|
|
</div>
|
|
@endsection
|
|
@section('scripting')
|
|
@endsection
|