@extends('layouts.app') @section('css') @endsection @section('js') @php // $localdateTimeFormat = \App\Facades\DateTimeFormat::getLocalDateTimeFormat(); // $startDateTime = isset($event->started_at) ? \Carbon\Carbon::parse($event->started_at) : \Carbon\Carbon::now()->startOfHour()->format($localdateTimeFormat); // $endDateTime = isset($event->ended_at) ? \Carbon\Carbon::parse($event->ended_at) : \Carbon\Carbon::now()->startOfHour()->addDay($localdateTimeFormat); $startDateTime = isset($survey->started_at) ? \Carbon\Carbon::parse($survey->started_at) : \Carbon\Carbon::now()->addMinutes(5); $endDateTime = isset($survey->ended_at) ? \Carbon\Carbon::parse($survey->ended_at) : \Carbon\Carbon::now()->addDays(1); @endphp @endsection @push('pageTitle') {{ __('labels.surveys') }} @endpush @section('content') @include('components.common.page-header', [ 'pageTitle' => isset($survey) && isset($readonly) && $readonly ? __('labels.view_survey') : (isset($survey) ? __('labels.edit_survey') : __('labels.create_survey')), 'actionButton' => [ 'url' => route('surveys.index'), 'text' => __('labels.back_to_surveys'), ], ]) @include('components.common.flush-message') @include('components.common.validation-errors')
@endsection