@extends('layouts.app', ['redirectPage' => 'studio_owner_dashboard']) @section('PageHeading', 'Dashboard') @section('content') @section('sidebar', 'true')
@php session()->forget('studio_create'); @endphp
@if(Auth::user()->role_id==4)

Finish setting up your profile

closeClose
@if($ownUsersCount > 0) @else @endif @if($ownFormLibraryCount > 0) @else @endif @if($ownStudioCustomizeCount == 0) @else @endif @if($ownSocialMediaAccout != 0) @else @endif @if($ownStudioCustomizeCount == 0) @else @endif
@endif @include('dashboard.barchart', ['chartDatas' => $chartDatas])

Recently Submitted

@if(count($chartDatas)>0) @if (isset($overallFormsData) && !empty($overallFormsData) && count($overallFormsData) > 0) @foreach ($formsHeader as $headKey => $headVal) @endforeach @foreach ($overallFormsData as $userId => $userData) @php $keys = array_column($overallFormsData, 'user_id'); $currentIndex = array_search($userData['user_id'], $keys); $previousUserId = $currentIndex > 0 ? $keys[$currentIndex - 1] : null; $nextUserId = $currentIndex < count($keys) - 1 ? $keys[$currentIndex + 1] : null; $nextToNextUserId = $currentIndex < count($keys) - 2 ? $keys[$currentIndex + 2] : null; @endphp @if (!empty($userData['concatenated_answers'])) @foreach ($userData['concatenated_answers'] as $ansDetails) @endforeach @endif @php $submitted_on = $userData['formuser_submittedon'] ?? null; $dateTime = \Carbon\Carbon::parse($submitted_on); $formattedDate = $dateTime->format('d M Y'); $restrictClass =''; $buttonDisable = ''; if(Session::has('selected_studio_uuid')!=null){ if(Auth::user()->role_id==1){ $restrictClass = 'disabled-linkss'; // $buttonDisable = 'disabledButton'; $buttonDisable = 'disableLink'; } } @endphp @endforeach @endif @else
No submissions yet
@endif
{{ ucwords($headVal->component_question_title) ?? '' }}Form Type Form Submitted View
{{ $formattedDate }} Full Form
{{-- {!! $paginationHtml !!} --}}
@endsection