xmrmemes/resources/views/meme.blade.php
dev dbfda5cf9e Almost complete site
Add dark / light theme

Add social sharing on meme pages

Add approving / pending admin section

Improve design

Add pagination on profiles

Make front end date time user friendly

Finish rough draft of site

And Much more...

Still need to fix a few minor things before it goes live. Almost
complete.
2021-07-31 00:03:33 -07:00

108 lines
4.8 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<nav aria-label="breadcrumb">
<ol class="breadcrumb bg-light">
<li class="breadcrumb-item"><a href="{{ route('homepage') }}">All Memes</a></li>
<li class="breadcrumb-item active" aria-current="page">Meme {{ $data['meme']->id }}</li>
</ol>
</nav>
</div>
<div class="col-md-6 text-center">
<div class="card">
<div class="card-header">
<h5 class="card-title">{{ $data['meme']->title }}</h5>
@if ($data['meme']->caption)
<p class="card-text mb-1">{{ $data['meme']->caption }}</p>
@endif
<p class="card-text">By: <a href="{{ url('/user/' . $data['meme']->user->id) }}">{{ $data['meme']->user->name }}</a></p>
</div>
@if ($data['meme']->image)
<a href="{{ url($data['meme']->image) }}">
<img src="{{ url($data['meme']->image) }}" class="card-img-top" alt="{{ $data['meme']->title }} Meme">
</a>
@else
<img src="https://picsum.photos/800" class="card-img-top" alt="{{ $data['meme']->title }} Meme">
@endif
<div class="card-body p-0 pt-3">
{!!html_entity_decode($data['share'])!!}
</div>
<div class="card-footer">
<h5 class="card-title">{{ $data['meme']->meme_tips_total }} XMR Recieved</h5>
<p class="card-text">Published {{ $data['meme']->created_at->diffForHumans() }}</p>
</div>
</div>
</div>
</div>
<div class="row text-center justify-content-center">
<div class="col-md-12">
<h3 class="mt-4 mb-0">Tip The Creator</h3>
<img class="img-qr" src="{{ $data['qr'] }}" alt="QR code">
<p class="text-break">{{ $data['meme']->address->address }}</p>
</div>
<div class="col-12 col-lg-6">
<h4 class="mt-4">Monero Tips Recieved</h4>
<div class="table-responsive-md text-left mt-4">
<table class="table">
<thead>
<tr>
<th scope="col">Amount</th>
<th scope="col">Date Recieved</th>
<th scope="col">Transaction ID</th>
</tr>
</thead>
<tbody>
@foreach ($data['meme']['tips'] as $tip)
@if ($tip->is_deposit === 1)
<tr>
<td>{{ $tip->amount_formatted }}</td>
<td>{{ $tip->created_at->diffForHumans() }}</td>
<td class="text-truncate">
<a href="https://testnet.xmrchain.net/tx/{{ $tip->txid }}" target="_blank">
{{ $tip->txid }}
</a>
</td>
</tr>
@endif
@endforeach
</tbody>
</table>
</div>
</div>
<div class="col-12 col-lg-6">
<h4 class="mt-4">Monero Tips Sent</h4>
<div class="table-responsive-md text-left mt-4">
<table class="table">
<thead>
<tr>
<th scope="col">Amount</th>
<th scope="col">Date Sent</th>
<th scope="col">Transaction ID</th>
</tr>
</thead>
<tbody>
@foreach ($data['meme']['tips'] as $tip)
@if ($tip->is_deposit === 0)
<tr>
<td>{{ $tip->amount_formatted }}</td>
<td>{{ $tip->created_at->diffForHumans() }}</td>
<td class="text-truncate">
<a href="https://testnet.xmrchain.net/tx/{{ $tip->txid }}" target="_blank">
{{ $tip->txid }}
</a>
</td>
</tr>
@endif
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection