@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/settings/general.update') }} @parent @stop {{-- Page content --}} @section('content') {{ Form::open(['method' => 'POST', 'files' => true, 'class' => 'form-horizontal', 'role' => 'form' ]) }} {{ Form::hidden('_token', csrf_token()) }}

{{ Form::label('site_name', trans('admin/settings/general.site_name')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('site_name', Input::old('site_name', $setting->site_name), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => 'Snipe-IT Asset Management')) }} @else {{ Form::text('site_name', Input::old('site_name', $setting->site_name), array('class' => 'form-control','placeholder' => 'Snipe-IT Asset Management')) }} @endif {!! $errors->first('site_name', ':message') !!}
{{ Form::label('site_name', trans('admin/settings/general.default_language')) }}
{!! Form::locales('locale', Input::old('locale', $setting->locale), 'select2') !!} {!! $errors->first('locale', ':message') !!}
{{ 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('logo', trans('admin/settings/general.logo')) }}
@if (config('app.lock_passwords'))

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

@else {{ Form::file('logo_img') }} {!! $errors->first('logo', ':message') !!} {{ Form::checkbox('clear_logo', '1', Input::old('clear_logo'),array('class' => 'minimal')) }} Remove @endif
{{ Form::label('brand', trans('admin/settings/general.brand')) }}
{!! Form::select('brand', array('1'=>'Text','2'=>'Logo','3'=>'Logo + Text'), Input::old('brand', $setting->brand), array('class' => 'form-control', 'style'=>'width: 150px ;')) !!} {!! $errors->first('brand', ':message') !!}
{{ Form::label('default_currency', trans('admin/settings/general.default_currency')) }}
{{ Form::text('default_currency', Input::old('default_currency', $setting->default_currency), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} {!! $errors->first('default_currency', ':message') !!}
{{ Form::label('alert_email', trans('admin/settings/general.alert_email')) }}
{{ Form::text('alert_email', Input::old('alert_email', $setting->alert_email), array('class' => 'form-control','placeholder' => 'admin@yourcompany.com', 'rel' => 'txtTooltip', 'title' =>'Email addresses or distribution lists you want alerts to be sent to, comma separated.', 'data-toggle' =>'tooltip', 'data-placement'=>'top')) }} {!! $errors->first('alert_email', ':message
') !!} {{ Form::checkbox('alerts_enabled', '1', Input::old('alerts_enabled', $setting->alerts_enabled),array('class' => 'minimal')) }} {{ trans('admin/settings/general.alerts_enabled') }}
{{ Form::label('header_color', trans('admin/settings/general.header_color')) }}
{{ Form::text('header_color', Input::old('header_color', $setting->header_color), array('class' => 'form-control', 'style' => 'width: 100px;','placeholder' => '#FF0000')) }}
{!! $errors->first('header_color', ':message') !!}
{{ Form::label('custom_css', trans('admin/settings/general.custom_css')) }}
@if (config('app.lock_passwords')===true) {{ Form::textarea('custom_css', Input::old('custom_css', $setting->custom_css), array('class' => 'form-control','placeholder' => 'Add your custom CSS','disabled'=>'disabled')) }} {!! $errors->first('custom_css', ':message') !!}

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

@else {{ Form::textarea('custom_css', Input::old('custom_css', $setting->custom_css), array('class' => 'form-control','placeholder' => 'Add your custom CSS')) }} {!! $errors->first('custom_css', ':message') !!} @endif

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

{{ Form::label('load_remote', trans('admin/settings/general.load_remote_text')) }}
{{ Form::checkbox('load_remote', '1', Input::old('load_remote', $setting->load_remote),array('class' => 'minimal')) }} {{ trans('admin/settings/general.load_remote_help_text') }}
{{ Form::label('auto_increment_assets', trans('admin/settings/general.asset_ids')) }}
{{ Form::checkbox('auto_increment_assets', '1', Input::old('auto_increment_assets', $setting->auto_increment_assets),array('class' => 'minimal')) }} {{ trans('admin/settings/general.auto_increment_assets') }}
{{ Form::label('auto_increment_prefix', trans('admin/settings/general.auto_increment_prefix')) }}
@if ($setting->auto_increment_assets == 1) {{ Form::text('auto_increment_prefix', Input::old('auto_increment_prefix', $setting->auto_increment_prefix), array('class' => 'form-control', 'style'=>'width: 100px;')) }} {!! $errors->first('auto_increment_prefix', ':message') !!} @else {{ Form::text('auto_increment_prefix', Input::old('auto_increment_prefix', $setting->auto_increment_prefix), array('class' => 'form-control', 'disabled'=>'disabled', 'style'=>'width: 100px;')) }} @endif
@if ($is_gd_installed)
{{ Form::label('qr_code', trans('admin/settings/general.display_qr')) }}
{{ Form::checkbox('qr_code', '1', Input::old('qr_code', $setting->qr_code),array('class' => 'minimal')) }} {{ trans('admin/settings/general.display_qr') }}
{{ Form::label('barcode_type', trans('admin/settings/general.barcode_type')) }}
{!! Form::barcode_types('barcode_type', Input::old('barcode_type', $setting->barcode_type), 'select2') !!} {!! $errors->first('barcode_type', ' :message') !!}
@else {{ trans('admin/settings/general.php_gd_warning') }}
{{ trans('admin/settings/general.php_gd_info') }}
@endif
{{ Form::label('qr_text', trans('admin/settings/general.qr_text')) }}
@if ($setting->qr_code == 1) {{ Form::text('qr_text', Input::old('qr_text', $setting->qr_text), array('class' => 'form-control','placeholder' => 'Property of Your Company', 'rel' => 'txtTooltip', 'title' =>'Extra text that you would like to display on your labels. ', 'data-toggle' =>'tooltip', 'data-placement'=>'top')) }} {!! $errors->first('qr_text', ':message') !!} @else {{ Form::text('qr_text', Input::old('qr_text', $setting->qr_text), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => 'Property of Your Company')) }}

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

@endif
{{ Form::label('labels_per_page', trans('admin/settings/general.labels_per_page')) }}
{{ Form::text('labels_per_page', Input::old('labels_per_page', $setting->labels_per_page), array('class' => 'form-control','style' => 'width: 100px;')) }} {!! $errors->first('labels_per_page', ':message') !!}
{{ Form::label('labels_width', trans('admin/settings/general.labels_fontsize')) }}
{{ Form::text('labels_fontsize', Input::old('labels_fontsize', $setting->labels_fontsize), array('class' => 'form-control')) }}
{{ trans('admin/settings/general.text_pt') }}
{!! $errors->first('labels_fontsize', ':message') !!}
{{ Form::label('labels_width', trans('admin/settings/general.label_dimensions')) }}
{{ Form::text('labels_width', Input::old('labels_width', $setting->labels_width), array('class' => 'form-control')) }}
{{ trans('admin/settings/general.width_w') }}
{{ Form::text('labels_height', Input::old('labels_height', $setting->labels_height), array('class' => 'form-control')) }}
{{ trans('admin/settings/general.height_h') }}
{!! $errors->first('labels_width', ':message') !!} {!! $errors->first('labels_height', ':message') !!}
{{ Form::label('labels_width', trans('admin/settings/general.label_gutters')) }}
{{ Form::text('labels_display_bgutter', Input::old('labels_display_bgutter', $setting->labels_display_bgutter), array('class' => 'form-control')) }}
{{ trans('admin/settings/general.horizontal') }}
{{ Form::text('labels_display_sgutter', Input::old('labels_display_sgutter', $setting->labels_display_sgutter), array('class' => 'form-control')) }}
{{ trans('admin/settings/general.vertical') }}
{!! $errors->first('labels_display_bgutter', ':message') !!} {!! $errors->first('labels_display_sgutter', ':message') !!}
{{ Form::label('labels_width', trans('admin/settings/general.page_padding')) }}
{{ Form::text('labels_pmargin_top', Input::old('labels_pmargin_top', $setting->labels_pmargin_top), array('class' => 'form-control')) }}
{{ trans('admin/settings/general.top') }}
{{ Form::text('labels_pmargin_right', Input::old('labels_pmargin_right', $setting->labels_pmargin_right), array('class' => 'form-control')) }}
{{ trans('admin/settings/general.right') }}
{{ Form::text('labels_pmargin_bottom', Input::old('labels_pmargin_bottom', $setting->labels_pmargin_bottom), array('class' => 'form-control')) }}
{{ trans('admin/settings/general.bottom') }}
{{ Form::text('labels_pmargin_left', Input::old('labels_pmargin_left', $setting->labels_pmargin_left), array('class' => 'form-control')) }}
{{ trans('admin/settings/general.left') }}
{!! $errors->first('labels_width', ':message') !!} {!! $errors->first('labels_height', ':message') !!}
{{ Form::label('labels_width', trans('admin/settings/general.page_dimensions')) }}
{{ Form::text('labels_pagewidth', Input::old('labels_pagewidth', $setting->labels_pagewidth), array('class' => 'form-control')) }}
{{ trans('admin/settings/general.width_w') }}
{{ Form::text('labels_pageheight', Input::old('labels_pageheight', $setting->labels_pageheight), array('class' => 'form-control')) }}
{{ trans('admin/settings/general.height_h') }}
{!! $errors->first('labels_pagewidth', ':message') !!} {!! $errors->first('labels_pageheight', ':message') !!}
{{ Form::label('labels_width', trans('admin/settings/general.label_fields')) }}
{{ 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') !!}

{!! trans('admin/settings/general.slack_integration_help',array('slack_link' => 'https://my.slack.com/services/new/incoming-webhook')) !!}

{{ Form::label('slack_endpoint', trans('admin/settings/general.slack_endpoint')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('slack_endpoint', Input::old('slack_endpoint', $setting->slack_endpoint), array('class' => 'form-control','disabled'=>'disabled','placeholder' => 'https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXX')) }} @else {{ Form::text('slack_endpoint', Input::old('slack_endpoint', $setting->slack_endpoint), array('class' => 'form-control','placeholder' => 'https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXX')) }} @endif {!! $errors->first('slack_endpoint', ':message') !!}
{{ Form::label('slack_channel', trans('admin/settings/general.slack_channel')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('slack_channel', Input::old('slack_channel', $setting->slack_channel), array('class' => 'form-control','disabled'=>'disabled','placeholder' => '#IT-Ops')) }} @else {{ Form::text('slack_channel', Input::old('slack_channel', $setting->slack_channel), array('class' => 'form-control','placeholder' => '#IT-Ops')) }} @endif {!! $errors->first('slack_channel', ':message') !!}
{{ Form::label('ldap_integration', trans('admin/settings/general.ldap_integration')) }}
{{ Form::checkbox('ldap_enabled', '1', Input::old('ldap_enabled', $setting->ldap_enabled),array('class' => 'minimal')) }} {{ trans('admin/settings/general.ldap_enabled') }} {!! $errors->first('ldap_enabled', ':message') !!}
{{ Form::label('ldap_server', trans('admin/settings/general.ldap_server')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('ldap_server', Input::old('ldap_server', $setting->ldap_server), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => 'ldap://ldap.example.com')) }} @else {{ Form::text('ldap_server', Input::old('ldap_server', $setting->ldap_server), array('class' => 'form-control','placeholder' => 'ldap://ldap.example.com')) }} @endif {!! $errors->first('ldap_server', ':message') !!}
{{ Form::label('ldap_server_cert_ignore', trans('admin/settings/general.ldap_server_cert')) }}
{{ Form::checkbox('ldap_server_cert_ignore', '1', Input::old('ldap_server_cert_ignore', $setting->ldap_server_cert_ignore),array('class' => 'minimal')) }} {{ trans('admin/settings/general.ldap_server_cert_ignore') }} {!! $errors->first('ldap_server_cert_ignore', ':message') !!}

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

{{ Form::label('ldap_uname', trans('admin/settings/general.ldap_uname')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('ldap_uname', Input::old('ldap_uname', $setting->ldap_uname), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => 'binduser@example.com')) }} @else {{ Form::text('ldap_uname', Input::old('ldap_uname', $setting->ldap_uname), array('class' => 'form-control','placeholder' => 'binduser@example.com')) }} @endif {!! $errors->first('ldap_uname', ':message') !!}
{{ Form::label('ldap_pword', trans('admin/settings/general.ldap_pword')) }}
@if (config('app.lock_passwords')) {{ Form::password('ldap_pword', array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => 'binduserpassword')) }} @else {{ Form::password('ldap_pword', array('class' => 'form-control','placeholder' => 'binduserpassword')) }} @endif {!! $errors->first('ldap_pword', ':message') !!}
{{ Form::label('ldap_basedn', trans('admin/settings/general.ldap_basedn')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('ldap_basedn', Input::old('ldap_basedn', $setting->ldap_basedn), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => 'cn=users/authorized,dc=example,dc=com')) }} @else {{ Form::text('ldap_basedn', Input::old('ldap_basedn', $setting->ldap_basedn), array('class' => 'form-control','placeholder' => 'cn=users/authorized,dc=example,dc=com')) }} @endif {!! $errors->first('ldap_basedn', ':message') !!}
{{ Form::label('ldap_filter', trans('admin/settings/general.ldap_filter')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('ldap_filter', Input::old('ldap_filter', $setting->ldap_filter), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => 'cn=users/authorized,dc=example,dc=com')) }} @else {{ Form::text('ldap_filter', Input::old('ldap_filter', $setting->ldap_filter), array('class' => 'form-control','placeholder' => 'cn=users/authorized,dc=example,dc=com')) }} @endif {!! $errors->first('ldap_filter', ':message') !!}
{{ Form::label('ldap_username_field', trans('admin/settings/general.ldap_username_field')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('ldap_username_field', Input::old('ldap_username_field', $setting->ldap_username_field), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => 'samaccountname')) }} @else {{ Form::text('ldap_username_field', Input::old('ldap_username_field', $setting->ldap_username_field), array('class' => 'form-control','placeholder' => 'samaccountname')) }} @endif {!! $errors->first('ldap_username_field', ':message') !!}
{{ Form::label('ldap_lname_field', trans('admin/settings/general.ldap_lname_field')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('ldap_lname_field', Input::old('ldap_lname_field', $setting->ldap_lname_field), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => 'sn')) }} @else {{ Form::text('ldap_lname_field', Input::old('ldap_lname_field', $setting->ldap_lname_field), array('class' => 'form-control','placeholder' => 'sn')) }} @endif {!! $errors->first('ldap_lname_field', ':message') !!}
{{ Form::label('ldap_fname_field', trans('admin/settings/general.ldap_fname_field')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('ldap_fname_field', Input::old('ldap_fname_field', $setting->ldap_fname_field), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => 'givenname')) }} @else {{ Form::text('ldap_fname_field', Input::old('ldap_fname_field', $setting->ldap_fname_field), array('class' => 'form-control','placeholder' => 'givenname')) }} @endif {!! $errors->first('ldap_fname_field', ':message') !!}
{{ Form::label('ldap_auth_filter_query', trans('admin/settings/general.ldap_auth_filter_query')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('ldap_auth_filter_query', Input::old('ldap_auth_filter_query', $setting->ldap_auth_filter_query), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => '"uid="')) }} @else {{ Form::text('ldap_auth_filter_query', Input::old('ldap_auth_filter_query', $setting->ldap_auth_filter_query), array('class' => 'form-control','placeholder' => '"uid="')) }} @endif {!! $errors->first('ldap_auth_filter_query', ':message') !!}
{{ Form::label('ldap_version', trans('admin/settings/general.ldap_version')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('ldap_version', Input::old('ldap_version', $setting->ldap_version), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => '3')) }} @else {{ Form::text('ldap_version', Input::old('ldap_version', $setting->ldap_version), array('class' => 'form-control','placeholder' => '3')) }} @endif {!! $errors->first('ldap_version', ':message') !!}
{{ Form::label('ldap_active_flag', trans('admin/settings/general.ldap_active_flag')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('ldap_active_flag', Input::old('ldap_active_flag', $setting->ldap_active_flag), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => '')) }} @else {{ Form::text('ldap_active_flag', Input::old('ldap_active_flag', $setting->ldap_active_flag), array('class' => 'form-control','placeholder' => '')) }} @endif {!! $errors->first('ldap_active_flag', ':message') !!}
{{ Form::label('ldap_emp_num', trans('admin/settings/general.ldap_emp_num')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('ldap_emp_num', Input::old('ldap_emp_num', $setting->ldap_emp_num), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => '')) }} @else {{ Form::text('ldap_emp_num', Input::old('ldap_emp_num', $setting->ldap_emp_num), array('class' => 'form-control','placeholder' => '')) }} @endif {!! $errors->first('ldap_emp_num', ':message') !!}
{{ Form::label('ldap_email', trans('admin/settings/general.ldap_email')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('ldap_email', Input::old('ldap_email', $setting->ldap_email), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => '')) }} @else {{ Form::text('ldap_email', Input::old('ldap_email', $setting->ldap_email), array('class' => 'form-control','placeholder' => '')) }} @endif {!! $errors->first('ldap_email', ':message') !!}
@section('moar_scripts') @stop @stop