@extends('admin/layouts/admin') @section('title', __($translatePrefix . '.create.title', ['name' => $item->fullname])) @section('styles') @endsection @section('scripts') @endsection @section('content')
@include('admin/shared/alerts')
@csrf

{{ __($translatePrefix . '.create.title') }}

{{ __($translatePrefix. '.create.subheading') }}

@if (!empty($groups))
@endif
@if (empty($groups))

{{ __($translatePrefix . '.create.create_group_help') }}

{{ __('admin.groups.create.title') }}
@else
@include('admin/shared/input', ['name' => 'name', 'label' => __('global.name'), 'value' => old('name', $item->name)])
@include('admin/shared/input', ['name' => 'stock', 'label' => __($translatePrefix . '.stock'), 'value' => old('stock', $item->stock)])
@include('admin/shared/select', ['name' => 'type', 'label' => __($translatePrefix . '.type'), 'value' => old('type', $item->type), 'options' => $types])
@include('admin/shared/status-select', ['name' => 'status', 'label' => __('global.status'), 'value' => old('status', $item->status)]) @include('admin/shared/select', ['name' => 'group_id', 'label' => __($translatePrefix . '.group'), 'value' => old('group_id', $item->group_id), 'options' => $groups]) @include('admin/shared/input', ['name' => 'sort_order', 'label' => __('global.sort_order'), 'value' => old('sort_order', $item->sort_order)]) @include('admin/shared/file', ['name' => 'image', 'label' => __('admin.groups.image')])
@include('admin/shared/checkbox', ['name' => 'pinned', 'label' => __('global.pinned'), 'checked' => old('pinned', $item->pinned)])
@include('admin/shared/editor', ['name' => 'description', 'label' => __('global.description') . 'HTML', 'value' => old('description', $item->description), 'translatable' => true])
@endif
@if (!empty($groups))
@include('admin/shared/pricing/table')
@endif
@include('admin/shared/pricing/collapse') @endsection