Lager-v3/resources/views/buildings/index.blade.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('name')</th>
<th>@lang('rooms')</th>
<th>@lang('action')</th>
</thead>
<tbody>
@foreach($data as $building)
<tr>
<td class="align-middle">
<a href="{{route('buildings.show',['building' => $building])}}" target="_blank"
class="btn btn-success">{{$building->name}}</a>
</td>
<td>
<a href="{{route('rooms.index',['p' => '100','search_type' => 'building','search_term' => $building->name])}}"
target="_blank" class="btn btn-success">@lang('rooms')</a>
</td>
<td>
<a href="{{route('buildings.edit',['building' => $building])}}"
target="_blank" class="btn btn-outline-success">@lang('edit')</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@include('Partials.Pages.display')
</div>
@endsection
@section('scripting')
@endsection