48 lines
1.2 KiB
PHP
48 lines
1.2 KiB
PHP
@extends('layout')
|
|
|
|
@section('content')
|
|
<h1>Kulturkarten</h1>
|
|
|
|
Aktuell
|
|
<?php
|
|
if(count($culturecards) == 1){
|
|
echo "ist";
|
|
}else{
|
|
echo "sind";
|
|
}
|
|
?> {!! count($culturecards) !!} gültige Kulturkarte<?php if(count($culturecards) != 1){echo "n";}?>
|
|
im Umlauf.
|
|
|
|
<table class="ui celled table" id="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Kartennummer</th>
|
|
<th>Name</th>
|
|
<th>E-Mail</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($culturecards as $culturecard)
|
|
@if($culturecard->culturecard_user()->first() != null)
|
|
<tr>
|
|
<td>
|
|
{{$culturecard->number}}</td>
|
|
<td>
|
|
<?php
|
|
$user = $culturecard->culturecard_user()->first()->user()->withTrashed()->first();
|
|
|
|
?>
|
|
{{$user->title}} {{$user->firstname}} {{$user->lastname}}
|
|
|
|
</td>
|
|
<td>
|
|
{{$user->email}}
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
@endsection
|