%PDF- %PDF-
Direktori : /mnt/tnb2/git/loslex/resources/views/organizers/ |
Current File : //mnt/tnb2/git/loslex/resources/views/organizers/show.blade.php |
<x-app-layout> @push('styles') <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" /> <style>span.select2.select2-container.select2-container--classic { width: 100% !important; }</style> @endpush @push('scripts') <script type="module" src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script> <script type="module">$(document).ready(function() {$('#user_id').select2( {theme: "classic" });});</script> @endpush @push('footerelements') <x-modal name="add-organizer-member" :show="$errors->addOrgMember->isNotEmpty()" focusable> <form method="POST" action="{{ route('orgmember.store') }}" class="p-6"> @csrf <input type="hidden" name="organizer_group_id" value="{{ $group->id }}" /> <div class="mt-6"> <x-input-label for="user_id" value="{{ __('Add new member') }}" /> <x-select name="user_id" id="user_id"> <option value="">{{ __('Select person') }}</option> @foreach ($users as $user)<option @selected(old('user_id') == $user->id) value="{{ $user->id }}">{{ $user->displayname }}</option>@endforeach </x-select> <x-input-error :messages="$errors->addOrgMember->get('user_id')" 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 group") }}</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-member')">{{ __('Add new member') }}</x-primary-button> </div> <table class="mx-auto table-auto"> <thead> <tr class="bg-zinc-300"> <th colspan="2" class="text-lg px-2">{{ $group->name }}</th> {{-- <th class="px-2"></th> --}} </tr> <input type="hidden" name="organizer_group_id" value="{{ $group->id }}" /> </thead> <tbody> @foreach ($group->users as $member) <tr class="odd:bg-gray-100 text-center text-sm"> <td class="px-2">{{ $member->displayname }}</td> <td class="px-2"> <form method="post" action="{{ route('orgmember.destroy', $member->pivot->id) }}"> @csrf @method('DELETE') <button type="submit" class="fa-solid fa-square-xmark text-red-500"></button> </form> </td> </tr> <input type="hidden" name="organizer_group_id" value="{{ $group->id }}" /> @endforeach </tbody> </table> <div class="text-center mt-2"><a href="{{route('organizer.index')}}">{{__('Back')}}</a></div> </x-app-layout>