11<x-filament::modal id =" mediaPickerModal" width =" 7xl" >
22 <x-slot name =" header" >
3- <h2 class =" text-lg font-bold" >Upload & Select Media </h2 >
3+ <h2 class =" text-lg font-bold" >{{ __ ( ' media::fields.upload_and_select_media ' ) } } </h2 >
44 </x-slot >
55
66 <div class =" min-w-[1000px]" >
@@ -24,21 +24,21 @@ class="block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 foc
2424
2525 <x-filament::input .wrapper class =" w-1/6" >
2626 <x-filament::input .select wire:model.live =" fileTypeFilter" >
27- <option value =" " >Alle Typen </option >
28- <option value =" images" >Bilder </option >
29- <option value =" videos" >Videos </option >
30- <option value =" audios" >Audios </option >
31- <option value =" documents" >Dokumente </option >
27+ <option value =" " >{{ __ ( ' media::fields.all_types ' ) } } </option >
28+ <option value =" images" >{{ __ ( ' media::fields.images ' ) } } </option >
29+ <option value =" videos" >{{ __ ( ' media::fields.videos ' ) } } </option >
30+ <option value =" audios" >{{ __ ( ' media::fields.audios ' ) } } </option >
31+ <option value =" documents" >{{ __ ( ' media::fields.documents ' ) } } </option >
3232 </x-filament::input .select >
3333 </x-filament::input .wrapper >
3434
3535 <x-filament::input .wrapper class =" w-1/6" >
3636 <x-filament::input .select wire:model.live =" dateFilter" >
37- <option value =" " >Alle Zeiträume </option >
38- <option value =" today" >Heute </option >
39- <option value =" week" >7 Tage </option >
40- <option value =" month" >Monat </option >
41- <option value =" year" >Jahr </option >
37+ <option value =" " >{{ __ ( ' media::fields.all_periods ' ) } } </option >
38+ <option value =" today" >{{ __ ( ' media::fields.today ' ) } } </option >
39+ <option value =" week" >{{ __ ( ' media::fields.week ' ) } } </option >
40+ <option value =" month" >{{ __ ( ' media::fields.month ' ) } } </option >
41+ <option value =" year" >{{ __ ( ' media::fields.year ' ) } } </option >
4242 </x-filament::input .select >
4343 </x-filament::input .wrapper >
4444 </div >
@@ -82,8 +82,8 @@ class="block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 foc
8282
8383 <div wire:click =" toggleMediaSelection({{ $item [' id' ] } } )"
8484 class =" relative rounded-lg shadow-md overflow-hidden bg-gray-100 hover:shadow-lg transition cursor-pointer
85- {{ in_array ($item [' id' ], $selectedMediaIds ) ? ' ring-2 ring-blue-600' : ' border border-gray-200' } }
86- {{ $selectedMediaMeta [' id' ] == $item [' id' ] ? ' ring-4 ring-blue-700 border-2 border-blue-700' : ' ' } }" >
85+ {{ in_array ($item [' id' ], $selectedMediaIds ) ? ' ring-2 ring-blue-600' : ' border border-gray-200' } }
86+ {{ $selectedMediaMeta [' id' ] == $item [' id' ] ? ' ring-4 ring-blue-700 border-2 border-blue-700' : ' ' } }" >
8787 @if ($fileData )
8888 <div class =" flex flex-col justify-between items-center w-full h-32 bg-gray-200" >
8989 <x-filament::icon icon =" {{ $fileData [' icon' ] } }" class =" w-16 h-16 text-gray-600" />
@@ -117,67 +117,67 @@ class="text-xs text-gray-700 w-full mt-2 overflow-hidden text-ellipsis whitespac
117117
118118 <div class =" w-full md:w-2/5 lg:w-1/3 max-w-md flex-shrink-0 border-l pl-4" >
119119 <x-filament::section >
120- <h3 class =" text-lg font-semibold mb-4" >Metadaten bearbeiten </h3 >
120+ <h3 class =" text-lg font-semibold mb-4" >{{ __ ( ' media::fields.edit_metadata ' ) } } </h3 >
121121
122122 @if (! empty ($selectedMediaMeta [' id' ]) )
123123 <form wire:submit.prevent =" saveMetadata" >
124124 <x-filament-forms::field-wrapper .label class =" block text-sm font-medium text-gray-700 mb-1" >
125- Title
125+ {{ __ ( ' media::fields.title ' ) } }
126126 </x-filament-forms::field-wrapper .label >
127127 <x-filament::input .wrapper class =" mb-4" >
128- <x-filament::input type =" text" wire:model.lazy =" selectedMediaMeta.title" placeholder =" Title "
128+ <x-filament::input type =" text" wire:model.lazy =" selectedMediaMeta.title" placeholder =" {{ __ ( ' media::fields.title ' ) } } "
129129 :disabled =" (bool) $selectedMediaMeta['write_protected']"
130130 class =" block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500" />
131131 </x-filament::input .wrapper >
132132
133133 <x-filament-forms::field-wrapper .label class =" block text-sm font-medium text-gray-700 mb-1" >
134- Description
134+ {{ __ ( ' media::fields.description ' ) } }
135135 </x-filament-forms::field-wrapper .label >
136136 <x-filament::input .wrapper class =" mb-4" >
137137 <x-filament::input type =" text" wire:model.lazy =" selectedMediaMeta.description"
138- placeholder =" Description " :disabled =" $selectedMediaMeta['write_protected'] === true"
138+ placeholder =" {{ __ ( ' media::fields.description ' ) } } " :disabled =" $selectedMediaMeta['write_protected'] === true"
139139 class =" block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500" />
140140 </x-filament::input .wrapper >
141141
142142 <x-filament-forms::field-wrapper .label class =" block text-sm font-medium text-gray-700 mb-1" >
143- Internal Note
143+ {{ __ ( ' media::fields.internal_note ' ) } }
144144 </x-filament-forms::field-wrapper .label >
145145 <x-filament::input .wrapper class =" mb-4" >
146146 <x-filament::input type =" text" wire:model.lazy =" selectedMediaMeta.internal_note"
147- placeholder =" Internal note " :disabled =" $selectedMediaMeta['write_protected'] === true"
147+ placeholder =" {{ __ ( ' media::fields.internal_note ' ) } } " :disabled =" $selectedMediaMeta['write_protected'] === true"
148148 class =" block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500" />
149149 </x-filament::input .wrapper >
150150
151151 <x-filament-forms::field-wrapper .label class =" block text-sm font-medium text-gray-700 mb-1" >
152- Alt
152+ {{ __ ( ' media::fields.alt_text ' ) } }
153153 </x-filament-forms::field-wrapper .label >
154154 <x-filament::input .wrapper class =" mb-4" >
155- <x-filament::input type =" text" wire:model.lazy =" selectedMediaMeta.alt" placeholder =" Alt text "
155+ <x-filament::input type =" text" wire:model.lazy =" selectedMediaMeta.alt" placeholder =" {{ __ ( ' media::fields.alt_text ' ) } } "
156156 :disabled =" $selectedMediaMeta['write_protected'] === true"
157157 class =" block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500" />
158158 </x-filament::input .wrapper >
159159
160160 <x-filament-forms::field-wrapper .label class =" block text-sm font-medium text-gray-700 mb-1" >
161- File Type
161+ {{ __ ( ' media::fields.file_type ' ) } }
162162 </x-filament-forms::field-wrapper .label >
163163 <x-filament::input .wrapper class =" mb-4" >
164164 <x-filament::input type =" text" disabled wire:model.lazy =" selectedMediaMeta.mime_type"
165165 class =" block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500" />
166166 </x-filament::input .wrapper >
167167 </form >
168168 @else
169- <p class =" text-gray-500" >Kein Bild ausgewählt. </p >
169+ <p class =" text-gray-500" >{{ __ ( ' media::fields.no_media_selected ' ) } } </p >
170170 @endif
171171 </x-filament::section >
172172 </div >
173173 </div >
174174
175175 <x-slot name =" footer" >
176176 <x-filament::button wire:click =" applySelection" color =" primary" class =" mb-4" >
177- Auswahl übernehmen
177+ {{ __ ( ' media::fields.apply_selection ' ) } }
178178 </x-filament::button >
179179 <x-filament::button wire:click =" $dispatch('close-modal', { id: 'mediaPickerModal' })" >
180- Schließen
180+ {{ __ ( ' media::fields.close ' ) } }
181181 </x-filament::button >
182182 </x-slot >
183183</x-filament::modal >
0 commit comments