35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
@extends('layouts.app')
|
|
@section('title', 'Benutzer')
|
|
|
|
@section('content')
|
|
<a class="btn btn-link" href="{{ route('benutzer.create') }}">Benutzer hinzufügen</a>
|
|
|
|
<table class="highlight">
|
|
<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-link my-0 py-0" href="{{ route('benutzer.edit', [$b]) }}">Bearbeiten</a>
|
|
<a class="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
|
|
|
|
@push('modals')
|
|
@include('shared.modals.confirmDeletion', [])
|
|
@endpush |