<?php defined( 'ABSPATH' ) or die;

use Tech360\Cpt;

$vehicle_labels = [
	'singular_name' => 'Vehicle',
	'name' => 'Vehicles'
];

$vehicle_args = [
	'menu_icon' => 'dashicons-admin-network',
	'menu_position' => 27,
	// 'rewrite' => [
	// 	'slug' => 'fleet',
	// 	'with_front' => true
	// ]
];

$vehicle_columns = [
	'gallery' => [
		'field' => 'vehicle_gallery',
		'label' => 'Gallery'
	],
	'passenger_capacity' => [
		'field' => 'vehicle_passenger_capacity',
		'label' => 'Max. Passengers',
		'sortable' => true
	],
	'luggage_capacity' => [
		'field' => 'vehicle_luggage_capacity',
		'label' => 'Max. Luggage',
		'sortable' => true
	],
	'vehicle_category' => [
		'field' => 'vehicle_category',
		'label' => 'Category',
		'sortable' => true
	],
	'menu_order' => [
		'label' => 'Priority',
		'sortable' => true
	]
];

$vehicle = new Cpt(
	'vehicle',
	$vehicle_labels,
	$vehicle_args,
	'tech360',
	false
);

$vehicle->columns( $vehicle_columns );
