%PDF- %PDF-
Direktori : /mnt/tnb2/git/loslex/resources/views/contests/ |
Current File : //mnt/tnb2/git/loslex/resources/views/contests/list.blade.php |
<x-app-layout> <x-slot name="header"> <h2 class="font-semibold text-xl text-gray-800 leading-tight"> {{ __("Contest calendar") }} </h2> </x-slot> <table class="border-collapse border mx-auto"> <tbody> @foreach ($contests as $contest) <tr class="border"> <td class="text-center uppercase px-2 border-r" rowspan="2"> <a href="{{ route('contest.show', $contest->id) }}"> <div class="font-semibold">{{ $contest->date->isoFormat('LL') }}</div> <div class="text-xs">{{ $contest->dateDow }}</div> </a> </td> <td class="px-2 font-semibold uppercase"><a href="{{ route('contest.show', $contest->id) }}">{{ $contest->contestname}}</a></td> <td class="px-2 border"> <div class="inline">{{ $contest->range->name }}</div> <div class="inline text-xs">({{ $contest->organizer_group->name }})</div> </td> </tr> <tr class="bg-slate-50 text-sm"> <td class="px-2">{{ __('contest.' . $contest->contest_level->name) }}, {{ __('contest.' . $contest->contest_category->name) }}</td> <td class="px-2 {{ $contest->capacity - $contest->registrations->count() > 0 ? 'text-green-500' : 'text-red-500' }}">{{ $contest->registrations->count() }} / {{ $contest->capacity }}</td> </tr> @endforeach </tbody> </table> </x-app-layout>