@extends('components.app-layout') @section('title', 'Church Settings') @section('subtitle', 'Configure church information, branding, and system preferences') @section('content')

Church Management Settings

Configure your church's information, branding, contact details, and system preferences all in one place.

@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@endif
@csrf @method('PUT')

Organization Information

@error('organization_name')

{{ $message }}

@enderror
@error('organization_slogan')

{{ $message }}

@enderror
@error('organization_description')

{{ $message }}

@enderror

Organization Logo & Images

Organization Logo

Recommended size: 200x200px. Max 2MB. Formats: JPG, PNG, GIF.

@error('organization_logo')

{{ $message }}

@enderror
@php $logoSetting = $settings->where('key', 'organization_logo')->first(); @endphp @if($logoSetting && $logoSetting->value)

Current Logo

Organization Logo
@else

No Logo Uploaded

@endif

Login Background Image

Recommended size: 1920x1080px. Max 5MB. Formats: JPG, PNG.

@error('login_background_image')

{{ $message }}

@enderror
@php $backgroundSetting = $settings->where('key', 'login_background_image')->first(); @endphp @if($backgroundSetting && $backgroundSetting->value)

Current Background

Login Background
@else

No Background Uploaded

@endif

Contact Information

@error('organization_phone')

{{ $message }}

@enderror
@error('organization_email')

{{ $message }}

@enderror
@error('organization_website')

{{ $message }}

@enderror

Location Information

@error('organization_address')

{{ $message }}

@enderror
@error('organization_city')

{{ $message }}

@enderror
@error('organization_state')

{{ $message }}

@enderror
@error('organization_postal_code')

{{ $message }}

@enderror
@error('organization_country')

{{ $message }}

@enderror

Branding Colors

@error('primary_color')

{{ $message }}

@enderror
@error('secondary_color')

{{ $message }}

@enderror

These colors will be used throughout the system for branding consistency.

Church Administration

Unique identifier for your church

@error('church_code')

{{ $message }}

@enderror

Title for official documents

@error('pastor_signature')

{{ $message }}

@enderror

Bulletin & Document Settings

Prefix for bulletin and document numbers

@error('bulletin_prefix')

{{ $message }}

@enderror

Watermark text for documents

@error('bulletin_watermark')

{{ $message }}

@enderror
@error('bulletin_footer')

{{ $message }}

@enderror

Member Management

Prefix for member IDs (e.g., PCG250001, PRESBY250001)

@error('member_id_prefix')

{{ $message }}

@enderror
Format: PREFIX + YY + 0001
Example: {{ $settings->where('key', 'member_id_prefix')->first()->value ?? 'PCG' }}{{ substr(date('Y'), -2) }}0001

Auto-generated format using prefix + year + sequence

Email Configuration

Email address used for system notifications

@error('email_from_address')

{{ $message }}

@enderror

Display name for system emails

@error('email_from_name')

{{ $message }}

@enderror

Automated Birthday Messages (Cron Job)

Enable Automatic Birthday Messages

Configure automatic birthday messages to be sent to members every day. This feature requires setting up a cron job in your cPanel to run the command at your specified time.

Turn on/off automatic birthday message sending

Time to send birthday messages daily (e.g., 08:00 for 8 AM)

Choose how to send birthday messages to members

cPanel Cron Job Setup Instructions

To enable automatic birthday messages, add this cron job in your cPanel:

0 8 * * * /usr/local/bin/php /path/to/artisan birthday:send-emails

Note: Update the time (0 8) and path according to your server configuration

Available Commands:
  • birthday:send - SMS messages
  • birthday:send-emails - Email & SMS
  • sms:send-birthday - SMS with templates
Time Format Examples:
  • 0 8 * * * - Daily at 8:00 AM
  • 0 12 * * * - Daily at 12:00 PM
  • 30 9 * * * - Daily at 9:30 AM
Important Steps:
  1. Log in to your cPanel account
  2. Find and click on "Cron Jobs" icon
  3. Scroll to "Add New Cron Job" section
  4. Set the time using the dropdowns or enter custom expression
  5. Enter the command path (replace /path/to/artisan with your actual path)
  6. Click "Add New Cron Job" button
  7. Verify the cron job appears in your cron jobs list

Your Server Path: Typically located at /home/username/public_html/artisan or /home/username/htdocs/presby_app/artisan

PHP Path: Usually /usr/local/bin/php or /usr/bin/php

@endsection