@php $labels = []; $counts = []; $formIds =[]; $studioIds = []; foreach ($chartDatas as $key => $value) { $labels[] = $value['form_name']; $formIds[] = $value['form_id']; $studioIds[] = $value['studio_id']??''; $counts[] = count($value['items']); } $outputArray = array_map(function ($item) { return explode(' ', $item); }, $labels); @endphp @php if(session()->get('selected_studio_uuid')){ $action = route('studio.dashboard',); } else { if(auth()->user()->role_id == 1){ $action = route('user.superAdminDashboard',); } else{ $action = route('studio.dashboard',); } } @endphp
@csrf @php $date = ''; if(!empty($startDate)){ $sdate = date('d M Y', strtotime($startDate)); $edate = date('d M Y', strtotime($endDate)); $date = $sdate.' - '.$edate; } if(Session::get('selected_studio_uuid')){ $studioVal = Session::get('selected_studio_uuid'); } else { if(Auth::user()->role_id ==1){ $studioVal = 'all'; }else{ $studioVal = Auth::user()->studios()->first()->uuid; } } @endphp

Forms

{{-- --}}