diff --git a/resources/views/livewire/pages/table.blade.php b/resources/views/livewire/pages/table.blade.php new file mode 100644 index 0000000..91ff41d --- /dev/null +++ b/resources/views/livewire/pages/table.blade.php @@ -0,0 +1,74 @@ + Collection::class]); + +mount(function () { + $this->participants = Participant::all(); +}); + +?> + +
+
+ + @if($participants->isEmpty()) +
+ No record +
+ @else +
+ + + + + + + + + + + + + + @foreach($participants as $participant) + + + + + + + + + + + + + + @endforeach + +
IDUser IDGiving To (ID)PromptSubmission URLDesperate?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->desperate ? 'YES' : 'No' }} + + + {{ Str::limit($participant->token, 15, '...') }} +
+
+ @endif +
+ + +
diff --git a/routes/web.php b/routes/web.php index fdbe0a8..61f5422 100644 --- a/routes/web.php +++ b/routes/web.php @@ -8,5 +8,6 @@ Route::get('/', function () { })->name('home'); Volt::route('start', 'pages.start')->name('start'); +Volt::route('table', 'pages.table')->name('table'); Volt::route('profile/{token}', 'pages.profile')->name('profile'); Volt::route('withdraw', 'pages.withdraw')->name('withdraw');