@extends('admin.layout')
@section('admin-title')
{{ $subtype->id ? 'Edit' : 'Create' }} Subtype
@endsection
@section('admin-content')
{!! breadcrumbs(['Admin Panel' => 'admin', 'Subtypes' => 'admin/data/subtypes', ($subtype->id ? 'Edit' : 'Create') . ' Subtype' => $subtype->id ? 'admin/data/subtypes/edit/' . $subtype->id : 'admin/data/subtypes/create']) !!}
{{ $subtype->id ? 'Edit' : 'Create' }} Subtype
@if ($subtype->id)
Delete Subtype
@endif
{!! Form::open(['url' => $subtype->id ? 'admin/data/subtypes/edit/' . $subtype->id : 'admin/data/subtypes/create', 'files' => true]) !!}
Basic Information
{!! Form::label('Name') !!}
{!! Form::text('name', $subtype->name, ['class' => 'form-control']) !!}
{!! Form::label('Species') !!}
{!! Form::select('species_id', $specieses, $subtype->species_id, ['class' => 'form-control']) !!}
{!! Form::label('Description (Optional)') !!}
{!! Form::textarea('description', $subtype->description, ['class' => 'form-control wysiwyg']) !!}
{!! Form::checkbox('is_visible', 1, $subtype->id ? $subtype->is_visible : 1, ['class' => 'form-check-input', 'data-toggle' => 'toggle']) !!}
{!! Form::label('is_visible', 'Is Visible', ['class' => 'form-check-label ml-3']) !!} {!! add_help('If turned off, the subtype will not be visible in the subtypes list or available for selection in search and design updates. Permissioned staff will still be able to add them to characters, however.') !!}
{!! Form::submit($subtype->id ? 'Edit' : 'Create', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@if ($subtype->id)
Preview
@include('world._subtype_entry', ['subtype' => $subtype])
@endif
@endsection
@section('scripts')
@parent
@endsection