ok

Mini Shell

Direktori : /home2/selectio/www/fms-worksuite/resources/views/components/
Upload File :
Current File : //home2/selectio/www/fms-worksuite/resources/views/components/cron-message.blade.php

@if(!$modal)
    {{-- This message hides instantly the cron job is runned. It then do not show for next 2 days   --}}
    @if ($globalSetting->hide_cron_message == 0 || now()->diffInHours($globalSetting->last_cron_run) > 48)
        @include('app-settings.cron-message')
    @endif
@else
    {{-- This message is shown only when last cron run is greater than 48   --}}

    @if (now()->diffInHours($globalSetting->last_cron_run) > 48)
        @if(in_array('admin', user_roles()))
            <div class="col-md-12 cursor-pointer">
                <x-alert type="danger" icon="exclamation-circle" data-toggle="modal" data-target="#cronJobModal">
                    @lang('messages.cronIsNotRunning').
                </x-alert>
            </div>
            <div id="cronJobModal" class="modal fade overflow-auto" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog d-flex justify-content-center align-items-center modal-xl">
                    <div class="modal-content">
                        <div class="modal-header">
                            <h5 class="modal-title" id="modelHeading">CRON JOB SETTING</h5>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">×</span></button>
                        </div>
                        <div class="modal-body">
                            @include('app-settings.cron-message')
                        </div>
                        <div class="modal-footer">
                            <x-forms.button-cancel
                                data-dismiss="modal"
                                class="border-0 mr-3">@lang('app.cancel')
                            </x-forms.button-cancel>
                        </div>

                    </div>
                </div>
            </div>
        @endif

    @endif
@endif




Zerion Mini Shell 1.0