🚀 Hostinger Optimized
🖥️ Server: LiteSpeed
💻 System: Linux s20058.bom1.stableserver.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
👤 User: skhata (1324)
🐘 PHP: 8.4.20
🚫 Disabled: ✨ NONE

💻 Terminal

📁 /home/skhata/chandrasons.com/public
$

📄 HomepageSettingsSeeder.php

📁 Path: /home/skhata/new.chandrapharma.com/database/seeders/HomepageSettingsSeeder.php
📊 Size: 9.19 KB
🔒 Perm: 0600
📝 MIME: text/x-php
<?php

namespace Database\Seeders;

use App\Modules\CMS\Models\Setting;
use Illuminate\Database\Seeder;

class HomepageSettingsSeeder extends Seeder
{
    public function run(): void
    {
        $defaults = [
            // ── Hero Section ───────────────────────────────────────
            ['group' => 'homepage', 'key' => 'hero_badge_text',      'value' => "🇳🇵 Nepal's Trusted Online Pharmacy", 'type' => 'string'],
            ['group' => 'homepage', 'key' => 'hero_title_line1',     'value' => 'Medicines & Healthcare,',            'type' => 'string'],
            ['group' => 'homepage', 'key' => 'hero_title_line2',     'value' => 'Delivered to Your Door',             'type' => 'string'],
            ['group' => 'homepage', 'key' => 'hero_subtitle',        'value' => 'Order genuine medicines, upload prescriptions, and get expert pharmacist advice — all in one place.', 'type' => 'string'],
            ['group' => 'homepage', 'key' => 'hero_cta_shop_label',  'value' => 'Shop Medicines',                     'type' => 'string'],
            ['group' => 'homepage', 'key' => 'hero_cta_rx_label',    'value' => 'Upload Prescription',                'type' => 'string'],
            ['group' => 'homepage', 'key' => 'hero_trust_badges',    'value' => json_encode([
                '100% Genuine', 'Licensed Pharmacies', 'Free Rx Consultation',
            ]), 'type' => 'json'],

            // ── Prescription Upload CTA ─────────────────────────────
            ['group' => 'homepage', 'key' => 'rx_cta_enabled',       'value' => '1',                                  'type' => 'boolean'],
            ['group' => 'homepage', 'key' => 'rx_cta_title',         'value' => "Have a Doctor's Prescription?",      'type' => 'string'],
            ['group' => 'homepage', 'key' => 'rx_cta_subtitle',      'value' => 'Upload your prescription and our licensed pharmacist will verify it and prepare your order within 2 hours.', 'type' => 'string'],

            // ── How It Works ─────────────────────────────────────────
            ['group' => 'homepage', 'key' => 'how_it_works_enabled', 'value' => '1',                                  'type' => 'boolean'],
            ['group' => 'homepage', 'key' => 'how_it_works_title',   'value' => 'How Prescription Orders Work',       'type' => 'string'],
            ['group' => 'homepage', 'key' => 'how_it_works_subtitle', 'value' => 'Simple, safe, and fast — your health is our priority', 'type' => 'string'],
            ['group' => 'homepage', 'key' => 'how_it_works_steps',   'value' => json_encode([
                ['icon' => '📋', 'title' => 'Upload Prescription', 'desc' => 'Take a photo or scan your doctor\'s prescription and upload it securely.'],
                ['icon' => '🔍', 'title' => 'Pharmacist Review',   'desc' => 'Our licensed pharmacist verifies the prescription within 2 hours.'],
                ['icon' => '🛒', 'title' => 'Order Prepared',      'desc' => 'We pick the exact medicines prescribed at the best available price.'],
                ['icon' => '🚚', 'title' => 'Fast Delivery',       'desc' => 'Medicines packed safely and delivered to your door. Track in real-time.'],
            ]), 'type' => 'json'],

            // ── Why Choose Us ──────────────────────────────────────
            ['group' => 'homepage', 'key' => 'why_us_enabled',      'value' => '1',                    'type' => 'boolean'],
            ['group' => 'homepage', 'key' => 'why_us_title',        'value' => 'Why Choose Us',        'type' => 'string'],
            ['group' => 'homepage', 'key' => 'why_us_subtitle',     'value' => 'Your health, our priority — trusted by thousands across Nepal', 'type' => 'string'],
            ['group' => 'homepage', 'key' => 'why_us_items',        'value' => json_encode([
                ['icon' => '✅', 'title' => '100% Genuine Medicines',     'desc' => 'All products sourced from licensed manufacturers & verified distributors.'],
                ['icon' => '⚡', 'title' => 'Fast Same-Day Delivery',     'desc' => 'Order before 12 PM and get medicines delivered the same day.'],
                ['icon' => '👨‍⚕️', 'title' => 'Licensed Pharmacists',     'desc' => 'Our team of registered pharmacists review every prescription carefully.'],
                ['icon' => '💰', 'title' => 'Best Price Guaranteed',      'desc' => 'We match or beat any price on genuine medicines. No hidden charges.'],
                ['icon' => '🔒', 'title' => 'Safe & Secure Payments',     'desc' => 'eSewa, Khalti, COD and all major payment methods accepted.'],
                ['icon' => '📞', 'title' => '24/7 Customer Support',      'desc' => 'Reach our pharmacist helpline any time — day or night.'],
            ]), 'type' => 'json'],

            // ── New Arrivals ───────────────────────────────────────
            ['group' => 'homepage', 'key' => 'new_arrivals_enabled', 'value' => '1',              'type' => 'boolean'],
            ['group' => 'homepage', 'key' => 'new_arrivals_title',   'value' => 'New Arrivals',   'type' => 'string'],
            ['group' => 'homepage', 'key' => 'new_arrivals_count',   'value' => '8',              'type' => 'integer'],

            // ── Testimonials ───────────────────────────────────────
            ['group' => 'homepage', 'key' => 'testimonials_enabled', 'value' => '1',                          'type' => 'boolean'],
            ['group' => 'homepage', 'key' => 'testimonials_title',   'value' => 'What Our Customers Say',     'type' => 'string'],
            ['group' => 'homepage', 'key' => 'testimonials_items',   'value' => json_encode([
                ['name' => 'Priya Sharma',    'location' => 'Kathmandu', 'rating' => 5, 'text' => 'Got my blood pressure medicines delivered within 3 hours. Genuinely the fastest pharmacy service in Nepal!', 'avatar' => ''],
                ['name' => 'Rajesh Thapa',    'location' => 'Pokhara',   'rating' => 5, 'text' => 'Uploaded my prescription and it was approved within an hour. The pharmacist even called to clarify the dosage. Amazing service!', 'avatar' => ''],
                ['name' => 'Anita Gurung',    'location' => 'Lalitpur',  'rating' => 5, 'text' => 'Prices are much better than local pharmacies. Everything is genuine and packed very carefully. Highly recommended.', 'avatar' => ''],
                ['name' => 'Suresh Pradhan',  'location' => 'Bhaktapur', 'rating' => 4, 'text' => 'Very convenient to order medicines online. The Rx upload feature is a lifesaver for my parents who need regular medicines.', 'avatar' => ''],
            ]), 'type' => 'json'],

            // ── Blog Preview ───────────────────────────────────────
            ['group' => 'homepage', 'key' => 'blog_preview_enabled', 'value' => '1',                   'type' => 'boolean'],
            ['group' => 'homepage', 'key' => 'blog_preview_title',   'value' => 'Health Tips & News',  'type' => 'string'],
            ['group' => 'homepage', 'key' => 'blog_preview_count',   'value' => '3',                   'type' => 'integer'],

            // ── Helpline / App CTA Banner ──────────────────────────
            ['group' => 'homepage', 'key' => 'helpline_enabled',     'value' => '1',                       'type' => 'boolean'],
            ['group' => 'homepage', 'key' => 'helpline_phone',       'value' => '1800-XXX-XXXX',           'type' => 'string'],
            ['group' => 'homepage', 'key' => 'helpline_title',       'value' => 'Need Help? Talk to a Pharmacist', 'type' => 'string'],
            ['group' => 'homepage', 'key' => 'helpline_subtitle',    'value' => 'Our licensed pharmacists are available 24/7 to answer your medicine-related questions.', 'type' => 'string'],
            ['group' => 'homepage', 'key' => 'helpline_email',       'value' => 'pharmacy@stpecommerce.com', 'type' => 'string'],

            // ── Promotional Banner ─────────────────────────────────
            ['group' => 'homepage', 'key' => 'promo_banner_enabled', 'value' => '1',                          'type' => 'boolean'],
            ['group' => 'homepage', 'key' => 'promo_banner_text',    'value' => '🎉 Get 10% off your first order — Use code FIRST10 at checkout!', 'type' => 'string'],
            ['group' => 'homepage', 'key' => 'promo_banner_color',   'value' => 'teal',                       'type' => 'string'],
            ['group' => 'homepage', 'key' => 'promo_banner_url',     'value' => '/products',                  'type' => 'string'],
        ];

        foreach ($defaults as $row) {
            Setting::updateOrCreate(
                ['group' => $row['group'], 'key' => $row['key']],
                ['value' => $row['value'], 'type' => $row['type']]
            );
        }
    }
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨