extends template default section content if Auth check h3 Вы авторизов

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@extends('template.default')
@section('content')
@if (Auth::check())
<h3>Вы авторизованы!</h3>
@else
@if ($errors)
<div class="errors">
@foreach ($errors as $error)
{{ $error }} <br/>
@endforeach
</div>
@endif
<div class="content">
<div class="form">
{{ Form::open(['method' => 'post']) }}
{{ Form::label('email', 'Ваш email') }} <br/>
{{ Form::email('email') }} <br/>
{{ Form::label('password', 'Ваш пароль') }} <br/>
{{ Form::password('password') }} <br/>
{{ Form::submit('ВОЙТИ') }}
{{ Form::close() }}
</div>
</div>
@endif
<div class="nav-bot">
{{ link_to('/', 'На главную') }}
</div>
@stop