Files
bm/public_html/resources/views/admin/seating/index.blade.php
2025-09-24 13:26:28 +02:00

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