38 lines
1.8 KiB
PHP
38 lines
1.8 KiB
PHP
<x-app-layout>
|
|||
|
|
<x-slot name="header">
|
||
|
|
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
|
||
|
|
{{ __('New Group') }}
|
||
|
|
</h2>
|
||
|
|
</x-slot>
|
||
|
|
|
||
|
|
<div class="py-12">
|
||
|
|
<div class="max-w-2xl mx-auto sm:px-6 lg:px-8">
|
||
|
|
<div class="bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-lg">
|
||
|
|
<form method="POST" action="{{ route('groups.store') }}" class="p-6 space-y-6">
|
||
|
|
@csrf
|
||
|
|
|
||
|
|
<div>
|
||
|
|
<x-input-label for="name" :value="__('Name')" />
|
||
|
|
<x-text-input id="name" name="name" type="text" class="mt-1 block w-full" :value="old('name')" required autofocus />
|
||
|
|
<x-input-error :messages="$errors->get('name')" class="mt-2" />
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div>
|
||
|
|
<x-input-label for="description" :value="__('Description')" />
|
||
|
|
<textarea id="description" name="description" rows="4"
|
||
|
|
class="mt-1 block w-full border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 rounded-md shadow-sm">{{ old('description') }}</textarea>
|
||
|
|
<x-input-error :messages="$errors->get('description')" class="mt-2" />
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="flex items-center gap-4">
|
||
|
|
<x-primary-button>{{ __('Create') }}</x-primary-button>
|
||
|
|
<a href="{{ route('groups.index') }}" class="text-sm text-gray-500 dark:text-gray-400 hover:underline">
|
||
|
|
{{ __('Cancel') }}
|
||
|
|
</a>
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</x-app-layout>
|