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

73 lines
2.0 KiB
PHP
Raw Normal View History

@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 mt-2rem mr-1 mb-0 ml-1" style="width: calc(100% - 16px);">
@if(count($multiEvent) == 0)
<p class="text-center mt-2">{{__('msg.ingentilmeldte')}}</p>
@else
<tr>
<th class="text-center">{{ __('msg.tilmeldtesnavn') }}</th>
</tr>
@endif
@foreach($multiEvent as $UE)
@if ($UE->name_first != null && $UE->name_last != null && $UE->phone != null && $UE->multiple_event_id != null && $UE->user_id != null)
<tr>
<td>{{ $UE->name_first }} {{ $UE->name_last }}</td>
</tr>
@endif
@endforeach
</table>
<button onclick="document.location = document.referrer;" class="btn btn-sde-blue text-white mb-1 mt-auto">{{ __('msg.tilbage') }}</button>
</main>
@endsection