22 lines
730 B
PHP
22 lines
730 B
PHP
<div class=" text-white pt-5 flex flex-col gap-5">
|
|
<h1 class="text-2xl font-bold">{{$list->name}}</h1>
|
|
|
|
<form wire:submit.prevent="addMovie">
|
|
<div class="flex flex-col gap-2">
|
|
<label for="query">Enter a movie title</label>
|
|
<input wire:model="query" type="text" name="query" class="bg-white text-black"/>
|
|
@error('query') <span class="error text-red-500">{{ $message }}</span> @enderror
|
|
</div>
|
|
|
|
<button type="submit">Search</button>
|
|
</form>
|
|
|
|
|
|
<ul class="my-5 grid grid-cols-4 gap-5">
|
|
@foreach ($movies as $movie)
|
|
<li class="bg-gray-200">
|
|
<x-movie :movie="$movie"/>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|