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

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

// This file returns an array of metabox definitions.
return [
	'sifency_client_metabox' => [
		'title'     => esc_html__( 'Client Information', 'sifency-addons' ),
		'post_type' => 'client',
		'context'   => 'normal',
		'priority'  => 'high',
		'class'     => 'sifency-metabox',
		'fields'    => [
			[
				'id'    => 'client_img',
				'type'  => 'media', // Your framework's media field is perfect for this.
				'title' => esc_html__( 'Client Logo', 'sifency-addons' ),
				'desc'  => esc_html__( 'Upload the client company logo.', 'sifency-addons' ),
			],
			[
				'id'    => 'client_link',
				'type'  => 'url', // Using the 'url' type for better validation.
				'title' => esc_html__( 'Website URL', 'sifency-addons' ),
				'desc'  => esc_html__( 'Add a link to the client\'s website.', 'sifency-addons' ),
			],
		],
	],
];