<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * Partners — clients & partners page with testimonials.
 */
#[\AllowDynamicProperties]
class Partners extends Public_Controller {

	public function __construct()
	{
		parent::__construct();
		$this->load->model(array('testimonial_model'));
	}

	public function index()
	{
		$this->meta(array(
			'title'       => 'Clients & Partners — Bloom Iris Agency',
			'description' => 'The brands and partners who trust Bloom Iris Agency.',
		));
		$this->render('partners/index', array(
			'partners'     => $this->partner_model->active(),
			'grouped'      => $this->partner_model->by_category(),
			'testimonials' => $this->testimonial_model->active(),
		));
	}
}
