blue-twilight/resources/views/themes/base/auth/v2_unified.blade.php
2017-08-31 17:20:58 +01:00

32 lines
1.5 KiB
PHP

@extends('themes.base.layout')
@section('title', trans($active_tab == 'login' ? 'auth.login_page_title' : 'auth.register_page_title'))
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 ml-md-auto mr-md-auto">
<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>
@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
</ul>
</div>
<div class="card-body">
@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