@extends('admin.layout') @section('admin-title') Concept @endsection @section('admin-content') {!! breadcrumbs(['Admin Panel' => 'admin', 'Concept' => 'admin/world/concepts', ($concept->id ? 'Edit' : 'Create') . ' Concept' => $concept->id ? 'admin/world/concepts/edit/' . $concept->id : 'admin/world/concepts/create']) !!}

{{ $concept->id ? 'Edit' : 'Create' }} Concept @if ($concept->id) ({!! $concept->displayName !!}) Delete Concept @endif

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

Basic Information

{!! Form::label('Name') !!} {!! Form::text('name', $concept->name, ['class' => 'form-control']) !!}
{!! Form::label('Category') !!} {!! add_help('What category of concept is this?') !!} {!! Form::select('category_id', [0 => 'Choose a Concept Category'] + $categories, $concept->category_id, ['class' => 'form-control selectize', 'id' => 'category']) !!}
{!! Form::label('Summary (Optional)') !!} {!! Form::text('summary', $concept->summary, ['class' => 'form-control']) !!}

Images

@if ($concept->thumb_extension) @endif {!! Form::label('Thumbnail Image (Optional)') !!} {!! add_help('This thumbnail is used on the concept index.') !!}
{!! Form::file('image_th') !!}
Recommended size: 200x200
@if (isset($concept->thumb_extension))
{!! Form::checkbox('remove_image_th', 1, false, ['class' => 'form-check-input', 'data-toggle' => 'toggle', 'data-off' => 'Leave Thumbnail As-Is', 'data-on' => 'Remove Thumbnail Image']) !!}
@endif
@if ($concept->image_extension) @endif {!! Form::label('Event Image (Optional)') !!} {!! add_help('This image is used on the concept page as a header.') !!}
{!! Form::file('image') !!}
Recommended size: None (Choose a standard size for all concept header images.)
@if (isset($concept->image_extension))
{!! Form::checkbox('remove_image', 1, false, ['class' => 'form-check-input', 'data-toggle' => 'toggle', 'data-off' => 'Leave Header Image As-Is', 'data-on' => 'Remove Current Header Image']) !!}
@endif
{!! Form::label('Description (Optional)') !!}
{!! Form::textarea('description', $concept->description, ['class' => 'form-control wysiwyg']) !!}
@if ($concept->id)

Attachments

@include('widgets._attachment_select', ['attachments' => $concept->attachments])
@if ($concept->attachers->count()) @endif
@endif
{!! Form::checkbox('is_active', 1, $concept->id ? $concept->is_active : 1, ['class' => 'form-check-input', 'data-toggle' => 'toggle']) !!} {!! Form::label('is_active', 'Set Active', ['class' => 'form-check-label ml-3']) !!} {!! add_help('If turned off, the category will not be visible to regular users.') !!}
{!! Form::submit($concept->id ? 'Edit' : 'Create', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @include('widgets._attachment_select_row') @endsection @section('scripts') @parent @include('js._attachment_js') @endsection