xmrmemes/resources/views/dashboard.blade.php
dev 821fb9b1ed Finish rough draft of website
Update the payment code so everything is working now

Improve DB structure

Improve design

Add API

Validate XMR Address upon registration

And Much More...

Still Need to work on:

- SEO
- Dropdown in menu (bug, not dropping down)
2021-08-06 13:06:07 -07:00

44 lines
1.9 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Dashboard') }}</div>
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
{{ __('You are logged in!') }}
</div>
</div>
</div>
</div>
@if ($data['memes_pending'])
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-4 grid-memes mt-3">
@foreach ($data['memes_pending'] as $meme)
<div class="col mb-4">
<div class="card">
@if ($meme->image)
<img src="{{ url($meme->image) }}" class="card-img-top mx-auto d-block" alt="{{ $meme->title }} Meme">
@else
<img src="https://picsum.photos/200" class="card-img-top" alt="{{ $meme->title }} Meme">
@endif
<div class="card-body">
<h5 class="card-title">{{ $meme->title }}</h5>
<p class="card-text">{{ $meme->caption }}</p>
<p class="card-text"><a href="{{ url('meme/approve/' . $meme->id) }}">Approve</a> | <a href="{{ url('meme/destroy/' . $meme->id) }}">Delete</a></p>
<p class="card-text">By: <a href="{{ url('/user/' . $meme->user->id) }}">{{ $meme->user->name }}</a></p>
<p class="card-text">{{ $meme->created_at->diffForHumans() }}</p>
</div>
</div>
</div>
@endforeach
</div>
@endif
</div>
@endsection