Initial Commit
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
@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 $object)
|
||||
<tr>
|
||||
<td class="align-middle">
|
||||
<a href="{{route('buildings.show',['building' => $object->building->id])}}" target="_blank"
|
||||
class="btn btn-success">{{$object->building->name}}</a>
|
||||
</td>
|
||||
<td class="align-middle">
|
||||
<a href="{{route('rooms.show',['room' => $object])}}" target="_blank"
|
||||
class="btn btn-success">{{$object->name}}</a>
|
||||
</td>
|
||||
<td>
|
||||
@can(Request::segment(1).'_edit')
|
||||
<a href="{{route(Request::segment(1).'.edit',[$data_name => $object])}}"
|
||||
class="btn btn-outline-success">
|
||||
@lang('edit')
|
||||
</a>
|
||||
@endcan
|
||||
@can(Request::segment(1).'_restore')
|
||||
<a href="{{route(Request::segment(1).'.restore',[$data_name => $object])}}"
|
||||
class="btn btn-outline-success">
|
||||
@lang('restore')
|
||||
</a>
|
||||
@endcan
|
||||
@can(Request::segment(1).'_delete_force')
|
||||
@include('Partials.Form.Input.Modal.delete_force')
|
||||
@endcan
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@include('Partials.Pages.display')
|
||||
</div>
|
||||
@endsection
|
||||
@section('scripting')
|
||||
@endsection
|
||||
Reference in New Issue
Block a user