%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/test/resources/views/organizers/
Upload File :
Create Path :
Current File : //www/loslex/test/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="pagetitle">{{ __('Organizer groups') }}</x-slot>
    <x-slot name="header"><h2 class="text-gray-800 dark:text-gray-200 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 dark:bg-zinc-800">
                <th class="px-2">{{ __('Organizers') }}</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 dark:odd:bg-gray-700 text-center text-sm">
                    <td class="px-2 text-left text-base"><a class="no-underline font-medium" 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>

Zerion Mini Shell 1.0