@extends('frontend.layouts.app') @section('title') @if ($request->type == 'images') Image @else Video @endif Gallery - @endsection @push('style') @endpush @section('content') @php $title = $request->type == 'images' ? 'Image Gallery' : 'Video Gallery'; @endphp @include('frontend.layouts.include.breadcrumb', [ 'items' => [['name' => $title, 'url' => null]], ])
@foreach ($folders as $folder) @php $sub = $folder->subfolder->first(); $gallery = $sub?->gallery->first(); @endphp @if ($gallery) @if ($gallery->type == 'image')
{{ $folder->name }}
{{ $folder->name }}
@elseif ($gallery->type == 'video_link')
{{ $folder->name }}
{{ $folder->name }}
@endif @endif @endforeach
@endsection @push('script') @endpush