2017-09-10 21:12:57 +01:00
|
|
|
@extends(Theme::viewName('layout'))
|
2017-03-23 04:29:29 +00:00
|
|
|
|
|
|
|
@section('title', trans($active_tab == 'login' ? 'auth.login_page_title' : 'auth.register_page_title'))
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2017-08-30 22:09:30 +01:00
|
|
|
<div class="col-md-8 ml-md-auto mr-md-auto">
|
2017-03-23 04:29:29 +00:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<ul class="nav nav-tabs card-header-tabs">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link{{ $active_tab == 'login' ? ' active' : '' }}" href="{{ url('/login') }}">@lang('auth.login_page_title')</a>
|
|
|
|
</li>
|
2017-03-24 14:43:53 +00:00
|
|
|
@if (UserConfig::get('allow_self_registration'))
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link{{ $active_tab == 'register' ? ' active' : '' }}" href="{{ url('/register') }}">@lang('auth.register_page_title')</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
2017-03-23 04:29:29 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2017-08-31 17:20:58 +01:00
|
|
|
<div class="card-body">
|
2017-03-23 04:29:29 +00:00
|
|
|
@if ($active_tab == 'login')
|
|
|
|
@include(Theme::viewName('partials.login'))
|
|
|
|
@elseif ($active_tab == 'register')
|
|
|
|
@include(Theme::viewName('partials.register'))
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|