@extends('layouts.app') @section('title', 'Admin Dashboard - SOFT Paste') @section('content')

Admin Center

Manage all snippets and users across the entire platform.

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@foreach($pastes as $paste) @endforeach
Title Author Syntax Visibility Status Created Actions
{{ $paste->title ?? 'Untitled Snippet' }} {{ $paste->user ? $paste->user->name : 'Guest' }} {{ $paste->syntax }} @if($paste->visibility === 'public') 🌍 @elseif($paste->visibility === 'unlisted') 🔗 @else 🔒 @endif {{ $paste->visibility }} @if($paste->expires_at && $paste->expires_at->isPast()) Expired @else Active @endif {{ $paste->created_at->format('M d, Y H:i') }}
View
@csrf @method('DELETE')
@foreach($users ?? [] as $user) @endforeach
User Email Role Joined Time Actions
@if($user->avatar) Avatar @else
{{ substr($user->name, 0, 1) }}
@endif {{ $user->name }}
{{ $user->email }} @if($user->is_admin) Admin @else User @endif {{ $user->created_at->format('M d, Y H:i') }}
@csrf @method('DELETE')
@push('scripts') @endpush @endsection