auditionadmin/resources/views/test.blade.php

45 lines
1.4 KiB
PHP

@php use App\Models\Audition;
use App\Models\Entry;
use App\Models\School;
use App\Models\SchoolEmailDomain;
use App\Models\ScoreSheet;
use App\Models\ScoringGuide;
use App\Models\User;use App\Services\ScoreService;use App\Settings;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Session;
@endphp
@inject('scoreservice','App\Services\ScoreService');
@inject('auditionService','App\Services\AuditionCacheService');
@inject('entryService','App\Services\EntryCacheService')
@inject('seatingService','App\Services\SeatingService')
<x-layout.app>
<x-slot:page_title>Test Page</x-slot:page_title>
@php
dump($auditionService->getAuditions());
@endphp
<x-table.table>
<thead>
<tr>
<x-table.th>Name</x-table.th>
<x-table.th>Total Entries</x-table.th>
<x-table.th>Seating Entries</x-table.th>
<x-table.th>Advancement Entries</x-table.th>
</tr>
</thead>
<tbody>
@foreach($auditionService->getAuditions() as $a)
<tr>
<x-table.td>{{ $a->name }}</x-table.td>
<x-table.td>{{ $a->entries_count }}</x-table.td>
<x-table.td>{{ $a->seating_entries_count }}</x-table.td>
<x-table.th>{{ $a->advancement_entries_count }}</x-table.th>
</tr>
@endforeach
</tbody>
</x-table.table>
</x-layout.app>