@extends('layouts/default') {{-- Page title --}} @section('title') @if ($category->id) {{ trans('admin/categories/general.update') }} @else {{ trans('admin/categories/general.create') }} @endif @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content')
@if ($category->id)

{{ $category->name }}

@endif
{{ Form::label('name', trans('admin/categories/general.category_name')) }}
{!! $errors->first('name', ' :message') !!}
{{ Form::label('category_type', trans('general.type')) }}
{{ Form::select('category_type', $category_types , Input::old('category_type', $category->category_type), array('class'=>'select2', 'style'=>'min-width:350px', $category->itemCount() > 0 ? 'disabled' : '')) }} {!! $errors->first('category_type', ' :message') !!}
{{ Form::label('eula_text', trans('admin/categories/general.eula_text')) }}
{{ Form::textarea('eula_text', Input::old('eula_text', $category->eula_text), array('class' => 'form-control')) }}

{!! trans('admin/categories/general.eula_text_help') !!}

{!! trans('admin/settings/general.eula_markdown') !!}

{!! $errors->first('eula_text', ':message') !!}

{{ trans('admin/categories/general.about_asset_categories') }}

{{ trans('admin/categories/general.about_categories') }}

@if (\App\Models\Setting::getSettings()->default_eula_text!='') @endif @stop