2017-07-07 23:44:48 -07:00
@ extends ( 'layouts/default' )
{{ -- Page title -- }}
@ section ( 'title' )
2021-11-19 06:23:48 -08:00
{{ trans ( 'admin/settings/general.general_title' ) }}
2017-07-07 23:44:48 -07:00
@ parent
@ stop
@ section ( 'header_right' )
2020-04-01 03:21:15 -07:00
< a href = " { { route('settings.index') }} " class = " btn btn-primary " > {{ trans ( 'general.back' ) }} </ a >
2017-07-07 23:44:48 -07:00
@ stop
{{ -- Page content -- }}
@ section ( 'content' )
2023-08-22 06:10:39 -07:00
2017-07-07 23:44:48 -07:00
2017-10-17 17:18:17 -07:00
{{ Form :: open ([ 'method' => 'POST' , 'files' => false , 'autocomplete' => 'off' , 'class' => 'form-horizontal' , 'role' => 'form' ]) }}
2017-07-07 23:44:48 -07:00
<!-- CSRF Token -->
{{ csrf_field ()}}
< div class = " row " >
< div class = " col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 " >
< div class = " panel box box-default " >
< div class = " box-header with-border " >
2020-04-01 03:21:15 -07:00
< h2 class = " box-title " >
2021-09-26 01:11:08 -07:00
< i class = " fas fa-wrench " aria - hidden = " true " ></ i >
2020-03-31 22:50:38 -07:00
{{ trans ( 'admin/settings/general.general_settings' ) }}
2020-04-01 03:21:15 -07:00
</ h2 >
2017-07-07 23:44:48 -07:00
</ div >
2018-03-03 17:07:28 -08:00
< div class = " box-body " >
2017-07-07 23:44:48 -07:00
< div class = " col-md-12 " >
<!-- Full Multiple Companies Support -->
< div class = " form-group { { $errors->has ('full_multiple_companies_support') ? 'error' : '' }} " >
< div class = " col-md-3 " >
2023-04-03 22:38:56 -07:00
< strong > {{ trans ( 'admin/settings/general.full_multiple_companies_support_text' ) }} </ strong >
2017-07-07 23:44:48 -07:00
</ div >
< div class = " col-md-9 " >
2023-04-03 22:38:56 -07:00
< label class = " form-control " >
{{ Form :: checkbox ( 'full_multiple_companies_support' , '1' , old ( 'full_multiple_companies_support' , $setting -> full_multiple_companies_support ), array ( 'aria-label' => 'full_multiple_companies_support' )) }}
{{ trans ( 'admin/settings/general.full_multiple_companies_support_text' ) }}
</ label >
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'full_multiple_companies_support' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2017-07-07 23:44:48 -07:00
< p class = " help-block " >
{{ trans ( 'admin/settings/general.full_multiple_companies_support_help_text' ) }}
</ p >
</ div >
</ div >
2018-03-03 17:07:28 -08:00
2017-07-07 23:44:48 -07:00
<!-- /. form - group -->
<!-- Require signature for acceptance -->
< div class = " form-group { { $errors->has ('require_accept_signature') ? 'error' : '' }} " >
< div class = " col-md-3 " >
2023-04-03 22:38:56 -07:00
< strong > {{ trans ( 'admin/settings/general.require_accept_signature' ) }} </ strong >
2017-07-07 23:44:48 -07:00
</ div >
< div class = " col-md-9 " >
2023-04-03 22:38:56 -07:00
< label class = " form-control " >
2024-06-27 07:05:47 -07:00
{{ Form :: checkbox ( 'require_accept_signature' , '1' , old ( 'require_accept_signature' , $setting -> require_accept_signature )) }}
2023-04-03 22:38:56 -07:00
{{ trans ( 'general.yes' ) }}
</ label >
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'require_accept_signature' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2017-07-07 23:44:48 -07:00
< p class = " help-block " > {{ trans ( 'admin/settings/general.require_accept_signature_help_text' ) }} </ p >
</ div >
</ div >
<!-- /. form - group -->
<!-- Email domain -->
< div class = " form-group { { $errors->has ('email_domain') ? 'error' : '' }} " >
< div class = " col-md-3 " >
{{ Form :: label ( 'email_domain' , trans ( 'general.email_domain' )) }}
</ div >
< div class = " col-md-9 " >
2024-06-27 07:05:47 -07:00
{{ Form :: text ( 'email_domain' , old ( 'email_domain' , $setting -> email_domain ), array ( 'class' => 'form-control' , 'placeholder' => 'example.com' )) }}
2017-07-07 23:44:48 -07:00
< span class = " help-block " > {{ trans ( 'general.email_domain_help' ) }} </ span >
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'email_domain' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2017-07-07 23:44:48 -07:00
</ div >
</ div >
<!-- Email format -->
< div class = " form-group { { $errors->has ('email_format') ? 'error' : '' }} " >
< div class = " col-md-3 " >
{{ Form :: label ( 'email_format' , trans ( 'general.email_format' )) }}
</ div >
< div class = " col-md-9 " >
2020-04-21 03:58:31 -07:00
{ !! Form :: username_format ( 'email_format' , old ( 'email_format' , $setting -> email_format ), 'select2' ) !! }
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'email_format' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2017-07-07 23:44:48 -07:00
</ div >
</ div >
<!-- Username format -->
< div class = " form-group { { $errors->has ('username_format') ? 'error' : '' }} " >
< div class = " col-md-3 " >
{{ Form :: label ( 'username_format' , trans ( 'general.username_format' )) }}
</ div >
< div class = " col-md-9 " >
2020-04-21 03:58:31 -07:00
{ !! Form :: username_format ( 'username_format' , old ( 'username_format' , $setting -> username_format ), 'select2' ) !! }
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'username_format' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2017-07-07 23:44:48 -07:00
2019-04-02 18:22:31 -07:00
< p class = " help-block " >
{{ trans ( 'admin/settings/general.username_format_help' ) }}
</ p >
2017-07-07 23:44:48 -07:00
</ div >
</ div >
2024-06-24 06:02:53 -07:00
<!-- user profile edit checkbox -->
< div class = " form-group " >
< div class = " col-md-3 " >
< label >
{{ trans ( 'admin/settings/general.profile_edit' ) }}
</ label >
</ div >
< div class = " col-md-8 " >
< label class = " form-control " >
< input type = " checkbox " value = " 1 " name = " profile_edit " {{ ( old ( 'profile_edit' , $setting -> profile_edit )) == '1' ? ' checked="checked"' : '' }} aria - label = " profile_edit " >
{{ trans ( 'admin/settings/general.profile_edit_help' ) }}
</ label >
</ div >
</ div >
2018-03-25 13:46:57 -07:00
<!-- Load images in emails -->
< div class = " form-group { { $errors->has ('show_images_in_email') ? 'error' : '' }} " >
< div class = " col-md-3 " >
2023-04-03 22:38:56 -07:00
< strong > {{ trans ( 'admin/settings/general.show_images_in_email' ) }} </ strong >
2018-03-25 13:46:57 -07:00
</ div >
< div class = " col-md-9 " >
2023-04-03 22:38:56 -07:00
< label class = " form-control " >
{{ Form :: checkbox ( 'show_images_in_email' , '1' , old ( 'show_images_in_email' , $setting -> show_images_in_email )) }}
{{ trans ( 'general.yes' ) }}
{ !! $errors -> first ( 'show_images_in_email' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
</ label >
2019-04-02 18:22:31 -07:00
2018-03-25 13:46:57 -07:00
</ div >
</ div >
2024-02-05 10:23:52 -08:00
2018-07-05 19:30:36 -07:00
<!-- unique serial -->
< div class = " form-group " >
< div class = " col-md-3 " >
2023-04-03 22:38:56 -07:00
< strong > {{ trans ( 'admin/settings/general.unique_serial' ) }} </ strong >
2018-07-05 19:30:36 -07:00
</ div >
< div class = " col-md-9 " >
2023-04-03 22:38:56 -07:00
< label class = " form-control " >
2024-06-27 07:05:47 -07:00
{{ Form :: checkbox ( 'unique_serial' , '1' , old ( 'unique_serial' , $setting -> unique_serial ), array ( 'class' => 'minimal' )) }}
2023-04-03 22:38:56 -07:00
{{ trans ( 'general.yes' ) }}
2024-02-05 10:23:52 -08:00
{ !! $errors -> first ( 'unique_serial' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2023-04-03 22:38:56 -07:00
</ label >
2024-02-05 10:23:52 -08:00
2018-07-05 19:30:36 -07:00
< p class = " help-block " >
{{ trans ( 'admin/settings/general.unique_serial_help_text' ) }}
</ p >
</ div >
</ div >
2024-08-06 11:07:39 -07:00
<!-- Shortcuts enable -->
< div class = " form-group { { $errors->has ('shortcuts_enabled') ? 'error' : '' }} " >
< div class = " col-md-3 " >
< strong > {{ trans ( 'admin/settings/general.shortcuts_enabled' ) }} </ strong >
</ div >
< div class = " col-md-9 " >
< label class = " form-control " >
2024-08-07 10:54:06 -07:00
< input type = " checkbox " name = " shortcuts_enabled " value = " 1 " {{ old ( 'shortcuts_enabled' , $setting -> shortcuts_enabled ) ? 'checked' : '' }} >
2024-08-06 11:07:39 -07:00
{{ trans ( 'general.yes' ) }}
</ label >
{ !! $errors -> first ( 'shortcuts_enabled' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
< p class = " help-block " > { !! trans ( 'admin/settings/general.shortcuts_help_text' ) !! } </ p >
</ div >
</ div >
2018-03-25 13:46:57 -07:00
2018-07-05 19:30:36 -07:00
<!-- Per Page -->
2017-07-07 23:44:48 -07:00
< div class = " form-group { { $errors->has ('per_page') ? 'error' : '' }} " >
< div class = " col-md-3 " >
{{ Form :: label ( 'per_page' , trans ( 'admin/settings/general.per_page' )) }}
</ div >
< div class = " col-md-9 " >
2020-04-21 03:58:31 -07:00
{{ Form :: text ( 'per_page' , old ( 'per_page' , $setting -> per_page ), array ( 'class' => 'form-control' , 'placeholder' => '5' , 'maxlength' => '3' , 'style' => 'width: 60px;' )) }}
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'per_page' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2017-07-07 23:44:48 -07:00
</ div >
</ div >
2017-07-25 19:36:38 -07:00
<!-- Thumb Size -->
< div class = " form-group { { $errors->has ('thumbnail_max_h') ? 'error' : '' }} " >
< div class = " col-md-3 " >
{{ Form :: label ( 'thumbnail_max_h' , trans ( 'admin/settings/general.thumbnail_max_h' )) }}
</ div >
< div class = " col-md-9 " >
2024-06-27 07:05:47 -07:00
{{ Form :: text ( 'thumbnail_max_h' , old ( 'thumbnail_max_h' , $setting -> thumbnail_max_h ), array ( 'class' => 'form-control' , 'placeholder' => '50' , 'maxlength' => '3' , 'style' => 'width: 60px;' )) }}
2017-07-25 19:36:38 -07:00
< p class = " help-block " > {{ trans ( 'admin/settings/general.thumbnail_max_h_help' ) }} </ p >
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'thumbnail_max_h' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2017-07-25 19:36:38 -07:00
</ div >
</ div >
2017-07-07 23:44:48 -07:00
<!-- Default EULA -->
< div class = " form-group { { $errors->has ('default_eula_text') ? 'error' : '' }} " >
< div class = " col-md-3 " >
2019-03-08 12:24:24 -08:00
{{ Form :: label ( 'default_eula_text' , trans ( 'admin/settings/general.default_eula_text' )) }}
2017-07-07 23:44:48 -07:00
</ div >
< div class = " col-md-9 " >
2020-04-21 03:58:31 -07:00
{{ Form :: textarea ( 'default_eula_text' , old ( 'default_eula_text' , $setting -> default_eula_text ), array ( 'class' => 'form-control' , 'placeholder' => 'Add your default EULA text' )) }}
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'default_eula_text' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2017-07-07 23:44:48 -07:00
< p class = " help-block " > {{ trans ( 'admin/settings/general.default_eula_help_text' ) }} </ p >
< p class = " help-block " > { !! trans ( 'admin/settings/general.eula_markdown' ) !! } </ p >
</ div >
</ div >
<!-- login text -->
2018-01-19 20:43:55 -08:00
< div class = " form-group { { $errors->has ('login_note') ? 'error' : '' }} " >
2017-07-07 23:44:48 -07:00
< div class = " col-md-3 " >
{{ Form :: label ( 'login_note' , trans ( 'admin/settings/general.login_note' )) }}
</ div >
< div class = " col-md-9 " >
2017-09-22 17:23:22 -07:00
@ if ( config ( 'app.lock_passwords' ))
2017-07-07 23:44:48 -07:00
2020-04-21 03:58:31 -07:00
< textarea class = " form-control disabled " name = " login_note " placeholder = " If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you. " rows = " 2 " aria - label = " login_note " readonly > {{ old ( 'login_note' , $setting -> login_note ) }} </ textarea >
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'login_note' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2021-09-26 01:11:08 -07:00
< p class = " text-warning " >< i class = " fas fa-lock " ></ i > {{ trans ( 'general.feature_disabled' ) }} </ p >
2017-07-07 23:44:48 -07:00
@ else
2020-04-21 03:58:31 -07:00
< textarea class = " form-control " name = " login_note " aria - label = " login_note " placeholder = " If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you. " rows = " 2 " > {{ old ( 'login_note' , $setting -> login_note ) }} </ textarea >
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'login_note' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2017-07-07 23:44:48 -07:00
@ endif
< p class = " help-block " > { !! trans ( 'admin/settings/general.login_note_help' ) !! } </ p >
</ div >
</ div >
2017-10-19 06:16:03 -07:00
<!-- Mail test -->
< div class = " form-group " >
< div class = " col-md-3 " >
{{ Form :: label ( 'login_note' , 'Test Mail' ) }}
</ div >
< div class = " col-md-9 " id = " mailtestrow " >
< a class = " btn btn-default btn-sm pull-left " id = " mailtest " style = " margin-right: 10px; " >
2021-11-19 06:23:48 -08:00
{{ trans ( 'admin/settings/general.mail_test' ) }} </ a >
2017-10-19 06:16:03 -07:00
< span id = " mailtesticon " ></ span >
< span id = " mailtestresult " ></ span >
< span id = " mailteststatus " ></ span >
</ div >
< div class = " col-md-9 col-md-offset-3 " >
< div id = " mailteststatus-error " class = " text-danger " ></ div >
</ div >
< div class = " col-md-9 col-md-offset-3 " >
2022-08-09 03:32:03 -07:00
< div class = " help-block " >
2022-08-09 03:36:53 -07:00
< p > {{ trans ( 'admin/settings/general.mail_test_help' , array ( 'replyto' => config ( 'mail.reply_to.address' ))) }} </ p >
2022-08-09 03:32:03 -07:00
</ div >
2017-10-19 06:16:03 -07:00
</ div >
</ div >
2018-01-19 20:43:55 -08:00
<!-- dashboard text -->
< div class = " form-group { { $errors->has ('dashboard_message') ? 'error' : '' }} " >
< div class = " col-md-3 " >
{{ Form :: label ( 'dashboard_message' , trans ( 'admin/settings/general.dashboard_message' )) }}
</ div >
< div class = " col-md-9 " >
@ if ( config ( 'app.lock_passwords' ))
2020-04-21 03:58:31 -07:00
< textarea class = " form-control disabled " name = " login_note " placeholder = " If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you. " rows = " 2 " aria - label = " dashboard_message " readonly > {{ old ( 'dashboard_message' , $setting -> login_note ) }} </ textarea >
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'dashboard_message' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2021-09-26 01:11:08 -07:00
< p class = " text-warning " >< i class = " fas fa-lock " ></ i > {{ trans ( 'general.feature_disabled' ) }} </ p >
2018-01-19 20:43:55 -08:00
@ else
2020-04-21 03:58:31 -07:00
< textarea class = " form-control " aria - label = " dashboard_message " name = " dashboard_message " rows = " 2 " > {{ old ( 'login_note' , $setting -> dashboard_message ) }} </ textarea >
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'dashboard_message' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2018-01-19 20:43:55 -08:00
@ endif
< p class = " help-block " >
{{ trans ( 'admin/settings/general.dashboard_message_help' ) }}
{ !! trans ( 'general.github_markdown' ) !! } </ p >
</ div >
</ div >
2018-01-17 19:18:48 -08:00
<!-- Archived in List -->
< div class = " form-group { { $errors->has ('show_archived_in_list') ? 'error' : '' }} " >
< div class = " col-md-3 " >
{{ Form :: label ( 'show_archived_in_list' ,
trans ( 'admin/settings/general.show_archived_in_list' )) }}
</ div >
< div class = " col-md-9 " >
2023-08-22 06:10:39 -07:00
< label class = " form-control " >
{{ Form :: checkbox ( 'show_archived_in_list' , '1' , old ( 'show_archived_in_list' , $setting -> show_archived_in_list ), array ( 'aria-label' => 'show_archived_in_list' )) }}
{{ trans ( 'admin/settings/general.show_archived_in_list_text' ) }}
</ label >
{ !! $errors -> first ( 'show_archived_in_list' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
</ div >
2018-01-17 19:18:48 -08:00
</ div >
2019-12-06 10:57:48 -08:00
<!-- Show assets assigned to user ' s assets -->
< div class = " form-group { { $errors->has ('show_assigned_assets') ? 'error' : '' }} " >
< div class = " col-md-3 " >
{{ Form :: label ( 'show_assigned_assets' ,
trans ( 'admin/settings/general.show_assigned_assets' )) }}
</ div >
< div class = " col-md-9 " >
2023-08-22 06:10:39 -07:00
< label class = " form-control " >
2024-06-27 07:05:47 -07:00
{{ Form :: checkbox ( 'show_assigned_assets' , '1' , old ( 'show_assigned_assets' , $setting -> show_assigned_assets ), array ( 'class' => 'minimal' )) }}
2019-12-06 10:57:48 -08:00
{{ trans ( 'general.yes' ) }}
2023-08-22 06:10:39 -07:00
</ label >
2019-12-06 10:57:48 -08:00
< p class = " help-block " > {{ trans ( 'admin/settings/general.show_assigned_assets_help' ) }} </ p >
{ !! $errors -> first ( 'show_assigned_assets' , '<span class="alert-msg">:message</span>' ) !! }
</ div >
</ div >
2018-01-24 10:43:46 -08:00
<!-- Model List prefs -->
< div class = " form-group { { $errors->has ('show_in_model_list') ? 'error' : '' }} " >
< div class = " col-md-3 " >
2023-04-03 22:38:56 -07:00
< strong > {{ trans ( 'admin/settings/general.show_in_model_list' ) }} </ strong >
2018-01-24 10:43:46 -08:00
</ div >
< div class = " col-md-9 " >
2023-04-03 22:38:56 -07:00
< label class = " form-control " >
{{ 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' ) }}
</ label >
< label class = " form-control " >
{{ 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' ) }}
</ label >
< label class = " form-control " >
{{ 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' ) }} </ label >
< label class = " form-control " >
{{ 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' ) }}
</ label >
2018-01-24 10:43:46 -08:00
</ div >
</ div >
2022-09-29 04:16:46 -07:00
<!-- dash chart -->
< div class = " form-group { { $errors->has ('dash_chart_type') ? 'error' : '' }} " >
< div class = " col-md-3 " >
{{ Form :: label ( 'show_in_model_list' ,
trans ( 'general.pie_chart_type' )) }}
</ div >
< div class = " col-md-9 " >
{{ Form :: select ( 'dash_chart_type' , array (
'name' => 'Status Label Name' ,
2024-06-27 07:05:47 -07:00
'type' => 'Status Label Type' ), old ( 'dash_chart_type' , $setting -> dash_chart_type ), [ 'class' => 'select2' , 'style' => 'width: 80%' ]) }}
2022-09-29 04:16:46 -07:00
</ div >
</ div >
2018-08-28 12:32:46 -07:00
<!-- Depreciation method -->
< div class = " form-group { { $errors->has ('depreciation_method') ? 'error' : '' }} " >
< div class = " col-md-3 " >
{{ Form :: label ( 'depreciation_method' , trans ( 'Depreciation method' )) }}
</ div >
< div class = " col-md-9 " >
{{ Form :: select ( 'depreciation_method' , array (
'default' => 'Linear (default)' ,
'half_1' => 'Half-year convention, always applied' ,
'half_2' => 'Half-year convention, applied with condition' ,
2024-06-27 07:05:47 -07:00
), old ( 'username_format' , $setting -> depreciation_method ), [ 'class' => 'select2' , 'style' => 'width: 80%' ]) }}
2018-08-28 12:32:46 -07:00
</ div >
</ div >
2018-01-24 10:43:46 -08:00
<!-- /. form - group -->
2018-05-08 00:50:13 -07:00
2018-05-08 03:14:25 -07:00
<!-- Privacy Policy Footer -->
2018-05-08 00:50:13 -07:00
< div class = " form-group { { $errors->has ('privacy_policy_link') ? 'error' : '' }} " >
< div class = " col-md-3 " >
{{ Form :: label ( 'privacy_policy_link' , trans ( 'admin/settings/general.privacy_policy_link' )) }}
</ div >
< div class = " col-md-9 " >
2018-05-08 01:07:15 -07:00
@ if ( config ( 'app.lock_passwords' ))
2024-06-27 07:05:47 -07:00
{{ Form :: text ( 'privacy_policy_link' , old ( 'privacy_policy_link' , $setting -> privacy_policy_link ), array ( 'class' => 'form-control disabled' , 'disabled' => 'disabled' )) }}
2018-05-08 01:07:15 -07:00
@ else
2024-06-27 07:05:47 -07:00
{{ Form :: text ( 'privacy_policy_link' , old ( 'privacy_policy_link' , $setting -> privacy_policy_link ), array ( 'class' => 'form-control' )) }}
2018-05-08 01:07:15 -07:00
@ endif
2018-05-08 00:50:13 -07:00
< span class = " help-block " > {{ trans ( 'admin/settings/general.privacy_policy_link_help' ) }} </ span >
2020-04-01 03:21:15 -07:00
{ !! $errors -> first ( 'privacy_policy_link' , '<span class="alert-msg" aria-hidden="true">:message</span>' ) !! }
2020-09-16 15:09:58 -07:00
@ if ( config ( 'app.lock_passwords' ) === true )
2021-09-26 01:11:08 -07:00
< p class = " text-warning " >< i class = " fas fa-lock " ></ i > {{ trans ( 'general.feature_disabled' ) }} </ p >
2020-09-16 15:09:58 -07:00
@ endif
2018-05-08 00:50:13 -07:00
</ div >
</ div >
2018-03-03 17:07:28 -08:00
</ div >
2018-01-24 10:43:46 -08:00
2017-07-07 23:44:48 -07:00
</ div > <!--/. box - body -->
< div class = " box-footer " >
< div class = " text-left col-md-6 " >
< a class = " btn btn-link text-left " href = " { { route('settings.index') }} " > {{ trans ( 'button.cancel' ) }} </ a >
</ div >
< div class = " text-right col-md-6 " >
2021-09-26 01:11:08 -07:00
< button type = " submit " class = " btn btn-primary " >< i class = " fas fa-check icon-white " aria - hidden = " true " ></ i > {{ trans ( 'general.save' ) }} </ button >
2017-07-07 23:44:48 -07:00
</ div >
</ div >
</ div >
2018-03-03 17:07:28 -08:00
2017-07-07 23:44:48 -07:00
</ div > <!-- / box -->
</ div > <!-- /. col - md - 8 -->
2024-06-17 04:52:23 -07:00
2017-07-07 23:44:48 -07:00
2017-10-19 06:16:03 -07:00
{{ Form :: close () }}
2017-07-07 23:44:48 -07:00
@ stop
@ section ( 'moar_scripts' )
<!-- bootstrap color picker -->
2017-09-28 19:45:15 -07:00
< script nonce = " { { csrf_token() }} " >
2017-07-07 23:44:48 -07:00
//color picker with addon
$ ( " .header-color " ) . colorpicker ();
// toggle the disabled state of asset id prefix
$ ( '#auto_increment_assets' ) . on ( 'ifChecked' , function (){
$ ( '#auto_increment_prefix' ) . prop ( 'disabled' , false ) . focus ();
}) . on ( 'ifUnchecked' , function (){
$ ( '#auto_increment_prefix' ) . prop ( 'disabled' , true );
});
2017-10-19 06:16:03 -07:00
// Test Mail
$ ( " #mailtest " ) . click ( function (){
$ ( " #mailtestrow " ) . removeClass ( 'text-success' );
$ ( " #mailtestrow " ) . removeClass ( 'text-danger' );
2017-10-19 08:18:56 -07:00
$ ( " #mailtesticon " ) . html ( '' );
2017-10-19 06:16:03 -07:00
$ ( " #mailteststatus " ) . html ( '' );
2017-10-19 08:18:56 -07:00
$ ( '#mailteststatus-error' ) . html ( '' );
2021-11-19 06:23:48 -08:00
$ ( " #mailtesticon " ) . html ( '<i class="fas fa-spinner spin"></i> {{ trans(' admin / settings / message . mail . sending ') }}' );
2017-10-19 06:16:03 -07:00
$ . ajax ({
2017-10-19 08:18:56 -07:00
url : '{{ route(' api . settings . mailtest ') }}' ,
2017-10-19 06:16:03 -07:00
type : 'POST' ,
headers : {
" X-Requested-With " : 'XMLHttpRequest' ,
" X-CSRF-TOKEN " : $ ( 'meta[name="csrf-token"]' ) . attr ( 'content' )
},
data : {},
dataType : 'json' ,
success : function ( data ) {
2017-10-19 08:33:46 -07:00
console . dir ( data );
2017-10-19 06:16:03 -07:00
$ ( " #mailtesticon " ) . html ( '' );
$ ( " #mailteststatus " ) . html ( '' );
$ ( '#mailteststatus-error' ) . html ( '' );
$ ( " #mailteststatus " ) . removeClass ( 'text-danger' );
$ ( " #mailteststatus " ) . addClass ( 'text-success' );
2017-10-19 08:33:46 -07:00
if ( data . message ) {
2021-09-26 01:11:08 -07:00
$ ( " #mailteststatus " ) . html ( '<i class="fas fa-check text-success"></i> ' + data . message );
2017-10-19 08:33:46 -07:00
} else {
2021-11-19 06:23:48 -08:00
$ ( " #mailteststatus " ) . html ( '<i class="fas fa-check text-success"></i> {{ trans(' admin / settings / message . mail . success ') }}' );
2017-10-19 08:33:46 -07:00
}
2017-10-19 06:16:03 -07:00
},
error : function ( data ) {
$ ( " #mailtesticon " ) . html ( '' );
$ ( " #mailteststatus " ) . html ( '' );
$ ( '#mailteststatus-error' ) . html ( '' );
$ ( " #mailteststatus " ) . removeClass ( 'text-success' );
$ ( " #mailteststatus " ) . addClass ( 'text-danger' );
2021-09-26 01:11:08 -07:00
$ ( " #mailtesticon " ) . html ( '<i class="fas fa-exclamation-triangle text-danger"></i>' );
2021-11-19 06:23:48 -08:00
$ ( '#mailteststatus' ) . html ( '{{ trans(' admin / settings / message . mail . error ') }}' );
2017-10-19 08:18:56 -07:00
if ( data . responseJSON ) {
2020-11-12 13:22:49 -08:00
if ( data . responseJSON . messages ) {
$ ( '#mailteststatus-error' ) . html ( 'Error: ' + data . responseJSON . messages );
} else {
2021-11-19 06:23:48 -08:00
$ ( '#mailteststatus-error' ) . html ( '{{ trans(' admin / settings / message . mail . additional ') }}' );
2020-11-12 13:22:49 -08:00
}
2017-10-19 08:18:56 -07:00
} else {
console . dir ( data );
}
2017-10-19 06:16:03 -07:00
}
});
});
2017-07-07 23:44:48 -07:00
</ script >
@ stop