mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
social credit
This commit is contained in:
@@ -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)),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
public/img/social_credit_minus.webp
Normal file
BIN
public/img/social_credit_minus.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
BIN
public/img/social_credit_plus.webp
Normal file
BIN
public/img/social_credit_plus.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
11
resources/views/columns/book_cases/oranged-pilled.blade.php
Normal file
11
resources/views/columns/book_cases/oranged-pilled.blade.php
Normal 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>
|
||||||
Reference in New Issue
Block a user