templating done as stated by the laravel docs