@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/settings/general.general_title') }} @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content') {{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form' ]) }} {{csrf_field()}}

{{ trans('admin/settings/general.general_settings') }}

{{ Form::label('full_multiple_companies_support', trans('admin/settings/general.full_multiple_companies_support_text')) }}
{{ Form::checkbox('full_multiple_companies_support', '1', old('full_multiple_companies_support', $setting->full_multiple_companies_support),array('class' => 'minimal', 'aria-label'=>'full_multiple_companies_support')) }} {{ trans('admin/settings/general.full_multiple_companies_support_text') }} {!! $errors->first('full_multiple_companies_support', '') !!}

{{ trans('admin/settings/general.full_multiple_companies_support_help_text') }}

{{ Form::label('require_accept_signature', trans('admin/settings/general.require_accept_signature')) }}
{{ Form::checkbox('require_accept_signature', '1', Request::old('require_accept_signature', $setting->require_accept_signature),array('class' => 'minimal')) }} {{ trans('general.yes') }} {!! $errors->first('require_accept_signature', '') !!}

{{ trans('admin/settings/general.require_accept_signature_help_text') }}

{{ Form::label('email_domain', trans('general.email_domain')) }}
{{ Form::text('email_domain', Request::old('email_domain', $setting->email_domain), array('class' => 'form-control','placeholder' => 'example.com')) }} {{ trans('general.email_domain_help') }} {!! $errors->first('email_domain', '') !!}
{{ Form::label('email_format', trans('general.email_format')) }}
{!! Form::username_format('email_format', old('email_format', $setting->email_format), 'select2') !!} {!! $errors->first('email_format', '') !!}
{{ Form::label('username_format', trans('general.username_format')) }}
{!! Form::username_format('username_format', old('username_format', $setting->username_format), 'select2') !!} {!! $errors->first('username_format', '') !!}

{{ trans('admin/settings/general.username_format_help') }}

{{ Form::label('show_images_in_email', trans('admin/settings/general.show_images_in_email')) }}
{{ Form::checkbox('show_images_in_email', '1', Request::old('show_images_in_email', $setting->show_images_in_email),array('class' => 'minimal')) }} {{ trans('general.yes') }} {!! $errors->first('show_images_in_email', '') !!}
{{ Form::label('unique_serial', trans('admin/settings/general.unique_serial')) }}
{{ Form::checkbox('unique_serial', '1', Request::old('unique_serial', $setting->unique_serial),array('class' => 'minimal')) }} {{ trans('general.yes') }} {!! $errors->first('unique_serial', '') !!}

{{ trans('admin/settings/general.unique_serial_help_text') }}

{{ Form::label('per_page', trans('admin/settings/general.per_page')) }}
{{ Form::text('per_page', old('per_page', $setting->per_page), array('class' => 'form-control','placeholder' => '5', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} {!! $errors->first('per_page', '') !!}
{{ Form::label('thumbnail_max_h', trans('admin/settings/general.thumbnail_max_h')) }}
{{ Form::text('thumbnail_max_h', Request::old('thumbnail_max_h', $setting->thumbnail_max_h), array('class' => 'form-control','placeholder' => '50', 'maxlength'=>'3', 'style'=>'width: 60px;')) }}

{{ trans('admin/settings/general.thumbnail_max_h_help') }}

{!! $errors->first('thumbnail_max_h', '') !!}
{{ Form::label('default_eula_text', trans('admin/settings/general.default_eula_text')) }}
{{ Form::textarea('default_eula_text', old('default_eula_text', $setting->default_eula_text), array('class' => 'form-control','placeholder' => 'Add your default EULA text')) }} {!! $errors->first('default_eula_text', '') !!}

{{ trans('admin/settings/general.default_eula_help_text') }}

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

{{ Form::label('login_note', trans('admin/settings/general.login_note')) }}
@if (config('app.lock_passwords')) {!! $errors->first('login_note', '') !!}

{{ trans('general.feature_disabled') }}

@else {!! $errors->first('login_note', '') !!} @endif

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

{{ Form::label('login_note', 'Test Mail') }}

{{ trans('admin/settings/general.mail_test_help', array('replyto' => config('mail.reply_to.address'))) }}

{{ Form::label('dashboard_message', trans('admin/settings/general.dashboard_message')) }}
@if (config('app.lock_passwords')) {!! $errors->first('dashboard_message', '') !!}

{{ trans('general.feature_disabled') }}

@else {!! $errors->first('dashboard_message', '') !!} @endif

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

{{ Form::label('show_archived_in_list', trans('admin/settings/general.show_archived_in_list')) }}
{{ Form::checkbox('show_archived_in_list', '1', Request::old('show_archived_in_list', $setting->show_archived_in_list),array('class' => 'minimal')) }} {{ trans('admin/settings/general.show_archived_in_list_text') }} {!! $errors->first('show_archived_in_list', '') !!}
{{ Form::label('show_assigned_assets', trans('admin/settings/general.show_assigned_assets')) }}
{{ Form::checkbox('show_assigned_assets', '1', Request::old('show_assigned_assets', $setting->show_assigned_assets),array('class' => 'minimal')) }} {{ trans('general.yes') }}

{{ trans('admin/settings/general.show_assigned_assets_help') }}

{!! $errors->first('show_assigned_assets', ':message') !!}
{{ Form::label('show_in_model_list', trans('admin/settings/general.show_in_model_list')) }}
{{ Form::checkbox('show_in_model_list[]', 'image', old('show_in_model_list', $snipeSettings->modellistCheckedValue('image')),array('class' => 'minimal', 'aria-label'=>'show_in_model_list' )) }} {{ trans('general.image') }}
{{ Form::checkbox('show_in_model_list[]', 'category', old('show_in_model_list', $snipeSettings->modellistCheckedValue('category')),array('class' => 'minimal', 'aria-label'=>'show_in_model_list' )) }} {{ trans('general.category') }}
{{ Form::checkbox('show_in_model_list[]', 'manufacturer', old('show_in_model_list', $snipeSettings->modellistCheckedValue('manufacturer')),array('class' => 'minimal', 'aria-label'=>'show_in_model_list' )) }} {{ trans('general.manufacturer') }}
{{ Form::checkbox('show_in_model_list[]', 'model_number', old('show_in_model_list', $snipeSettings->modellistCheckedValue('model_number')),array('class' => 'minimal', 'aria-label'=>'show_in_model_list' )) }} {{ trans('general.model_no') }}
{{ Form::label('show_in_model_list', trans('general.pie_chart_type')) }}
{{ Form::select('dash_chart_type', array( 'name' => 'Status Label Name', 'type' => 'Status Label Type'), Request::old('dash_chart_type', $setting->dash_chart_type), ['class' =>'select2', 'style' => 'width: 80%']) }}
{{ Form::label('depreciation_method', trans('Depreciation method')) }}
{{ Form::select('depreciation_method', array( 'default' => 'Linear (default)', 'half_1' => 'Half-year convention, always applied', 'half_2' => 'Half-year convention, applied with condition', ), Request::old('username_format', $setting->depreciation_method), ['class' =>'select2', 'style' => 'width: 80%']) }}
{{ Form::label('privacy_policy_link', trans('admin/settings/general.privacy_policy_link')) }}
@if (config('app.lock_passwords')) {{ Form::text('privacy_policy_link', Request::old('privacy_policy_link', $setting->privacy_policy_link), array('class' => 'form-control disabled', 'disabled' => 'disabled')) }} @else {{ Form::text('privacy_policy_link', Request::old('privacy_policy_link', $setting->privacy_policy_link), array('class' => 'form-control')) }} @endif {{ trans('admin/settings/general.privacy_policy_link_help') }} {!! $errors->first('privacy_policy_link', '') !!} @if (config('app.lock_passwords')===true)

{{ trans('general.feature_disabled') }}

@endif
{{ Form::close() }} @stop @section('moar_scripts') @stop