@extends('layouts/default') {{-- Page title --}} @section('title') Update General Settings @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', Input::old('full_multiple_companies_support', $setting->full_multiple_companies_support),array('class' => 'minimal')) }} {{ trans('admin/settings/general.full_multiple_companies_support_text') }} {!! $errors->first('full_multiple_companies_support', ':message') !!}

{{ 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', Input::old('require_accept_signature', $setting->require_accept_signature),array('class' => 'minimal')) }} {{ trans('general.yes') }} {!! $errors->first('require_accept_signature', ':message') !!}

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

{{ Form::label('email_domain', trans('general.email_domain')) }}
{{ Form::text('email_domain', Input::old('email_domain', $setting->email_domain), array('class' => 'form-control','placeholder' => 'example.com')) }} {{ trans('general.email_domain_help') }} {!! $errors->first('email_domain', ':message') !!}
{{ Form::label('email_format', trans('general.email_format')) }}
{!! Form::username_format('email_format', Input::old('email_format', $setting->email_format), 'select2') !!} {!! $errors->first('email_format', ':message') !!}
{{ Form::label('username_format', trans('general.username_format')) }}
{!! Form::username_format('username_format', Input::old('username_format', $setting->username_format), 'select2') !!} {!! $errors->first('username_format', ':message') !!}
{{ Form::label('show_images_in_email', trans('admin/settings/general.show_images_in_email')) }}
{{ Form::checkbox('show_images_in_email', '1', Input::old('show_images_in_email', $setting->show_images_in_email),array('class' => 'minimal')) }} {{ trans('general.yes') }} {!! $errors->first('show_images_in_email', ':message') !!}

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

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

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

{{ Form::label('per_page', trans('admin/settings/general.per_page')) }}
{{ Form::text('per_page', Input::old('per_page', $setting->per_page), array('class' => 'form-control','placeholder' => '5', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} {!! $errors->first('per_page', ':message') !!}
{{ Form::label('thumbnail_max_h', trans('admin/settings/general.thumbnail_max_h')) }}
{{ Form::text('thumbnail_max_h', Input::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', ':message') !!}
{{ Form::label('default_eula_text', trans('admin/settings/general.default_eula_text')) }}
{{ Form::textarea('default_eula_text', Input::old('default_eula_text', $setting->default_eula_text), array('class' => 'form-control','placeholder' => 'Add your default EULA text')) }} {!! $errors->first('default_eula_text', ':message') !!}

{{ 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', ':message') !!}

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

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

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

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

This will attempt to send a test mail to {{ config('mail.reply_to.address') }}.

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

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

@else {!! $errors->first('dashboard_message', ':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', Input::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', ':message') !!}
{{ Form::label('show_in_model_list', trans('admin/settings/general.show_in_model_list')) }}
{{ Form::checkbox('show_in_model_list[]', 'image', Input::old('show_in_model_list', $snipeSettings->modellistCheckedValue('image')),array('class' => 'minimal')) }} {{ trans('general.image') }}
{{ Form::checkbox('show_in_model_list[]', 'category', Input::old('show_in_model_list', $snipeSettings->modellistCheckedValue('category')),array('class' => 'minimal')) }} {{ trans('general.category') }}
{{ Form::checkbox('show_in_model_list[]', 'manufacturer', Input::old('show_in_model_list', $snipeSettings->modellistCheckedValue('manufacturer')),array('class' => 'minimal')) }} {{ trans('general.manufacturer') }}
{{ Form::checkbox('show_in_model_list[]', 'model_number', Input::old('show_in_model_list', $snipeSettings->modellistCheckedValue('model_number')),array('class' => 'minimal')) }} {{ trans('general.model_no') }}
{{ 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', ), Input::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', Input::old('privacy_policy_link', $setting->privacy_policy_link), array('class' => 'form-control disabled', 'disabled' => 'disabled')) }} @else {{ Form::text('privacy_policy_link', Input::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', ':message') !!}
{{ Form::close() }} @stop @section('moar_scripts') @stop