@include('includes.admin.menu')
@if(setting('MAINTENANCE_MODE') == 'on')
{{ lang('This application is in maintenance mode. We are performing scheduled maintenance.') }}
@endif
@if(setting('mail_host') == 'smtp.mailtrap.io' && Auth::user()->getRoleNames()[0] == 'superadmin')
{{ lang('It is necessary to set up your email settings first in order to send and receive emails.') }}
@endif
@php
$cronset = \App\Models\Setting::where('key','cronjob_set')->first();
$cronworking = $cronset->updated_at->addMinutes(1) >= \Carbon\Carbon::now();
@endphp
@if($cronworking != true && Auth::user()->getRoleNames()[0] == 'superadmin')
{{ lang('It is necessary to set up your cron job first in order for the auto functions to work.') }}
@endif
@yield('content')