@extends(tt('layout.blade.php'))
@push('header')
@at(tt('assets/styles/pages/_profile.scss'))
@endpush
@section('title')
{{ !empty(page()->title) ? page()->title : __('def.profile_user', ['name' => $user->name]) }}
@endsection
@push('profile_tabs')
@if (sizeof($tabs) > 0)
@foreach ($tabs as $key => $tab)
getUrl(), [
'tab' => $key,
]) }}'
class="@if ($active === $key) active @endif {{ $tab['classes'] }}">
{{ __($tab['name']) }}
@endforeach
@endif
@endpush
@push('profile_container')
@if (!profile()->isMainDisabled())
@if (user()->id === $user->id)
@endif
@if (user()->id === $user->id)
@endif
id === $user->id) class="profile_avatar_wrapper editable" data-tooltip="@t('profile.change_avatar')" data-tooltip-conf="top" id="profile_avatar_change" @else class="profile_avatar_wrapper" @endif>
@if (user()->id === $user->id)
@endif
{{ $user->name }}
getTimestamp() - $user->last_logged->getTimestamp() <= 600) class="online-profile" @endif>{{ $last_logged }}
@if (user()->hasPermission('admin.users') || $user->id == user()->id)
@t('def.balance'): {{ $user->balance }} {{ app('lk.currency_view') }}
@endif
@if (sizeof($user->socialNetworks) > 0)
@foreach ($user->socialNetworks as $network)
@if (((bool) $network->hidden !== true || user()->hasPermission('admin.users')) && !empty($network->url))
{!! $network->socialNetwork->icon !!}
@endif
@endforeach
@stack('profile_socials')
@endif
@if (sizeof($user->roles))
@foreach ($user->roles as $role)
@endforeach
@stack('profile_roles')
@endif
@if (user()->hasPermission('admin.users') || $user->id === user()->id)
@t('def.edit')
@endif
@endif
@endpush
@push('content')
@navbar
@navigation
@breadcrumb
@flash
@editor
@stack('container')
@if (!profile()->isMainDisabled())
@stack('profile_container')
@endif
@if (sizeof($tabs) > 0)
@endif
@endpush
@push('footer')
@at(tt('assets/js/pages/profile.js'))
@endpush
@footer