snipe-it/resources/views/settings/index.blade.php
2016-03-25 01:18:05 -07:00

184 lines
6.8 KiB
PHP
Executable file

@extends('layouts/default')
{{-- Page title --}}
@section('title')
{{ trans('admin/settings/general.settings') }}
@parent
@stop
{{-- Page content --}}
@section('content')
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="box box-default">
<div class="box-header">
<h3 class="box-title">{{ trans('admin/settings/general.general_settings') }}</h3>
<div class="box-tools pull-right">
<a href="{{ route('edit/settings') }}" class="btn btn-warning"><i class="fa fa-pencil icon-white"></i> {{ trans('button.edit') }} {{ trans('admin/settings/general.settings') }}</a>
</div>
</div>
<div class="box-body">
<div class="table-responsive">
<table class="table table-striped">
<tbody>
@foreach ($settings as $setting)
<tr>
<td class="col-md-4">{{ trans('admin/settings/general.site_name') }}</td>
<td class="col-md-8">{{ $setting->site_name }} </td>
</tr>
<tr>
<td>
{{ trans('admin/settings/general.full_multiple_companies_support_text') }}
</td>
@if ($setting->full_multiple_companies_support == 1)
<td>{{ trans('general.yes') }}</td>
@else
<td>{{ trans('general.no') }}</td>
@endif
</tr>
<tr>
<td>{{ trans('admin/settings/general.default_currency') }}</td>
<td>{{ $setting->default_currency }} </td>
</tr>
<tr>
<td>{{ trans('admin/settings/general.alert_email') }}</td>
@if ($setting->alert_email)
<td>{{ $setting->alert_email }}</td>
@else
<td>--</td>
@endif
</tr>
<tr>
<td>{{ trans('admin/settings/general.alerts_enabled') }}</td>
@if ($setting->alerts_enabled == 1)
<td>{{ trans('general.yes') }}</td>
@else
<td>{{ trans('general.no') }}</td>
@endif
</tr>
<tr>
<td>{{ trans('admin/settings/general.header_color') }}</td>
@if ($setting->header_color)
<td>{{ $setting->header_color }}</td>
@else
<td>default</td>
@endif
</tr>
<tr>
<td>{{ trans('admin/settings/general.auto_increment_assets') }}</td>
@if ($setting->auto_increment_assets == 1)
<td>{{ trans('general.yes') }}</td>
@else
<td>{{ trans('general.no') }}</td>
@endif
</tr>
<tr>
<td>{{ trans('admin/settings/general.load_remote_text') }}</td>
@if ($setting->load_remote == 1)
<td>{{ trans('general.yes') }}</td>
@else
<td>{{ trans('general.no') }}</td>
@endif
</tr>
<tr>
<td>{{ trans('admin/settings/general.auto_increment_prefix') }}</td>
<td>{{ $setting->auto_increment_prefix }}</td>
</tr>
<tr>
<td>{{ trans('admin/settings/general.per_page') }}</td>
<td>{{ $setting->per_page }} </td>
</tr>
<tr>
<td>{{ trans('admin/settings/general.display_qr') }}</td>
@if ($setting->qr_code == 1)
<td>{{ trans('general.yes') }}
({{ $setting->barcode_type }})
{{ $setting->qr_text }}
</td>
@else
<td>{{ trans('general.no') }}</td>
@endif
</tr>
<tr>
<td>{{ trans('admin/settings/general.default_eula_text') }}</td>
@if ($setting->default_eula_text!='')
<td>{{ trans('general.yes') }}</td>
@else
<td>{{ trans('general.no') }}</td>
@endif
</tr>
<tr>
<td>{{ trans('admin/settings/general.slack_integration') }} </td>
@if ($setting->slack_endpoint!='')
<td>{{ trans('general.yes') }}
@if ($setting->slack_channel!='')
{{ $setting->slack_channel }}
@endif
</td>
@else
<td>{{ trans('general.no') }}</td>
@endif
</tr>
<tr>
<td>{{ trans('admin/settings/general.ldap_integration') }}</td>
@if ($setting->ldap_enabled == 1)
<td>{{ trans('general.yes') }}</td>
@else
<td>{{ trans('general.no') }}</td>
@endif
</tr>
@endforeach
</tbody>
</table>
<h4>{{ trans('admin/settings/general.system') }}</h4>
<div class="table-responsive">
<table class="table table-striped">
<tbody>
<tr>
<td class="col-md-4">{{ trans('admin/settings/general.snipe_version') }}</td>
<td class="col-md-8">
{{ config('version.hash_version') }}
</td>
</tr>
<tr>
<td>{{ trans('admin/settings/general.php') }}</td>
<td> {{ phpversion() }}</td>
</tr>
<tr>
<td>{{ trans('admin/settings/general.laravel') }}</td>
<td>
{{ $setting->lar_ver() }}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
@stop