add videos file list
This commit is contained in:
@@ -42,7 +42,15 @@
|
||||
></x-ui.gallery>
|
||||
</div>
|
||||
|
||||
<p class="text-red-500">
|
||||
<div class="mb-4">
|
||||
<x-ui.filelist
|
||||
label="Videos"
|
||||
name="videos"
|
||||
value="{!! isset($post) ? $post->files('videos')->orderBy('name')->get() : '' !!}"
|
||||
editor="true"
|
||||
></x-ui.filelist>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<x-ui.filelist
|
||||
label="Files"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
</div>
|
||||
<article class="content mb-4">{!! $post->content !!}</article>
|
||||
<x-ui.gallery class="mt-16" value="{{ \App\Helpers::arrayToString($post->files('gallery')->pluck('name')->toArray()) }}" />
|
||||
<x-ui.filelist class="mt-16" label="Videos" value="{!! $post->files('videos')->orderBy('name')->get() !!}" />
|
||||
<x-ui.filelist class="mt-16" value="{!! $post->files()->orderBy('name')->get() !!}" />
|
||||
</x-container>
|
||||
</x-layout>
|
||||
|
||||
Reference in New Issue
Block a user