Initial Commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user