i'm new to the Laravel framework and MVC structure, my question is: 1. should there be any logic in the view section? for example on my homepage
@if(empty($data))
<h1>Hello</h1>
{{HTML::link('/login/fb','Login using Facebook')}}
@else
<h1>Hello {{$data->nameDisplay}}</h1>
Image: {{$data->profileUrlImage}}
Email: {{$data->email}}
{{HTML::link('/logout','Logout')}}
@endif
or should that all be done in the controller and just send them that view.
thank you :)