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('name')</th>
|
||||
<th>@lang('rooms')</th>
|
||||
<th>@lang('action')</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($data as $object)
|
||||
<tr>
|
||||
<td class="align-middle">
|
||||
<a href="{{route('buildings.show',['building' => $object])}}" target="_blank"
|
||||
class="btn btn-success">{{$object->name}}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{route('rooms.index',['p' => '100','search_type' => 'building','search_term' => $object->name])}}"
|
||||
target="_blank" class="btn btn-success">@lang('rooms')</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