@extends('Frontend.partials.layout') @section('styles') @endsection @section('content')

{{__('action.page_heading1_cron_trash')}}

{{__('action.page_heading1_trash_cron_view')}}

{{-- @if(!empty($crons)) @foreach($crons as $key => $cron) @php $user = getUserById($cron->selected_user); @endphp @endforeach @endif --}}
{{__('action.sno')}} {{__('action.open_by_user_cron_view')}} {{__('action.start_date')}} {{__('action.start_time_cron_view')}} {{__('action.merge_fields_end_date')}} {{__('action.end_time_cron_view')}} {{__('action.cron_type')}} {{__('action.run_time_cron_view')}} {{__('action.action')}}
{{ $key+1 }}{{ $user->first_name." ".$user->last_name }} {{ date_change(date('d-m-Y', strtotime($cron->added))) }} {{ date('H:i', strtotime($cron->cronsetuptimes[0]->start_time)) }} {{ date_change(date('d-m-Y', strtotime($cron->added. "+".($cron->length-1).trans('action.cron_days')))) }} {{ date('H:i', strtotime($cron->cronsetuptimes[0]->end_time)) }} @if($cron->length > 1){{ trans('action.series_cron_view') }} @else {{ trans('action.single_cron_view') }} @endif @if($cron->length > 1) {{ $cron->length. trans('action.cron_days') }} @else @php $time1 = date('H:i:s', strtotime($cron->cronsetuptimes[0]->start_time)); $time2 = date('H:i:s', strtotime($cron->cronsetuptimes[0]->end_time)); $diff = (strtotime($time2) - strtotime($time1))/60; $hour = round($diff/60); $minute = $diff%60; @endphp {{ $hour." h ".$minute." m" }} @endif
@endsection @section('scripts') @endsection