@extends('manager.layouts.app') @section('page_title') {{ $page_title ?? 'View Program' }} @endsection @section('content')
{{-- Header Section --}}

{{ $p_title ?? 'Program Details' }}

{{ $p_summary ?? '' }}

{{-- Section 1: Basic Information --}}
@php $details = [ 'Program Name' => $data->name, 'Slug (URL)' => $data->slug, 'Group' => $data->group, 'Year' => $data->year == '1' ? '1st Year' : '2nd Year', 'Session' => $data->session, 'Status' => $data->status ? 'Active' : 'Inactive' ]; @endphp @foreach($details as $label => $value)
@if($label == 'Status') {{ $value }} @else {{ $value }} @endif
@endforeach

{{-- Section 2: Fee Structure & Meta --}}
Fee Structure Details
@foreach($feeFields as $field => $label) @endforeach
Fee Description Amount (Rs)
{{ $label }} @if(is_numeric($fees->$field)) {{ number_format($fees->$field, 2) }} @else {{ $fees->$field ?? 'N/A' }} @endif
{{ is_numeric($fees->board_registration_fee) ? 'Grand Total' : 'Sub-Total (Excl. Board Reg)' }} {{ number_format($total_fee, 2) }}
{{-- Sidebar: SEO Metadata --}}
SEO Metadata

{{ $data->seo_title ?? 'N/A' }}

{{ $data->seo_description ?? 'No description set.' }}

{{ $data->seo_keyword ?? 'N/A' }}

{{-- Footer Description --}} @if(!empty($p_description))
Note: {{ $p_description }}
@endif
@endsection @push('footer-scripts') @if(Session::has('messages')) @endif @endpush