@extends('layouts.admin') @section('content')
| 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
Preview
@if($survey->is_active == 1)
Edit Questions
@else
Create Questions
@endif
|
| 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' }} |