@extends('Frontend.Master.authMaster') @section('content')
{{-- Search Bar --}}
@csrf
{{-- Results List --}}
@isset($getData) @forelse($getData['mediaItems'] as $item)
{{ $item->title }}
Download
@php $tagsArray = is_array($item->tags) ? $item->tags : json_decode($item->tags, true); @endphp @foreach($tagsArray ?? [] as $tag) {{ is_array($tag) ? implode(', ', $tag) : $tag }} @endforeach

{{ $item->description }}

{{ $item->purpose }}

Uploaded {{ \Carbon\Carbon::parse($item->created_at)->format('d.m.Y') }} Download {{ $item->download_count }}
@empty @if($getData['first']=='no')

No matching documents found.

@endif @endforelse @if($getData['first']=='yes')

Start your search to see results.

@endif @else @endisset
@endsection