@php $current_studio_count = auth::user()->activeStudioOwner()->count(); $current_studio_counts = \App\Models\Studio::where('status',1)->count(); @endphp @if (auth::user()->role_id !=1 && $current_studio_count <= 1 || auth::user()->role_id ==1 && $current_studio_counts <=1) @endif
@if (isset($redirectPage) && $redirectPage == 'task')
@if (in_array(auth()->user()->role_id, ['1', '2', '3', '6'])) @endif
@endif
@if(empty($studio)) Filter @else Change @endif Studio
{{-- @if(!empty($studio)) @endif --}} @if (isset($redirectPage) && $redirectPage == 'task')
@if (\App\Models\Task::hasHqTask()) @endif
@endif
@php if(request()->route()->getName() == 'studio.dashboard'){ $action = route('studio.dashboard', ['studio' =>'all']); } elseif(request()->route()->getName() == 'user.superAdminDashboard'){ $action = route('user.superAdminDashboard', ['studio' =>'all']); } elseif(request()->route()->getName() == 'form.form_library'){ $action = route('form.form_library', ['studio' =>'all']); } else { $action = route('user.index', ['role' => request()->get('role')]); } @endphp @if(Auth::user()->role_id==1) @endif

Search and select a studio below to view:

@php $studios = Helper::getStudios() @endphp
@include('includes.studio_list')
@push('scripts') @endpush('scripts')