Initial Commit

This commit is contained in:
dann4624
2022-09-28 09:38:08 +02:00
parent cac476f80f
commit 2d04a269e6
355 changed files with 52166 additions and 25 deletions
@@ -0,0 +1,8 @@
@extends('Layouts.master')
@section('content')
@include('Partials.Pages.create_page')
@endsection
@section('scripting')
@endsection
@@ -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
+8
View File
@@ -0,0 +1,8 @@
@extends('Layouts.master')
@section('content')
@include('Partials.Pages.edit_page')
@endsection
@section('scripting')
@endsection
@@ -0,0 +1 @@
@include('Partials.Form.Input.name')
+35
View File
@@ -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('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
+8
View File
@@ -0,0 +1,8 @@
@extends('Layouts.master')
@section('content')
@include('Partials.Pages.show_page')
@endsection
@section('scripting')
@endsection
@@ -0,0 +1,18 @@
<h2>@lang('rooms')</h2>
@if(count($data->rooms) >= 1)
<table class="">
@foreach($data->rooms as $room)
<tr>
<td>
<a href="{{route('rooms.show',['room' => $room])}}" target="_blank"
class="btn btn-success">
{{$room->name}}
</a>
</td>
</tr>
@endforeach
</table>
@else
@lang('no_amount') @lang('rooms')
@endif