{{-- User's dashboard / profile page --}} @extends('layouts.app') @section('title', "$user->title's Tables") @php /** @var \App\Models\Table[] $tables */ /** @var \App\Models\User $user */ @endphp @section('content')
{{-- Dash card --}}
@icon(fa-user-circle-o fa-pr fa-large)

@if(authed() && user()->is($user)) @sr(Your dashboard -) @else @sr(User's page -) @endif {{ $user->title }}

@if(authed() && user()->is($user)) Edit @endif
@if($user->bio)
{!! Widget::collapsible($user->bio, 350, '8em')->srPrefix('About me:') !!}
@endif @if($user->website) @endif
@icon(fa-link, User's Website:) {!! Widget::tryLink($user->website) !!}
@icon(fa-vcard-o, User's handle:) {{ $user->handle }}
@icon(fa-table, Tables:) {{ $tables_count }} table{{$tables_count!=1?'s':''}}
@icon(fa-calendar, Join date:) Joined {{ $user->created_at->diffForHumans() }}
{{-- Table list card --}}
@icon(fa-table fa-pr fa-large)

@if(authed() && user()->is($user)) Your Tables @else User's Tables @endif

@if(authed() && user()->is($user) && user()->confirmed) New @endif
@include('profile._table-list')
@endsection