Upload Media

  • Upload
  • Library
@if ($tab == 'upload')
Upload File
@if (count($upload_file) > 0) @foreach ($upload_file as $upload_file_single)
{{ $upload_file_single->getClientOriginalName() }}
@endforeach @endif
@endif @if ($tab == 'library')
Search
@foreach ($libraries as $library_value) @if (has_image_by_url($library_value->url)) @php if ( \App\Models\Media::whereIn('id', $media_id) ->where('id', $library_value->id) ->first() ) { $select_media = true; } else { $select_media = false; } @endphp
@if ($select_media) @endif @if ($type == 'image') image not found @else {{-- video not found --}} {{ \Illuminate\Support\Str::limit($library_value->title, 20) }} @endif
@endif @endforeach
@endif
@error('media_id') Please select image first ! @enderror
@if ($tab == 'library') @else @endif