@extends('adminlte::page') @section('title', 'Matches') @section('content_header')

Matches

Add Match
@stop @section('content') @if(session('success'))
{{ session('success') }}
@endif
@forelse($matches as $match) @empty @endforelse
ID Member Matched With Status Unread Reported Last Message Created Actions
{{ $match->id }} {{ $match->member->name }} {{ $match->matchedMember->name }} @php $badgeClass = match($match->status) { 'active' => 'success', 'expired' => 'secondary', 'blocked' => 'danger', default => 'secondary', }; @endphp {{ ucfirst($match->status) }} {{ $match->unread_count }} @if($match->is_reported) Yes @else No @endif {{ $match->last_message_at?->format('M d, Y H:i') ?? '—' }} {{ $match->created_at->format('M d, Y') }}
@csrf @method('DELETE')
No matches found.
@if($matches->hasPages()) @endif
@stop