<?php namespace App\Libs\Composers;

use Menu;
use Office;

class ModalsComposer
{

    public function compose($view)
    {
        $newsletterForm = \PardotForm::full()
            ->where('lang_slug', 'newsletter-form')
            ->where('status', 'published')
            ->first();

        $downloadForm = \PardotForm::full()
            ->where('lang_slug', 'download-form')
            ->where('status', 'published')
            ->first();

        $contactForm = \PardotForm::full()
            ->where('lang_slug', 'contact-form')
            ->where('status', 'published')
            ->first();

        $view->with(array(
            'newsletterForm' =>  $newsletterForm,
            'downloadForm' => $downloadForm,
            'contactForm' => $contactForm
        ));
    }
}
