@extends('astrologer.layouts.app') @section('title', 'Pooja Services') @section('content')

Pooja Services

Select platform services or add your own ritual services.

@if(session('success'))
{{ session('success') }}
@endif
@foreach($adminServices as $service) @php $isProvided = in_array($service->id, $myAdminServiceIds); @endphp
@if($isProvided)
Already Added
@endif
@if($service->image) @else
@endif

{{ $service->name }}

{{ strip_tags($service->description) ?: 'No description provided.' }}

@if($isProvided) @else @endif
@endforeach
@php $mergedServices = collect(); foreach($myAdminServiceIds as $sid) { $mergedServices->push($myAdminServices[$sid]->setAttribute('type', 'platform')); } foreach($myCustomServices as $cs) { $mergedServices->push($cs->setAttribute('type', 'custom')); } @endphp @forelse($mergedServices as $service)
@if($service->type === 'platform') @elseif($service->custom_image) @else
@endif
₹{{ number_format($service->price, 0) }}
@if($service->type === 'custom')
Personal
@endif

{{ $service->type === 'platform' ? $service->poojaService->name : $service->custom_name }}

{{ $service->description ?: 'No customized description.' }}

@csrf @method('DELETE')
@empty

You haven't setup any services yet.

Visit 'Platform Services' tab to find ritual services created by Astrotalk.

@endforelse

@csrf

@csrf

Format: WEBP, JPG. Best size: 800x600.

@push('scripts') @endpush @endsection