@extends('admin.layout') @section('admin-title') Species @endsection @section('admin-content') {!! breadcrumbs([ 'Admin Panel' => 'admin', ucfirst(__('transformations.transformation')) => 'admin/data/transformations', ($transformation->id ? 'Edit ' : 'Create ') . ucfirst(__('transformations.transformation')) => $transformation->id ? 'admin/data/transformations/edit/' . $transformation->id : 'admin/data/transformations/create', ]) !!}

{{ $transformation->id ? 'Edit' : 'Create' }} {{ ucfirst(__('transformations.transformation')) }} @if ($transformation->id) Delete {{ ucfirst(__('transformations.transformation')) }} @endif

{!! Form::open(['url' => $transformation->id ? 'admin/data/transformations/edit/' . $transformation->id : 'admin/data/transformations/create', 'files' => true]) !!}

Basic Information

{!! Form::label('Name') !!} {!! Form::text('name', $transformation->name, ['class' => 'form-control']) !!}
{!! Form::label('Species Restriction (Optional)') !!}{!! add_help('Users can only select a transformation that matches their character\'s species, or one that has no restriction.') !!} {!! Form::select('species_id', $specieses, $transformation->species_id, ['class' => 'form-control']) !!}
{!! Form::label('World Page Image (Optional)') !!} {!! add_help('This image is used only on the world information pages.') !!}
{!! Form::file('image') !!}
Recommended size: 200px x 200px
@if ($transformation->has_image)
{!! Form::checkbox('remove_image', 1, false, ['class' => 'form-check-input']) !!} {!! Form::label('remove_image', 'Remove current image', ['class' => 'form-check-label']) !!}
@endif
{!! Form::label('Description (Optional)') !!} {!! Form::textarea('description', $transformation->description, ['class' => 'form-control wysiwyg']) !!}
{!! Form::submit($transformation->id ? 'Edit' : 'Create', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @if ($transformation->id)

Preview

@include('world._transformation_entry', ['transformation' => $transformation])
@endif @endsection @section('scripts') @parent @endsection