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
+8
View File
@@ -0,0 +1,8 @@
@extends('Layouts.master')
@section('content')
@include('Partials.Pages.create_page')
@endsection
@section('scripting')
@endsection
+40
View File
@@ -0,0 +1,40 @@
@extends('Layouts.master')
@section('content')
<div class="main-container pb-4">
@include('Partials.Pages.index_top')
<table class="table table-striped table-hover mt-4">
<thead>
<th>@lang('name')</th>
<th>@lang('action')</th>
</thead>
<tbody>
@foreach($data as $object)
<tr>
<td>
{{$object->name}}
</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>
</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,6 @@
@include('Partials.Form.Input.name')
@can('roles_edit_permissions')
@if(isset($data))
@include('Partials.Form.Input.permissions')
@endif
@endcan
+39
View File
@@ -0,0 +1,39 @@
@extends('Layouts.master')
@section('content')
<div class="main-container pb-4">
@include('Partials.Pages.index_top')
<table class="table table-striped table-hover mt-4">
<thead>
<th>@lang('name')</th>
<th>@lang('action')</th>
</thead>
<tbody>
@foreach($data as $role)
<tr>
<td>
@can('roles_view')
<a href="{{route('roles.show',['role' => $role])}}" class="btn btn-success">
{{$role->name}}
</a>
@else
{{$role->name}}
@endcan
</td>
<td>
@can('roles_edit')
<a href="{{route('roles.edit',['role' => $role])}}"
class="btn btn-outline-success">@lang('edit')</a>
@endcan
</td>
</tr>
@endforeach
</tbody>
</table>
</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
+24
View File
@@ -0,0 +1,24 @@
<h2>@lang('users')</h2>
@if(count($data->users) >= 1)
<table>
<tbody>
@foreach($data->users as $user)
<tr>
<td class="align-middle">
@can('users_view')
<a href="{{route('users.show',['user' => $user])}}"
target="_blank"
class="btn btn-success">
{{$user->username}}
</a>
@else
{{$user->username}}
@endcan
</td>
</tr>
@endforeach
</tbody>
</table>
@else
@lang('no_amount') @lang('users')
@endif