Collection::class, 'render' => false]); state(['password']); mount(function ($password) { $this->password = $password; if ($this->password == env('ADMIN_PASSWORD')) { $this->render = true; } $this->participants = Participant::all(); }); $runMatch = function () { $matcher = app(MatcherService::class); $matcher->match(); session()->flash('match-message',"Done"); $this->participants = Participant::all(); }; ?>
Displaying all records from the `participants` table.
@if (session()->has('match-message'))Success!
{{ session('match-message') }}
| ID | User ID | Giving To (ID) | Prompt | Submission URL | Desperate? | Token (ULID) |
|---|---|---|---|---|---|---|
| {{ $participant->id }} | {{ $participant->user_id }} | {{ $participant->giving_id ?? 'N/A' }} | {{ Str::limit($participant->prompt, 50) }} | @if($participant->submission_url) View Link @else N/A @endif | {{ $participant->is_desperate ? 'YES' : 'No' }} | {{ $participant->token }} |