<?php namespace Eae\Composers\Homepage;

use Lang;
use Cookie;

class HomepageComposer {
    public function compose($view) {
        $currentMonth = date('m');
        $locations = getLocations();
        $areas = getAreas();
        $thisMonthEvent = getEventMonth($currentMonth);
        $people = getPeople();
        $firstTime = Cookie::get('ffms-first') == 'play' ? true : false;
        $view->with(array(
            'locations' => $locations,
            'areas' => $areas,
            'thisMonthEvent' => $thisMonthEvent,
            'people' => $people,
            'firstTime' => $firstTime
        ));
    }
}