forked from eatvio/eatvio-infra
WIP fix layout active state
This commit is contained in:
14255
public/css/app.css
14255
public/css/app.css
File diff suppressed because one or more lines are too long
1964
public/js/app.js
1964
public/js/app.js
File diff suppressed because one or more lines are too long
@@ -44,12 +44,12 @@ $isDiary = Str::of($curUrl)->test('/\/diary/');
|
||||
<div class="header__menu-content">
|
||||
<ul class="header__menu-list">
|
||||
<li class="header__menu-item">
|
||||
<a href="{{ route('recipe.index') }}" @class(["header__menu-link", "icon-book-open", 'active' => route('recipe.index') == $curUrl] )>
|
||||
<a href="{{ route('recipe.index') }}" @class(["header__menu-link", "text-black", "icon-book-open", 'active' => route('recipe.index') == $curUrl] )>
|
||||
{{__('routes.recipe_index') }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="header__menu-item">
|
||||
<a href="{{ route('blog_post.index') }}" @class(["header__menu-link", "icon-message-circle", "active" => route('blog_post.index') == $curUrl])>
|
||||
<a href="{{ route('blog_post.index') }}" @class(["header__menu-link", "text-black", "icon-message-circle", "active" => route('blog_post.index') == $curUrl])>
|
||||
{{ __('routes.blog_post_index') }}
|
||||
</a>
|
||||
</li>
|
||||
@@ -57,17 +57,17 @@ $isDiary = Str::of($curUrl)->test('/\/diary/');
|
||||
<span class="header__menu-separator"></span>
|
||||
<ul class="header__menu-list">
|
||||
<li class="header__menu-item">
|
||||
<a href="{{ route('plan.index') }}" @class(["header__menu-link", "icon-file-text", "active" => route('plan.index') == $curUrl])>
|
||||
<a href="{{ route('plan.index') }}" @class([ "header__menu-link", "text-black", "icon-file-text", "active" => route('plan.index') == $curUrl])>
|
||||
{{ __('routes.plan_index') }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="header__menu-item">
|
||||
<a href="{{ route('consultants.index')}}" @class(["header__menu-link", "icon-users", "active" => route('consultants.index') == $curUrl])>
|
||||
<a href="{{ route('consultants.index')}}" @class(["header__menu-link", "text-black", "icon-users", "active" => route('consultants.index') == $curUrl])>
|
||||
{{ __('routes.consultants_index')}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="header__menu-item">
|
||||
<a href="{{ route('diet.index') }}" @class(["header__menu-link", "icon-diet", "active" => route('diet.index') == $curUrl])>
|
||||
<a href="{{ route('diet.index') }}" @class(["header__menu-link", "text-black", "icon-diet", "active" => route('diet.index') == $curUrl])>
|
||||
{{ __('routes.diet_index')}}
|
||||
</a>
|
||||
</li>
|
||||
@@ -77,18 +77,18 @@ $isDiary = Str::of($curUrl)->test('/\/diary/');
|
||||
@if(auth()->user()->is_consultant)
|
||||
<li class="header__menu-item">
|
||||
<a href="{{ route('consultant_diary_comment.index')}}"
|
||||
@class(["header__menu-link", "icon-check-square", "active" => route('consultant_diary_comment.index') == $curUrl])>
|
||||
@class(["header__menu-link", "text-black", "icon-check-square", "active" => route('consultant_diary_comment.index') == $curUrl])>
|
||||
{{__('routes.consultant_diary_comment_index') }}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
<li class="header__menu-item">
|
||||
<a href="{{ route('chat.index') }}" @class(["header__menu-link", "icon-message-square", 'active' => route('chat.index') == $curUrl])>
|
||||
<a href="{{ route('chat.index') }}" @class(["header__menu-link", "text-black", "icon-message-square", 'active' => route('chat.index') == $curUrl])>
|
||||
{{ __('routes.chat_index')}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="header__menu-item">
|
||||
<a href="{{ route('finance.index')}}" class="header__menu-link icon-rubble">
|
||||
<a href="{{ route('finance.index')}}" class="header__menu-link text-black icon-rubble">
|
||||
{{ __('routes.finances_index')}}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
$planViewsCount = views($plan)
|
||||
->unique()
|
||||
->count();
|
||||
|
||||
$isPlanUrlActive= true;
|
||||
@endphp
|
||||
@section('main_section')
|
||||
<section class="page" id="main">
|
||||
@@ -16,14 +18,14 @@
|
||||
<div class="settings__container container-sm">
|
||||
|
||||
<div class="settings__header">
|
||||
<a href="{{ route('plan.index', ['author' => $author->id]) }}" class="settings__back icon-arrow-short-left">
|
||||
<a href="{{ route('plan.index', ['author' => $author->id]) }}" class="settings__back icon-arrow-short-left text-black">
|
||||
<span>Планы питания консультанта</span>
|
||||
</a>
|
||||
|
||||
<div class="settings__actions">
|
||||
<div class="settings__action setting__person">
|
||||
<div class="settings__person-content">
|
||||
<a href="{{ route('profile.show', ['user' => $author]) }}" class="setting__person-name">
|
||||
<a href="{{ route('profile.show', ['user' => $author]) }}" class="setting__person-name text-black">
|
||||
{{ $author->name }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user