@php /** @var LaraBB\Group\Models\Group $group */ @endphp
@extends('admin::Layouts.master')
@section('content')
<div class="container-fluid pt-4">
    @include('partials.messages')
    <form action="{{ route('admin.groups.' . (isset($group) ? 'update' : 'store')) }}" method="post">
        @csrf
        <input type="hidden" name="uuid" value="{{ $group->uuid ?? '' }}">
        <div class="row align-items-center">
            <div class="col-12 col-sm-5">
                <label for="group" class="required">Gruppe:</label>
                <input class="form-control @error('group')is-invalid @enderror" name="group" id="group" value="{{ old('group', $group->group ?? '') }}">
            </div>
            <div class="col-12 col-sm-5">
                <label for="priority" class="required">Priorität:</label>
                <input class="form-control @error('priority')is-invalid @enderror" name="priority" id="priority" value="{{ old('priority', $group->priority ?? '') }}">
            </div>
            <div class="col-12 col-sm-2">
                <label for="color" class="required">Farbe:</label>
                <input type="color" class="form-control form-control-color" name="color" id="color" value="{{ old('color', $group->color ?? '') }}">
            </div>
            <div class="col-12 col-md-2 col-xl-1 mt-3">
                @include('partials.button', ['context' => 'primary', 'type' => 'submit', 'icon' => 'save', 'label' => 'Speichern'])
            </div>
        </div>
    </form>
</div>
@stop
