2017-09-13 07:52:34 +02:00

36 lines
1.1 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="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