mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
images
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
<div
|
||||
class="group aspect-w-10 aspect-h-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100">
|
||||
<img
|
||||
src="{{ $orangePill->bookCase->getFirstMediaUrl('images') ? $orangePill->bookCase->getFirstMediaUrl('images') : asset('img/empty_book_case.webp') }}"
|
||||
src="{{ $orangePill->getFirstMediaUrl('images') ? $orangePill->bookCase->getFirstMediaUrl('images') ?: asset('img/empty_book_case.webp') : asset('img/empty_book_case.webp') }}"
|
||||
alt="book_case"
|
||||
class="pointer-events-none object-cover group-hover:opacity-75">
|
||||
</div>
|
||||
|
||||
@@ -27,6 +27,16 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-span-6 sm:col-span-4">
|
||||
<form wire:submit.prevent="save">
|
||||
<label class="my-2 text-gray-200 text-xl">{{ __('Photo') }}</label>
|
||||
<div class="text-sm text-gray-500">
|
||||
<input type="file" wire:model="photo">
|
||||
@error('photo') <span class="text-red-500">{{ $message }}</span> @enderror
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="col-span-6 sm:col-span-4">
|
||||
<x-input
|
||||
min="1"
|
||||
|
||||
Reference in New Issue
Block a user