@extends ('admin.layouts.default') @section ('main')

@php echo (isset($group)) ? __('labels.group.edit_group') : __('labels.group.create_group'); @endphp

@include('admin.partials.x-toolbar') @php $action = (isset($group)) ? route('admin.users.groups.update', $query) : route('admin.users.groups.store', $query) @endphp
@csrf @if (isset($group)) @method('put') @endif @foreach ($fields as $field) @php $value = (isset($group)) ? old($field->name, $field->value) : old($field->name); @endphp @endforeach @if (isset($group)) @endif @if (isset($group))
@method('delete') @csrf
@endif @endsection @push ('style') @endpush @push ('scripts') @endpush