@extends('admin.layout') @section('admin-title') Character Titles @endsection @section('admin-content') {!! breadcrumbs([ 'Admin Panel' => 'admin', 'Character Titles' => 'admin/data/character-titles', ($title->id ? 'Edit' : 'Create') . ' Title' => $title->id ? 'admin/data/character-titles/edit/' . $title->id : 'admin/data/character-titles/create', ]) !!}

{{ $title->id ? 'Edit' : 'Create' }} Title @if ($title->id) Delete Title @endif

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

Basic Information

{!! Form::label('Title') !!} {!! Form::text('title', $title->title, ['class' => 'form-control']) !!}
{!! Form::label('Short Title (Optional)') !!} {!! add_help('Will be used in place of the full title for display alongside character name, etc. if set.') !!} {!! Form::text('short_title', $title->short_title, ['class' => 'form-control']) !!}
{!! Form::label('Rarity (Optional)') !!} {!! Form::select('rarity_id', $rarities, $title->rarity_id, ['class' => 'form-control', 'placeholder' => 'Select a Rarity']) !!}
{!! Form::label('Colour (Optional)') !!} {!! Form::color('colour', $title->colour, ['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 ($title->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', $title->description, ['class' => 'form-control wysiwyg']) !!}
{!! Form::submit($title->id ? 'Edit' : 'Create', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @if ($title->id)

Preview

@include('world._title_entry', ['imageUrl' => $title->titleImageUrl, 'name' => $title->displayNameFull, 'description' => $title->parsed_description, 'searchCharactersUrl' => $title->searchCharactersUrl])
@endif @endsection @section('scripts') @parent @endsection