datatable.directory codebase
https://datatable.directory/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
2.8 KiB
93 lines
2.8 KiB
7 years ago
|
{{-- User's dashboard / profile page --}}
|
||
|
@extends('layouts.app')
|
||
|
|
||
|
@php
|
||
|
/** @var \App\Models\Table[] $tables */
|
||
|
/** @var \App\Models\User $user */
|
||
|
@endphp
|
||
|
|
||
|
@section('content')
|
||
7 years ago
|
<div class="row justify-content-center">
|
||
7 years ago
|
|
||
7 years ago
|
{{-- Dash card --}}
|
||
|
<div class="col-md-4">
|
||
|
<div class="card">
|
||
|
<div class="card-header card-header-extra">
|
||
|
<i class="fa-user-circle-o fa-pr fa-large"></i>{{ $user->title }}
|
||
7 years ago
|
|
||
7 years ago
|
@if(authed() && user()->is($user))
|
||
7 years ago
|
<a href="{{route('profile.edit')}}" class="btn ml-auto">Edit</a>
|
||
7 years ago
|
@endif
|
||
|
</div>
|
||
7 years ago
|
|
||
7 years ago
|
<div class="card-body">
|
||
|
@if (session('status'))
|
||
|
<div class="alert alert-success" role="alert">
|
||
|
{{ session('status') }}
|
||
|
</div>
|
||
|
@endif
|
||
7 years ago
|
|
||
7 years ago
|
@if($user->bio)
|
||
|
@if(mb_strlen($user->bio) > 250)
|
||
|
<p id="bio-short" aria-hidden=true>
|
||
|
{{mb_substr($user->bio, 0, 250)}}…
|
||
|
<a class="text-muted small" title="Show more" href="#" onclick="$('#bio-short').addClass('hidden'); $('#bio-full').removeClass('hidden'); return false;">
|
||
|
[more]
|
||
|
</a>
|
||
|
</p>
|
||
|
<p id="bio-full" class="hidden">
|
||
|
{{ $user->bio }}
|
||
|
<a class="text-muted small" title="Collapse" href="#" onclick="$('#bio-full').addClass('hidden'); $('#bio-short').removeClass('hidden'); return false;">
|
||
|
[collapse]
|
||
|
</a>
|
||
|
</p>
|
||
|
@else
|
||
7 years ago
|
<p>
|
||
7 years ago
|
{{ $user->bio }}
|
||
7 years ago
|
</p>
|
||
|
@endif
|
||
7 years ago
|
@endif
|
||
7 years ago
|
|
||
7 years ago
|
@if($user->website)
|
||
|
<p>
|
||
|
<i class="fa-link fa-pr" aria-label="User's Website" title="User's Website"></i>{{--
|
||
|
--}}<a href="{{ $user->website }}">{{ $user->website }}</a>
|
||
7 years ago
|
</p>
|
||
7 years ago
|
@endif
|
||
|
|
||
|
<p class="mb-0">
|
||
|
<i class="fa-calendar fa-pr" aria-hidden=true></i>{{--
|
||
|
--}}Joined {{ $user->created_at->diffForHumans() }}
|
||
|
</p>
|
||
7 years ago
|
</div>
|
||
|
</div>
|
||
7 years ago
|
</div>
|
||
7 years ago
|
|
||
7 years ago
|
{{-- Table list card --}}
|
||
|
<div class="col-md-8">
|
||
|
<div class="card">
|
||
|
<div class="card-header card-header-extra">
|
||
|
<span>
|
||
7 years ago
|
@if(authed() && user()->is($user))
|
||
7 years ago
|
Your Tables
|
||
|
@else
|
||
|
User's Tables
|
||
7 years ago
|
@endif
|
||
7 years ago
|
</span>
|
||
7 years ago
|
|
||
7 years ago
|
<nav class="ml-auto" aria-label="Pages of the table list">
|
||
|
{{ $tables->links(null, ['ulClass' => 'pagination-sm mb-0 pagination-outline-light']) }}
|
||
|
</nav>
|
||
|
|
||
|
@if(authed() && user()->is($user))
|
||
|
<a href="{{route('table.create')}}" class="btn ml-3">New</a>
|
||
|
@endif
|
||
7 years ago
|
</div>
|
||
|
|
||
7 years ago
|
@include('profile._table-list')
|
||
7 years ago
|
</div>
|
||
7 years ago
|
</div>
|
||
7 years ago
|
|
||
7 years ago
|
</div>
|
||
|
@endsection
|