@extends('components.app-layout') @section('title', 'Edit Program - ' . $program->name) @section('content')

Edit Program

{{ $program->name }}

@php $statusColors = [ 'draft' => 'bg-gray-500/80', 'published' => 'bg-green-500/80', 'ongoing' => 'bg-blue-500/80', 'completed' => 'bg-purple-500/80', 'cancelled' => 'bg-red-500/80' ]; $statusColor = $statusColors[$program->status] ?? 'bg-gray-500/80'; @endphp {{ ucfirst($program->status) }} {{ $program->registrations->count() }} registrations
1
Basic Info
2
Schedule
3
Settings
4
Review
@csrf @method('PUT')

Basic Information

Update the fundamental details of your program

@error('name')

{{ $message }}

@enderror
@php $programTypes = [ 'ergates_conference' => ['name' => 'ERGATES Conference', 'icon' => 'fas fa-handshake', 'color' => 'from-orange-500 to-red-500', 'desc' => 'Business networking and entrepreneurship'], 'annual_retreat' => ['name' => 'Annual Retreat', 'icon' => 'fas fa-mountain', 'color' => 'from-green-500 to-blue-500', 'desc' => 'Spiritual retreat and fellowship'], 'conference' => ['name' => 'Conference', 'icon' => 'fas fa-users', 'color' => 'from-blue-500 to-purple-500', 'desc' => 'Large gathering with multiple sessions'], 'workshop' => ['name' => 'Workshop', 'icon' => 'fas fa-tools', 'color' => 'from-yellow-500 to-orange-500', 'desc' => 'Hands-on learning experience'], 'seminar' => ['name' => 'Seminar', 'icon' => 'fas fa-chalkboard-teacher', 'color' => 'from-purple-500 to-pink-500', 'desc' => 'Educational presentation'], 'other' => ['name' => 'Other', 'icon' => 'fas fa-ellipsis-h', 'color' => 'from-gray-500 to-slate-500', 'desc' => 'Custom program type'] ]; @endphp @foreach($programTypes as $key => $type) @endforeach
@error('type')

{{ $message }}

@enderror
@error('status')

{{ $message }}

@enderror
@if($program->hasFlyer())
Current flyer

Current flyer uploaded

Upload a new file below to replace it

@endif

PNG, JPG, PDF up to 10MB

{{ strlen($program->description ?? '') }}/1000
@error('description')

{{ $message }}

@enderror
@endsection