@extends('frontend.mainlayout') @section('title', 'NDLI Club') @section('banner')

NDLI Club

@endsection @section('main')
@php $baseImagePath = '/uploads/ndli/'; $docSets = [ [ 'title' => 'Notice ', 'folder' => 'Notice', ], [ 'title' => 'Reports', 'folder' => 'Reports', ], ]; function getImagesFromFolder($folder, $allowedExtensions = ['pdf']) { $directory = public_path("{$folder}/"); return collect(File::files($directory))->filter(function ($file) use ($allowedExtensions) { return in_array(strtolower($file->getExtension()), $allowedExtensions); }); } @endphp @foreach ($docSets as $docSet)
— {{ $docSet['title'] }}
@endforeach
— Members of NDLI Club
@php $staff_members = [ [ 'image_src' => '/uploads/ndli/images/MR. SUBHANKAR GHOSH, Patron, NDLI Club RERF.webp', 'name' => 'Mr. Subhankar Ghosh', 'role' => 'Patron', ], [ 'image_src' => '/uploads/ndli/images/MR. BIDYUT KUMAR GHOSH, President, NDLI Club RERF.webp', 'name' => 'Mr. Bidyut Kumar Ghosh', 'role' => 'President ', ], [ 'image_src' => '/uploads/ndli/images/Mr. Suprovat Basu, Secretary, NDLI Club RERF.webp', 'name' => 'Mr. Suprovat Basu', 'role' => 'Secretary', ], [ 'image_src' => '/uploads/ndli/images/Dr. ARINDITA SAHA, Executive Member.webp', 'name' => 'Dr. Arindita Saha', 'role' => 'Executive Member', ], [ 'image_src' => '/uploads/ndli/images/Mr. Sabyasachi Mukherjee, Executive Member.webp', 'name' => 'Mr. Sabyasachi Mukherjee', 'role' => 'Executive Member', ], ]; @endphp @foreach ($staff_members as $staff_member) @php $role = isset($staff_member['role']) ? $staff_member['role'] : null; $designation = isset($staff_member['designation']) ? $staff_member['designation'] : null; $contact = isset($staff_member['contact']) ? $staff_member['contact'] : null; @endphp
{{ $staff_member['name'] }}
{{ $staff_member['name'] }}
@if ($role) {{ $role }} @endif {{ $designation }} @if ($contact) - {{ $contact }} @endif
@endforeach
@endsection