@extends('frontend.layouts.app') @section('title', app_name() . ' | ' . __('navs.frontend.dashboard') ) @push('after-scripts') @endpush @section('content') {{--{{dd($logged_in_user->has_active_subscriptions)}}--}} {{-- Top row: user info, icons of lab groups--}}
{{-- Profile picture--}} {{-- User info--}}

{{ $logged_in_user->name }}

Plan: @if($logged_in_user->has_active_subscription) {{ $logged_in_user->plan }} @else Free plan {{-- --}} {{-- Upgrade your account--}} {{-- --}} @endif

{{--News feed and lab notifications--}} {{-- @can('view forum')--}}
{{-- News feed--}}
{{-- News feed items--}} @if($notifications->count()==0) You're all caught up! @endif @foreach($notifications as $thread) @endforeach @if($notifications->count()>4) @endif

{{$thread->latestMessage->created_at->diffForHumans()}}

{{--
--}} {{-- {!! $thread->latestMessage->body !!}--}} {{--
--}}
{{ $thread->creator_name }}
{{$notification_count}} more...
{{-- Lab notifications--}} @if($logged_in_user->is_in_lab)
Lab notifications
@foreach($lab_notifications as $thread) @endforeach @if($lab_notifications->count()>4) @endif
{{$thread->channel->lab->name}}

{{$thread->created_at}}

{{$thread->user['first_name']." ".$thread->user['last_name']}}
{{--
--}}
{{$lab_notifications_count}} more in your lab forums...
@endif
{{-- @endcan--}} {{-- Board explorer--}}
{{--
Board explorer--}} {{--
--}}
{{-- Artboard folders and filters section--}}
{{-- Filters--}}
Filter
{{-- Artboard search by text @TODO get artboards dymanically when updated--}}
{{-- Artboard search by tag @TODO get artboards dymanically when updated--}}
{{ html()->multiselect('tags[]',$tags->pluck('text', 'id'))->class('tagsselect')->id('board_tags') }}
{{-- Artboard search by favourite @TODO get artboards dymanically when updated--}}
{{-- Folders--}}
@if($logged_in_user->has_active_subscription) Folders
@else Upgrade your account for folders and other awesome features! @endif
@if($logged_in_user->has_active_subscription)
@foreach($logged_in_user->board_folders->whereNull('lab_id') as $folder) @endforeach
@endif
Clear
{{-- --}} {{-- @if((!Gate::check("no ads") && (5-$logged_in_user->boards->count()>0)) || Gate::check("no ads"))--}} {{-- @cannot('no ads')--}} {{-- {{dd($logged_in_user->current_active_subscriptions)}}--}} {{-- @endcannot--}} {{-- @endif--}}
{{-- Board explorer--}} {{-- // @if--}} @if(!$logged_in_user->has_active_subscription) @endif @if(!$logged_in_user->has_active_subscription)
{{3-$logged_in_user->myBoardsCount}} of 3 free boards remaining.
Upgrade your account for more!
@endif {{-- //@endcannot--}} {{-- --}}
{{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}}
@endsection @section('dialogs') @can('create board') @endcan @endsection