ultimatepos/Modules/Portal/Resources/views/admin/settings.blade.php

48 lines
2.0 KiB
PHP

@extends('layouts.app')
@section('title', __('portal::lang.portal_settings'))
@section('content')
<section class="content-header">
<h1>@lang('portal::lang.portal_settings')</h1>
<p class="text-muted">@lang('portal::lang.portal_settings_help')</p>
</section>
<section class="content">
{!! Form::open(['action' => [\Modules\Portal\Http\Controllers\SettingsController::class, 'update'], 'method' => 'post']) !!}
<div class="box box-primary">
<div class="box-body">
@foreach($portals as $portal => $meta)
<div class="form-group">
<div class="checkbox">
<label>
{!! Form::checkbox(\Modules\Portal\Utils\PortalUtil::businessSettingKey($portal), 1, $meta['enabled'], ['class' => 'input-icheck', 'disabled' => !$meta['subscription']]) !!}
<strong>{{ $meta['label'] }}</strong>
</label>
@if(!$meta['subscription'])
<p class="help-block text-warning">@lang('portal::lang.portal_not_in_subscription')</p>
@endif
</div>
</div>
@endforeach
</div>
<div class="box-footer">
<button type="submit" class="btn btn-primary">@lang('messages.save')</button>
</div>
</div>
{!! Form::close() !!}
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">@lang('portal::lang.portal_urls')</h3>
</div>
<div class="box-body">
<ul class="list-unstyled">
<li><strong>@lang('portal::lang.customer_portal'):</strong> {{ url('/customer/dashboard') }}</li>
<li><strong>@lang('portal::lang.supplier_portal'):</strong> {{ url('/supplier/dashboard') }}</li>
<li><strong>@lang('portal::lang.marketer_portal'):</strong> {{ url('/marketer/dashboard') }}</li>
</ul>
</div>
</div>
</section>
@endsection