@extends('frontend.layouts.app') @section('title', 'Offline Yatra Companion - The Braj') @section('content')
{{-- Top Offline Notification Banner --}}
🪔

Offline Yatra Companion

● Offline Mode

Even without cellular data or internet along the parikrama routes, your emergency helplines, saved yatra slip, and sacred daily prayers remain safely accessible here.

{{-- Grid: Emergency Contacts & Quick Actions --}}
{{-- Card 1: Emergency Helplines --}}
🚨

Braj Emergency Helplines

24x7 Active
@php $contactsList = $dbContacts->isNotEmpty() ? $dbContacts : $fallbackHelplines; @endphp @foreach($contactsList as $contact) @php $name = is_array($contact) ? $contact['name'] : $contact->name; $phone = is_array($contact) ? $contact['phone'] : $contact->phone; @endphp
{{ $name }}
{{ $phone }}
Call
@endforeach
{{-- Card 2: Offline Yatra Slip & Saved Items --}}
📜

Your Saved Yatra Slip

Offline Protected
{{-- Container for favorites (populated via Server or localStorage) --}}
@if(!empty($savedFavorites) && count($savedFavorites) > 0) @foreach($savedFavorites as $fav) @if($fav->favorable)
{{ $fav->favorable->name ?? $fav->favorable->title ?? 'Holy Temple / Vendor' }}
{{ $fav->favorable->address ?? $fav->favorable->tagline ?? 'Braj Mandal' }}
@if(!empty($fav->favorable->phone)) Call @endif
@endif @endforeach @else
📌 While online, tap the Heart (❤️) icon on temples, ashrams, or shops to save them here. They will always appear offline.
@endif
View Full Yatra Slip ➜
{{-- Card 3: Sacred Braj Prayers (Aarti & Stutis for Pilgrims) --}}
🛕

Daily Sacred Prayers & Aartis (Offline)

Sacred hymns for recitation during temple darshan and parikrama.

@foreach($sacredPrayers as $prayer)

{{ $prayer['title'] }}

{{ $prayer['deity'] }}
{{ $prayer['text'] }}
@endforeach
{{-- Card 4: PWA Install App Guide Banner --}}

📲 Install The Braj App

Install in 1-click on your phone or desktop — open anytime directly from your home screen even without internet.

@endsection