<section class="page-section with-sidebar sidebar-right first-section"> <div class="container"> <ul class="nav nav-tabs"> <?php echo activableLink(_('General information'), 'event@edit', [$event->id]); ?> <?php echo activableLink(_('Themes') . ' & ' . _('Speakers'), 'event@editThemesSpeakers', [$event->id]); ?> <!--<?php echo activableLink(_('Materials'), 'event@editMaterials', [$event->id]); ?> --> <?php echo activableLink(_('Schedule'), 'event@editSchedule', [$event->id]); ?> </ul> <?php echo Form::model($event, ['id' => FORM_ID, 'files' => true]); ?> <?php echo Form::hidden('id'); ?> @yield('form_content') <div class="row buttons-row text-center"> <a href="<?php
echo activableLink(icon('edit') . _('Edit my profile'), 'user@edit'); ?> <?php echo activableLink(icon('sign-out') . _('Logout'), 'auth@logout'); ?> </ul> </div> </li> <?php } else { ?> <?php echo activableLink(icon('user-plus') . _('Sign up'), 'auth@signUp', [], 'li', ['wrap' => ['class' => 'nav-btn'], 'link' => ['class' => 'btn btn-theme']]); ?> <?php echo activableLink(icon('at') . _('Login'), 'auth@login', [], 'li', ['wrap' => ['class' => 'nav-btn'], 'link' => ['class' => 'btn btn-theme btn-theme-light']]); ?> <?php } ?> </ul> </div> </div> </nav> </header> <div class="content-area"> @yield('header') @yield('content') </div>
/** @var \App\Models\User $user */ $title = _('Edit your profile'); $subtitle = _('Editing your profile'); $total_links = $user->links()->count(); ?> @extends('layout-header') @section('title', $title) @section('header-bg', '/img/bg-event.jpg') @section('header-link', act('user@profile', $user->slug)) @section('header-title', $user->name) @section('header-subtitle', $subtitle) @section('content') <section class="page-section with-sidebar sidebar-right first-section"> <div class="container"> <ul class="nav nav-tabs"> <?php echo activableLink(_('General information'), 'user@edit'); ?> <?php echo activableLink(_('Social networks & external links') . " <span class=\"badge\">{$total_links}</span>", 'user@editLinks'); ?> </ul> @yield('form_content') </div> </section> @endsection