set up list management
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run

This commit is contained in:
Edward Tirado Jr 2025-12-13 19:33:52 -06:00
parent 0c42bef077
commit 73d6578857
26 changed files with 495 additions and 230 deletions

View file

@ -0,0 +1,31 @@
<?php
namespace App\Livewire;
use App\Models\Movie;
use Livewire\Component;
class MovieDetailsPanel extends Component
{
public $showDetails = false;
public ?Movie $selectedMovie = null;
protected $listeners = ['openMovieDetails' => 'openPanel'];
public function openPanel(int $movieId): void
{
$this->selectedMovie = Movie::find($movieId);
$this->showDetails = true;
}
public function closePanel(): void
{
$this->showDetails = false;
$this->selectedMovie = null;
}
public function render()
{
return view('livewire.movie-details-panel');
}
}