blue-twilight/resources/views/themes/base/auth/v2_unified.blade.php

30 lines
1.4 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 offset-md-2">
<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>
<li class="nav-item">
<a class="nav-link{{ $active_tab == 'register' ? ' active' : '' }}" href="{{ url('/register') }}">@lang('auth.register_page_title')</a>
</li>
</ul>
</div>
<div class="card-block">
@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