@extends('su-admin.layout.master') @section('content') @php if(!isset($_GET['tab'])){ $tab = ''; }else{ $tab = $_GET['tab']; } @endphp
@if (session()->has('message')) @endif

Maintenance

{!! Form::open(['url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal']) !!}
{!! Form::checkbox('status', "1", get_maintenance_status(), ['class' => 'form-check-input', 'id' => 'status' ]) !!} {!! Form::label('status', 'Attiva la modalità maintenance', ['class' => 'form-check-label'] ) !!}
@if(get_maintenance_status())
{!! Form::label('secret_text', 'Secret', ['class' => 'col-form-label', 'style' => 'width: 120px'] ) !!} {!! Form::text('secret_text', get_setting('app', 'secret', 'maintenance'), ['class' => 'form-control-plaintext', 'readonly' => 'readonly', 'style' => 'width: calc(100% - 120px)' ]) !!}

Vai al seguente link per bypassare la maintenance mod: {{route('home')}}/{{get_setting('app', 'secret', 'maintenance')}}

@endif
{!! Form::label('content', 'Contenuto', ['class' => 'form-label'] ) !!}
{!! Form::textarea('content', get_setting('app', 'content', 'maintenance'), ['class' => 'form-textarea-content', 'id' => 'content', 'rows' => 5, 'style' => 'resize:none']) !!}
{!! Form::hidden('id', 'web', ['class' => 'form-section-id'] ) !!} {!! Form::submit('Salva', ['class' => 'btn btn-primary btn-fw'] ) !!}
{!! Form::close() !!}
@if(is_min_admin_role('developer'))
@if ($mobile_status) {!! Form::open(['url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal']) !!}
@foreach ($mobile as $m)
{{$m->id}}
{!! Form::checkbox('mobile_status['.$m->id.']', "1", $m->status, ['class' => 'form-check-input', 'id' => 'mobile_status['.$m->id.']' ]) !!} {!! Form::label('mobile_status['.$m->id.']', 'Attiva la modalità maintenance', ['class' => 'form-check-label'] ) !!}
@endforeach
{!! Form::hidden('app', json_encode($mobile) ) !!} {!! Form::hidden('id', 'mobile', ['class' => 'form-section-id'] ) !!} {!! Form::submit('Salva', ['class' => 'btn btn-primary btn-fw'] ) !!}
{!! Form::close() !!} @else

Nessuna applicazione attiva

@endif
@endif
@endsection