<?php
/**
 * Metabox definition for the 'service' post type.
 *
 * @package Sifency
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// This file returns an array of metabox definitions.
return array(
	'services_options' => array(
		'title'     => esc_html__( 'Service Settings', 'sifency-addons' ),
		'post_type' => 'service',
		'context'   => 'normal',
		'priority'  => 'high',
		'class'     => 'sifency-metabox',
		'fields'    => array(
			array(
				'id'    => 'service_icon',
				'type'  => 'text',
				'title' => esc_html__( 'Service Icon Class', 'sifency-addons' ),
				'desc'  => esc_html__( 'Enter the CSS class for the icon (e.g., Font Awesome).', 'sifency-addons' ),
			),
			array(
				'id'    => 'service_icon_image',
				'type'  => 'media',
				'title' => esc_html__( 'Service Icon Image', 'sifency-addons' ),
				'desc'  => esc_html__( 'Upload an icon to represent this service.', 'sifency-addons' ),
			),
			array(
				'id'     => 'service_features',
				'type'   => 'repeater',
				'title'  => esc_html__( 'Service Features', 'sifency-addons' ),
				'desc'   => esc_html__( 'Add key features or points for this service.', 'sifency-addons' ),
				'fields' => array(
					array(
						'id'    => 'feature_text',
						'type'  => 'text',
						'title' => esc_html__( 'Feature Description', 'sifency-addons' ),
					),
				),
			),
			array(
				'id'    => 'service_file_upload',
				'type'  => 'upload',
				'title' => esc_html__( 'Downloadable Brochure (PDF)', 'sifency-addons' ),
				'desc'  => esc_html__( 'Upload service documentation for users to download.', 'sifency-addons' ),
			),
			array(
				'id'    => 'additional_content',
				'type'  => 'wp_editor',
				'title' => esc_html__( 'Additional Content', 'sifency-addons' ),
				'desc'  => esc_html__( 'Add any additional information about the service.', 'sifency-addons' ),
			),
		),
	),
);
