routes changed

This commit is contained in:
Benjamin Takats
2022-12-15 20:15:56 +01:00
parent ffe6cc877f
commit 0dd8ec4037
6 changed files with 24 additions and 20 deletions

View File

@@ -8,6 +8,7 @@ use Livewire\Component;
class CityTable extends Component
{
public Country $country;
public function render()
{
return view('livewire.book-case.city-table');

View File

@@ -14,6 +14,8 @@ class BookCaseTable extends DataTableComponent
{
use Actions;
public string $country;
public bool $viewingModal = false;
public $currentModal;
public array $orangepill = [
@@ -94,7 +96,7 @@ class BookCaseTable extends DataTableComponent
)
->html(),
Column::make('Orange-Pilled', 'orange_pilled')
->label(fn($row, Column $column) => view('columns.book_cases.oranged-pilled')->withRow($row)),
->label(fn($row, Column $column) => view('columns.book_cases.oranged-pilled')->withRow($row)->withCountry($this->country))
];
}

View File

@@ -114,6 +114,7 @@ class CityTable extends DataTableComponent
return to_route('bookCases.table.bookcases', [
'#table',
'country' => $this->country,
'table' => [
'filters' => [
'byids' => $ids->implode(',')