{{-- 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 --}}
@include('profile._profile-card')
{{-- Table list card --}}
@if($pageVariant == 'tables') @icon(fa-table fa-pr fa-large)

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

@include('table._sort-dropdown', [ 'link' => route('profile.view', Input::except(['tableSort', 'page']) + ['tableSort' => '__sort'] + ['user' => $user->name]) ]) @elseif($pageVariant == 'favourites') @icon(fa-star fa-pr fa-large)

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

@include('table._sort-dropdown', [ 'link' => route('profile.view-favourites', Input::except(['tableSort', 'page']) + ['tableSort' => '__sort'] + ['user' => $user->name]) ]) @endif @if($pageVariant == 'tables') @if(authed() && user()->is($user) && user()->confirmed) New @endif @endif
@include('profile._table-list')
@endsection