@extends('frontend.mainlayout') @section('title', 'Events (BSH Department)') @section('banner')

Events (BSH Department)

{{--

Welcome to RERF Group of Institutions' NSS Cell, empowering students through community service and social impact.

--}}
@endsection @section('main')
@php $baseImagePath = 'uploads/Events/Bachelor of Technology/Basic Science/'; $imageSets = [ // [ // 'title' => 'Abahan 2023', // 'folder' => 'Abahan 2023', // ], // [ // 'title' => 'Bijoya Sanmiloni 2023', // 'folder' => 'Bijoya Sanmiloni 2023', // ], // [ // 'title' => "Engineers' Day 2023", // 'folder' => "Engineers' Day 2023", // ], // [ // 'title' => 'Neogenesis 2023', // 'folder' => 'Neogenesis 2023', // ], // [ // 'title' => 'Prak- Deepabali 2023', // 'folder' => 'Prak- Deepabali 2023', // ], ]; function getImagesFromFolder($folder, $allowedExtensions = ['webp', 'jpg', 'jpeg', 'png']) { $directory = public_path("{$folder}/"); return collect(File::files($directory))->filter(function ($file) use ($allowedExtensions) { return in_array(strtolower($file->getExtension()), $allowedExtensions); }); } @endphp @foreach ($imageSets as $imageSet)
— {{ $imageSet['title'] }}
@endforeach
@endsection