freescout/freescout-dist/resources/views/system/tools.blade.php

58 lines
1.7 KiB
PHP
Raw Normal View History

2023-12-22 19:40:32 +00:00
@extends('layouts.app')
@section('title', __('Tools'))
@section('sidebar')
@include('partials/sidebar_menu_toggle')
@include('system/sidebar_menu')
@endsection
@section('content')
<div class="section-heading">
{{ __('Tools') }}
</div>
<div class="container">
<form class="form-inline margin-top" method="POST" action="">
{{ csrf_field() }}
<div>
<button type="submit" class="btn btn-default" name="action" value="clear_cache">
{{ __('Clear Cache') }}
</button>
&nbsp;
<button type="submit" class="btn btn-default" name="action" value="migrate_db">
{{ __('Migrate DB') }}
</button>
&nbsp;
<button type="submit" class="btn btn-default" name="action" value="logout_users">
{{ __('Logout Users') }}
</button>
</div>
<hr/>
<div class="margin-top text-help">
<button type="submit" class="btn btn-default" name="action" value="fetch_emails">
{{ __('Fetch Emails') }}
</button>
&nbsp;
{{ __('Days') }}: <input type="number" name="days" value="{{ old('days', 3) }}" class="form-control input-sm" />
&nbsp;
<input type="radio" value="1" name="unseen" @if ((int)old('unseen', 1)) checked @endif /> {{ __('Unread') }}
&nbsp;
<input type="radio" value="0" name="unseen" @if (!(int)old('unseen', 1)) checked @endif /> {{ __('All') }}
</div>
</form>
@if ($output)
<div class="console margin-top">{{ $output }}</div>
@endif
</div>
@endsection