@extends('layouts.admin') @section('content')
Course evaluation survey @include('admin.errors.form-errors')
Add New Survey
@csrf
*end date must be a date after start date
{{--

Surveys List

@php $count = 1; @endphp @foreach ($surveys as $key => $survey) @php $survey_end_date = \Carbon\Carbon::parse($survey->end_date); $survey_end_data = $survey_end_date->toDateString(); @endphp @if ($survey_end_date->gte(\Carbon\Carbon::now()->format('Y-m-d'))) @endif @endforeach
Id Name Description Start date End date Skip end date Participants Status Actions
{{ $count++ }} {{ Str::limit($survey->name, 30) }} @if (strlen($survey->name) > 30) @endif {{ date('Y-m-d', strtotime($survey->start_date)) }} {{ date('Y-m-d', strtotime($survey->end_date)) }} {{ $survey->skip_end_date }} {{ $survey->participants }} {{ $survey->mandatory ? 'mandatory' : 'optional' }} {{ $survey->is_active ? 'active' : 'inActive' }} {{ $survey->access == 1 ? 'external' : ($survey->access == 0 ? 'internal' : 'both') }} {{ $survey->approved ? 'approved' : 'declined' }}
@php $survey_end_date = \Carbon\Carbon::parse($survey->end_date); @endphp Copy View
@php $count = 1; @endphp @foreach ($surveys as $key => $survey) @php $survey_end_date = \Carbon\Carbon::parse($survey->end_date); $survey_end_data = $survey_end_date->toDateString(); @endphp @if (!$survey_end_date->gte(\Carbon\Carbon::now()->format('Y-m-d'))) @endif @endforeach
Id Name Description Start date End date Skip end date Participants Status Actions
{{ $count++ }} {{ Str::limit($survey->name, 30) }} @if (strlen($survey->name) > 30) @endif {{ date('Y-m-d', strtotime($survey->start_date)) }} {{ date('Y-m-d', strtotime($survey->end_date)) }} {{ $survey->skip_end_date }} {{ $survey->participants }} {{ $survey->mandatory ? 'mandatory' : 'optional' }} {{ $survey->is_active ? 'active' : 'inActive' }} {{ $survey->access == 1 ? 'external' : ($survey->access == 0 ? 'internal' : 'both') }} {{ $survey->approved ? 'approved' : 'declined' }}
--}}
{{-- --}} @endsection @section('admin-js') {{-- --}} {{-- Copy the Url --}} {{-- draw all data tables --}} {{-- create new survey --}} {{-- update survey --}} @endsection