commit
2e400b9682
@ -0,0 +1,69 @@ |
||||
@php |
||||
/** @var \App\Models\User $user */ |
||||
@endphp |
||||
|
||||
<div class="card"> |
||||
<div class="card-header card-header-extra"> |
||||
@icon(fa-user-circle-o fa-pr fa-large) |
||||
<h1> |
||||
@if(authed() && user()->is($user)) |
||||
@sr(Your dashboard -) |
||||
@else |
||||
@sr(User's page -) |
||||
@endif |
||||
{{ $user->title }} |
||||
</h1> |
||||
|
||||
@if(authed() && user()->is($user)) |
||||
<a href="{{route('profile.edit')}}" class="btn ml-auto" aria-label="Edit Profile">Edit</a> |
||||
@endif |
||||
</div> |
||||
|
||||
<div class="card-body"> |
||||
@if($user->bio) |
||||
<div class="mb-3"> |
||||
{!! Widget::collapsible($user->bio, 350, '8em')->srPrefix('About me:') !!} |
||||
</div> |
||||
@endif |
||||
|
||||
<div class="mb-3"> |
||||
@if($tables_count) |
||||
<a href="{{ route('profile.view', $user->name) }}" class="btn btn-sm btn-outline-primary"> |
||||
@icon(fa-table fa-pr)Tables <span class="badge">{{$tables_count}}</span> |
||||
</a> |
||||
@endif |
||||
|
||||
@if($favourites_count) |
||||
<a href="{{ route('profile.view-favourites', $user->name) }}" class="btn btn-sm btn-outline-primary"> |
||||
@icon(fa-star fa-pr)Favourites <span class="badge">{{$favourites_count}}</span> |
||||
</a> |
||||
@endif |
||||
</div> |
||||
|
||||
<table class="bio-table"> |
||||
<tbody> |
||||
@if($user->website) |
||||
<tr> |
||||
<td class="text-center pr-2">@icon(fa-link, User's Website:)</td> |
||||
<td>{!! Widget::tryLink($user->website) !!}</td> |
||||
</tr> |
||||
@endif |
||||
|
||||
<tr> |
||||
<td class="text-center pr-2">@icon(fa-vcard-o, User's handle:)</td> |
||||
<td>{{ $user->handle }}</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td class="text-center pr-2">@icon(fa-calendar, Join date:)</td> |
||||
<td> |
||||
<span class="pr-1" data-toggle="tooltip" data-placement="right" |
||||
title="{{ $user->created_at->format('M n, Y \\a\\t G:i') }}"> |
||||
Joined {{ $user->created_at->diffForHumans() }} |
||||
</span> |
||||
</td> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
</div> |
||||
</div> |
@ -0,0 +1,10 @@ |
||||
<div class="row justify-content-start px-3"> |
||||
<div class="d-flex w-100 align-items-center"> |
||||
@include('table._header-handle') |
||||
|
||||
<h1 class="mx-3" id="table-title">{{ $table->title }}</h1> |
||||
<a href="{{ $table->viewRoute }}" class="btn btn-outline-primary py-1 btn-sm" @tooltip(Back to Table)> |
||||
@icon(fa-reply, sr:Back to Table) |
||||
</a> |
||||
</div> |
||||
</div> |
@ -0,0 +1,44 @@ |
||||
{{-- List of table revisions --}} |
||||
|
||||
@extends('layouts.app') |
||||
@section('title', "Favouriting Users - $table->title") |
||||
|
||||
@php |
||||
/** @var \App\Models\Table $table */ |
||||
/** @var \App\Models\User[]|\Illuminate\Support\Collection $users */ |
||||
@endphp |
||||
|
||||
@section('content') |
||||
@include('table._table-subpage-header') |
||||
|
||||
<div class="row px-3 border-top pt-3"> |
||||
<div class="col-md-12"> |
||||
<h2>Favouriting Users</h2> |
||||
</div> |
||||
|
||||
<div class="col-md-12 d-flex flex-wrap"> |
||||
@foreach($users as $user) |
||||
<div class="col-md-4 px-0"> |
||||
<div class="rounded border box-shadow-thin m-1 px-2 d-flex align-items-center py-1"> |
||||
<span class="flex-grow-1" style="font-size:140%;font-weight:bold"> |
||||
{{ $user->title }} |
||||
</span> |
||||
|
||||
<span> |
||||
<a href="{{route('profile.view', $user->name)}}" |
||||
class="btn btn-outline-secondary btn-sm" |
||||
> |
||||
@icon(fa-user fa-pr)Profile |
||||
</a> |
||||
<a href="{{route('profile.view-favourites', $user->name)}}" |
||||
class="btn btn-outline-secondary btn-sm" |
||||
> |
||||
@icon(fa-star fa-pr)Faves |
||||
</a> |
||||
</span> |
||||
</div> |
||||
</div> |
||||
@endforeach |
||||
</div> |
||||
</div> |
||||
@endsection |
Loading…
Reference in new issue