Ekapp/skolehjem/resources/views/app/events/signups.blade.php

73 lines
2.1 KiB
PHP

@extends("app.layout.base")
@section("title")
Events - Tilmeldte
@endsection
@section("content")
<style>
.tbl {
border-collapse: collapse;
width: 100%;
table-layout: fixed;
}
.tbl td,
.tbl th {
@if(request()->cookie("mode") == "dark")
border: 0px solid #ddd;
@else
border: 1px solid #ddd;
@endif
padding: 8px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tbl tr:nth-child(even) {
background-color: rgba(0, 0, 0, 0.1);
}
.tbl tr:hover {
background-color: #ddd;
}
.tbl th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #00788a;
color: white;
}
.tbl > tbody > tr > td > a {
width: 100%;
}
.tbl > tbody > tr > td > a > img {
width: 1em;
margin: auto;
}
</style>
<main style="min-height: calc(100% - 61.3px)">
<table class="tbl" style="margin: 2rem 8px 0px 8px; width: calc(100% - 16px);">
@if(count($events) == 0)
<p class="text-center mt-2">{{__('msg.ingentilmeldte')}}</p>
@else
<tr>
<th style="text-align: center;">{{ __('msg.tilmeldtesnavn') }}</th>
</tr>
@endif
@foreach($events as $UE)
@if ($UE->name_first != null && $UE->name_last != null && $UE->phone != null && $UE->event_id != null && $UE->user_id != null)
<tr>
<td>{{ $UE->name_first }} {{ $UE->name_last }}</td>
</tr>
@endif
@endforeach
</table>
<button onclick="window.history.back();" style="margin-top: auto; margin-bottom: 8px;" class="btn btn-sde-blue text-white">{{ __('msg.tilbage') }}</button>
</main>
@endsection