@extends('layouts.app', ['redirectPage' => 'studio_owner_dashboard']) @section('PageHeading', 'Dashboard') @section('content') @section('sidebar', 'true') @php session()->forget('studio_create'); @endphp @php $studioId = request()->get('studio') ?? Session::get('selected_studio_uuid') ; $submitted_on = $userData['formuser_submittedon'] ?? null; $studio = \App\Models\Studio::where('uuid', $studioId)->pluck('id'); $getConvertedtime = \App\Helpers\AppHelper::changeTimeZone($submitted_on, $studio); $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
@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) @if($headKey < 4) @endif @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 @php $datauserId = ''; @endphp @if (!empty($userData['concatenated_answers'])) @foreach ($userData['concatenated_answers'] as $key => $ansDetails) @if($key < 4) @endif @endforeach @endif @php $studioId = request()->get('studio') ?? session::get('selected_studio_uuid') ; $submitted_on = $userData['formuser_submittedon'] ?? null; $studio = \App\Models\Studio::where('uuid', $studioId)->pluck('id'); $getConvertedtime = \App\Helpers\AppHelper::changeTimeZone($submitted_on, $studio); $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 @php if($template->form_type == '3' && isset($datauserId)) { $prizeWon = App\Helpers\Helper::getPrizeFormWon($datauserId); } @endphp @if($template->form_type == '3') @endif @endforeach @endif @else
No submissions yet
@endif
{{ Illuminate\Support\Str::limit($headVal->component_question_title ?? '', 60, '...') }}Form Type Form Submitted View
:
:
{{ $prizeWon }}{{ $getConvertedtime }} Full Form
{{-- {!! $paginationHtml !!} --}}
@endsection