@extends('schedule::layout.master') @section('content')
@include('schedule::messages')
{{ trans('schedule::schedule.titles.list') }} {{ trans('schedule::schedule.messages.timezone') }}{{ config('database-schedule.timezone') }} {{ trans('schedule::schedule.titles.back_to_application') }}
@include('schedule::delete-modal')
@csrf
@csrf
{{ Helpers::buildHeader() }} {{ Helpers::buildFilter() }} @if ($schedules->isEmpty()) @else @foreach($schedules as $schedule) @if(config('database-schedule.enable_groups', false)) @endif @endforeach
{{ trans('schedule::schedule.messages.no-records-found') }}
{{ $schedule->command }}@if ($schedule->command == 'custom') : {{ $schedule->command_custom }} @endif @if(isset($schedule->params)) @foreach($schedule->params as $param => $value) @if(isset($value['value'])) {{ $param }} ={{ $value['value'] }}{{ $value['type'] === 'function' ? '()' : ''}}
@endif @endforeach @endif
@if(isset($schedule->options)) @foreach($schedule->options as $option => $value) @if(!is_array($value) || isset($value['value'])) @if(is_array($value)) --{{ $option }} ={{ $value['value'] }}{{ $value['type'] === 'function' ? '()' : ''}} @else --{{ $option }} @endif
@endif @endforeach @endif
{{ $schedule->expression }}{{ $schedule->groups }}{{ $schedule->environments }} {{ $schedule->created_at }} {{ $schedule->created_at == $schedule->updated_at ? trans('schedule::schedule.fields.never') : $schedule->updated_at }} {{ $schedule->status ? trans('schedule::schedule.status.active') : trans('schedule::schedule.status.inactive') }} {{ $schedule->deleted_at ? (', ' . trans('schedule::schedule.status.trashed')) : '' }}
@csrf
@if ($schedule->deleted_at)
@csrf
@else @endif
@endif
{{ $schedules->links() }}
@endsection