Fix Blade syntax error on event speakers page.
Deploy Ladill Events / deploy (push) Successful in 42s
Deploy Ladill Events / deploy (push) Successful in 42s
Split inline @if directives in programme assignment rows so the speakers view compiles and loads without a 500. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -77,7 +77,11 @@
|
||||
<div class="flex flex-wrap items-start justify-between gap-2 py-3 text-sm">
|
||||
<div>
|
||||
<p class="font-semibold text-slate-900">{{ $assignment['name'] }}</p>
|
||||
<p class="text-xs text-slate-500">{{ $assignment['session'] ?: 'Session' }}@if($assignment['day']) · {{ $assignment['day'] }}@endif@if($assignment['time']) · {{ $assignment['time'] }}@endif</p>
|
||||
<p class="text-xs text-slate-500">
|
||||
{{ $assignment['session'] ?: 'Session' }}
|
||||
@if($assignment['day'])<span> · {{ $assignment['day'] }}</span>@endif
|
||||
@if($assignment['time'])<span> · {{ $assignment['time'] }}</span>@endif
|
||||
</p>
|
||||
</div>
|
||||
<span class="rounded-full bg-slate-100 px-2 py-0.5 text-[11px] font-medium text-slate-600">Programme</span>
|
||||
</div>
|
||||
|
||||
@@ -41,6 +41,32 @@ class EventSpeakerManagementTest extends TestCase
|
||||
->assertSee('Speakers', false);
|
||||
}
|
||||
|
||||
public function test_event_speakers_page_renders(): void
|
||||
{
|
||||
$owner = User::factory()->create(['public_id' => 'usr_speakers_show']);
|
||||
|
||||
$event = QrCode::create([
|
||||
'user_id' => $owner->id,
|
||||
'short_code' => 'evt-speakers-show',
|
||||
'type' => QrCode::TYPE_EVENT,
|
||||
'label' => 'Summit day',
|
||||
'payload' => [
|
||||
'content' => [
|
||||
'name' => 'Summit day',
|
||||
'speakers' => [['name' => 'Ada Lovelace', 'email' => '', 'role' => 'Keynote', 'bio' => '']],
|
||||
],
|
||||
'style' => [],
|
||||
],
|
||||
'is_active' => true,
|
||||
]);
|
||||
|
||||
$this->actingAs($owner)
|
||||
->get(route('speakers.show', $event))
|
||||
->assertOk()
|
||||
->assertSee('Speaker management', false)
|
||||
->assertSee('Ada Lovelace', false);
|
||||
}
|
||||
|
||||
public function test_event_speaker_roster_can_be_updated(): void
|
||||
{
|
||||
$owner = User::factory()->create(['public_id' => 'usr_speakers_upd']);
|
||||
|
||||
Reference in New Issue
Block a user