@extends('layouts.app') @section('title', 'Temple Registration') @php $breadcrumb = 'Temple Registration'; // Define Kerala districts as a fallback $keralaDistricts = [ 'Alappuzha', 'Ernakulam', 'Idukki', 'Kannur', 'Kasaragod', 'Kollam', 'Kottayam', 'Kozhikode', 'Malappuram', 'Palakkad', 'Pathanamthitta', 'Thiruvananthapuram', 'Thrissur', 'Wayanad', ]; // Use passed districts or fallback to Kerala districts $districtList = isset($districts) && is_array($districts) && count($districts) > 0 ? $districts : $keralaDistricts; @endphp @section('content')
Manage temple registrations and their details.
| ID | Temple Name | District | Location | Contact | Status | Registered | Actions |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} |
@if ($temple->logo)
{{ $temple->temple_name }}
{{ $temple->registration_number ?? 'N/A' }}
|
{{ $temple->district }} | {{ $temple->location ?? 'Not specified' }} |
{{ $temple->contact_number ?? 'N/A' }}
{{ $temple->email ?? 'N/A' }}
|
{{ ucfirst($temple->status) }} @if ($temple->status === 'inactive') @else @endif | {{ $temple->created_at->format('d M Y') }} | |
|
No temples registered yet. |
|||||||