slink/laravel/resources/views/profile.blade.php

26 lines
792 B
PHP
Raw Permalink Normal View History

2024-06-09 22:03:34 +00:00
@extends('default')
@section('title')
Profile
@endsection
@section('content')
<h1>Profile</h1>
<p>Username: <em>{{ Auth::user()->name }}</em></p>
<p>Email: <em>{{ Auth::user()->email }}</em></p>
<p>Created at: <em>{{ Auth::user()->created_at }}</em></p>
2024-06-10 22:29:22 +00:00
<table>
<tr>
<th>Link</th>
<th>Destination</th>
<th>Created at</th>
</tr>
@foreach ($shortlinks as $shortlink)
<tr>
2024-06-11 00:58:35 +00:00
<td><a href="{{ url()->to("l/" . $shortlink->shortid) }}">{{ $shortlink['shortid'] }}</a></td>
2024-06-10 22:29:22 +00:00
<td>{{ $shortlink['destination'] }}</td>
2024-06-11 01:04:43 +00:00
<td>{{ Carbon\Carbon::parse($shortlink->created_at)->format('M jS Y') }}</td>
2024-06-10 22:29:22 +00:00
</tr>
@endforeach
</table>
2024-06-09 22:03:34 +00:00
@endsection