diff --git a/app/Http/Livewire/Tables/BookCaseTable.php b/app/Http/Livewire/Tables/BookCaseTable.php index e9aa8534..b46a8f9d 100644 --- a/app/Http/Livewire/Tables/BookCaseTable.php +++ b/app/Http/Livewire/Tables/BookCaseTable.php @@ -48,8 +48,8 @@ class BookCaseTable extends DataTableComponent ) => $row->homepage ? 'Link' : null ) ->html(), - BooleanColumn::make('Oranged-Pilled', 'deactivated') - ->sortable(), + Column::make('Oranged-Pilled', 'deactivated') + ->label(fn($row, Column $column) => view('columns.book_cases.oranged-pilled')->withRow($row)), ]; } diff --git a/public/img/social_credit_minus.webp b/public/img/social_credit_minus.webp new file mode 100644 index 00000000..dff982bc Binary files /dev/null and b/public/img/social_credit_minus.webp differ diff --git a/public/img/social_credit_plus.webp b/public/img/social_credit_plus.webp new file mode 100644 index 00000000..0f7b429e Binary files /dev/null and b/public/img/social_credit_plus.webp differ diff --git a/resources/views/columns/book_cases/oranged-pilled.blade.php b/resources/views/columns/book_cases/oranged-pilled.blade.php new file mode 100644 index 00000000..9686c9a0 --- /dev/null +++ b/resources/views/columns/book_cases/oranged-pilled.blade.php @@ -0,0 +1,11 @@ +
+ @php + $a = (bool)rand(0, 1); + @endphp + @if($a) + + @endif + @if(!$a) + + @endif +