@extends("client.layouts.app") @section("title", __('client.hosting.cron.title')) @section("content") {{ $service->product?->name ?? __('client.services.title') }}

{{ __('client.hosting.cron.title') }}

{{ __('client.hosting.cron.subtitle') }}
{{ $policy['max'] < 0 ? $policy['used'].' / ∞' : $policy['used'].' / '.$policy['max'] }}
@if(session('cron_output') !== null)
{{ __('client.hosting.cron.output') }}
{{ session('cron_output') === '' ? __('client.hosting.cron.no_output') : session('cron_output') }}
@endif @if(empty($domains))
{{ __('client.hosting.cron.no_domains') }}
@elseif(! $policy['enabled'])
{{ __('client.hosting.cron.plan_disabled') }}
@else
{{ __('client.hosting.cron.create_title') }}
@if(! $policy['can_create'])
{{ __('client.hosting.cron.limit_reached') }} ({{ $policy['used'] }}/{{ $policy['max'] }})
@else
@csrf
@php($cmdFirstDomain = ! empty($domains) ? reset($domains) : 'example.com')
{{ __('client.hosting.cron.command_hint') }}
{{ __('client.hosting.cron.examples') }}
@endif
{{ __('client.hosting.cron.title') }}
@if(empty($cronJobs))
{{ __('client.hosting.cron.empty') }}
@else
@foreach($cronJobs as $j) @endforeach
{{ __('client.hosting.cron.task') }} {{ __('client.hosting.cron.schedule') }} {{ __('client.hosting.cron.command') }} {{ __('common.table.status') }} {{ __('common.table.actions') }}
{{ $j['task_name'] }}
{{ $j['domain'] }}
{{ $j['schedule'] }}
{{ $j['command'] }}
@if($j['enabled']){{ __('client.hosting.cron.enabled') }}@else{{ __('client.hosting.cron.disabled') }}@endif
@csrf
@csrf
@csrf
@endif
@endif @endsection