social credit

This commit is contained in:
Benjamin Takats
2022-12-07 00:21:07 +01:00
parent 2fcb53a79d
commit e5b4666d4e
4 changed files with 13 additions and 2 deletions

View File

@@ -48,8 +48,8 @@ class BookCaseTable extends DataTableComponent
) => $row->homepage ? '<a target="_blank" class="underline text-amber-500" href="'.$this->url_to_absolute($row->homepage).'">Link</a>' : null ) => $row->homepage ? '<a target="_blank" class="underline text-amber-500" href="'.$this->url_to_absolute($row->homepage).'">Link</a>' : null
) )
->html(), ->html(),
BooleanColumn::make('Oranged-Pilled', 'deactivated') Column::make('Oranged-Pilled', 'deactivated')
->sortable(), ->label(fn($row, Column $column) => view('columns.book_cases.oranged-pilled')->withRow($row)),
]; ];
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -0,0 +1,11 @@
<div>
@php
$a = (bool)rand(0, 1);
@endphp
@if($a)
<img class="h-12" src="{{ asset('img/social_credit_minus.webp') }}" alt="">
@endif
@if(!$a)
<img class="h-12" src="{{ asset('img/social_credit_plus.webp') }}" alt="">
@endif
</div>