This commit is contained in:
chrosey
2017-09-13 07:52:34 +02:00
parent a1f16c37f4
commit 2340b0226b
24621 changed files with 2912161 additions and 149 deletions
+36
View File
@@ -0,0 +1,36 @@
@extends('layouts.app')
@section('title', 'Benutzer')
@section('content')
<a class="btn btn-link" href="{{ route('benutzer.create') }}">Benutzer hinzufügen</a>
<table class="table-hover table">
<thead>
<tr>
<th class="text-center">Name</th>
<th class="text-center">Anmeldung</th>
<th class="text-center">Arbeitszeit</th>
<th></th>
</tr>
</thead>
@foreach ($benutzer as $b)
<tr class="clickable-row" data-href="{{ route('benutzer.show', [$b]) }}">
<td >{{ $b->anzeigename }}</td>
<td>{{ $b->created_at->diffForHumans() }}</td>
<td class="text-center">
TODO
</td>
<td class="row">
<a class="btn btn-link my-0 py-0" href="{{ route('benutzer.edit', [$b]) }}">Bearbeiten</a>
<a class="btn btn-link my-0 py-0" data-toggle="modal" href="#confirmDeletionModal" data-token="{{csrf_token()}}" data-url="{{route('benutzer.destroy', $b)}}" data-identifier="{{$b->anzeigename}}">Löschen</button>
</td>
</tr>
@endforeach
</table>
@endsection
@section('modals')
@include('shared.modals.confirmDeletion', [])
@endsection