34 lines
1.0 KiB
PHP
34 lines
1.0 KiB
PHP
@extends('layout')
|
|
|
|
@section('content')
|
|
<h1>Sitzplan bearbeiten!</h1>
|
|
<a href="{{url('admin/seating/create')}}" class="btn btn-success">Sitzplan hinzufügen</a>
|
|
|
|
|
|
<table class="ui celled table">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th colspan="2">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($seatmaps as $seatmap)
|
|
@if($seatmap->name != "Keine Sitzplatzvorlage")
|
|
<tr>
|
|
<td>{{ $seatmap->name }}</td>
|
|
<td><a href="{{route('seating.edit',$seatmap->id)}}" class="btn btn-warning">Anzeigen</a></td>
|
|
<td>
|
|
{!! Form::open(['method' => 'DELETE', 'route'=>['seating.destroy', $seatmap->id]]) !!}
|
|
{!! Form::submit('Delete', ['class' => 'btn btn-danger']) !!}
|
|
{!! Form::close() !!}
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
@endsection
|