<?php

// Static list of services
$services = [
    [
        'slug' => 'house-shifting-services',
        'name' => 'House Shifting',
        'description' => 'Professional home relocation services in Rajahmundry. We ensure careful handling and safe transport of your belongings.',
        'img_url' => 'https://apannel.srkramc.in/files/560465981773',
    ],
    [
        'slug' => 'office-relocation',
        'name' => 'Office Relocation',
        'description' => 'Complete office moving solutions in Rajahmundry. We ensure minimal business disruption and safe relocation of your office assets.',
        'img_url' => 'https://apannel.srkramc.in/files/160985711435',
    ],
    [
        'slug' => 'car-transport-services',
        'name' => 'Car Transportation',
        'description' => 'Safe and reliable car transportation services in Rajahmundry. We ensure your vehicle is securely transported to your new location.',
        'img_url' => 'https://apannel.srkramc.in/files/035008115936',
    ],
    [
        'slug' => 'packing-services',
        'name' => 'Professional Packing',
        'description' => "Expert packing services in Rajahmundry using high-quality materials. We ensure safe and secure transportation of all your belongings.",
        'img_url' => 'https://apannel.srkramc.in/files/689125129491',
    ],
    [
        'slug' => 'local-long-distance-moving',
        'name' => 'Local & Long-Distance Moving',
        'description'=> 'Whether you’re shifting within Rajahmundry or across states, we offer dependable transportation solutions, and end-to-end support.',
        'img_url' => 'https://apannel.srkramc.in/files/560465981773',
    ],
    [
        'slug' => 'residential-relocation',
        'name' => 'Residential Relocation',
        'description' => 'We help you move your household items with utmost care. From fragile glassware to heavy furniture, our trained staff ensures everything is packed and transported securely.',
        'img_url' => 'https://apannel.srkramc.in/files/035008115936', 
    ]
];

// Return services as JSON
// echo json_encode([
//     'status' => 'success',
//     'data' => $services
// ]);

function getServices() {
    global $services;
    return $services;
}

function getSpecificService($slug) {
    global $services;
    foreach ($services as $service) {
        if ($service['slug'] === $slug) {
            return $service;
        }
    }
    return null; // Return null if no service found
}