%PDF- %PDF-
Direktori : /mnt/tnb2/git/loslex/resources/views/organizers/ |
Current File : //mnt/tnb2/git/loslex/resources/views/organizers/list.blade.php |
<x-app-layout> @push('footerelements') <x-modal name="add-organizer-group" :show="$errors->addOrgGroup->isNotEmpty()" focusable> <form method="POST" action="{{ route('organizer.store') }}" class="p-6"> @csrf <div class="mt-6"> <x-input-label for="name" value="{{__('Organizer group name')}}" /> <x-text-input class="mt-1 block w-full" id="name" name="name" /> <x-input-error :messages="$errors->addOrgGroup->get('name')" class="mt-2" /> </div> <div class="mt-6 flex justify-end"> <x-secondary-button x-on:click="$dispatch('close')">{{ __('Cancel') }}</x-secondary-button> <x-primary-button class="ml-3">{{ __('Save') }}</x-button> </div> </form> </x-modal> @endpush <x-slot name="header"> <h2 class="font-semibold text-xl text-gray-800 leading-tight"> {{ __("Organizer groups") }} </h2> </x-slot> <div class="text-center space-x-2 mb-4"> <x-primary-button x-data="" x-on:click.prevent="$dispatch('open-modal', 'add-organizer-group')">{{__('Add new organizers')}}</x-primary-button> </div> <table class="mx-auto table-auto"> <thead> <tr class="bg-zinc-300"> <th class="px-2">{{ __('Organizer group') }}</th> <th class="px-2">{{ __('Members count') }}</th> <th class="px-2">{{ __('Contests') }}</th> </tr> </thead> <tbody> @foreach ($groups as $group) <tr class="odd:bg-gray-100 text-center text-sm"> <td class="px-2 text-left text-base"><a href="{{ route('organizer.show', $group->id) }}">{{ $group->name }}</a></td> <td class="px-2">{{ $group->users->count() }}</td> <td class="px-2">{{ $group->contests->count() }}</td> </tr> @endforeach </tbody> </table> </x-app-layout>