58 lines
1.7 KiB
PHP
58 lines
1.7 KiB
PHP
@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>
|
|
|
|
<button type="submit" class="btn btn-default" name="action" value="migrate_db">
|
|
{{ __('Migrate DB') }}
|
|
</button>
|
|
|
|
<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>
|
|
|
|
|
|
{{ __('Days') }}: <input type="number" name="days" value="{{ old('days', 3) }}" class="form-control input-sm" />
|
|
|
|
|
|
<input type="radio" value="1" name="unseen" @if ((int)old('unseen', 1)) checked @endif /> {{ __('Unread') }}
|
|
|
|
<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
|