athenahr/resources/views/vendor/adminlte/auth/auth-page.blade.php

91 lines
2.9 KiB
PHP
Raw Normal View History

@extends('adminlte::master')
2025-03-10 11:23:28 +00:00
@php
$authType = $authType ?? 'login';
$dashboardUrl = View::getSection('dashboard_url') ?? config('adminlte.dashboard_url', 'home');
2025-03-10 11:23:28 +00:00
if (config('adminlte.use_route_url', false)) {
$dashboardUrl = $dashboardUrl ? route($dashboardUrl) : '';
} else {
$dashboardUrl = $dashboardUrl ? url($dashboardUrl) : '';
}
$bodyClasses = "{$authType}-page";
if (! empty(config('adminlte.layout_dark_mode', null))) {
$bodyClasses .= ' dark-mode';
}
@endphp
@section('adminlte_css')
@stack('css')
@yield('css')
@stop
2025-03-10 11:23:28 +00:00
@section('classes_body'){{ $bodyClasses }}@stop
@section('body')
2025-03-10 11:23:28 +00:00
<div class="{{ $authType }}-box">
{{-- Logo --}}
2025-03-10 11:23:28 +00:00
<div class="{{ $authType }}-logo">
<a href="{{ $dashboardUrl }}">
{{-- Logo Image --}}
@if (config('adminlte.auth_logo.enabled', false))
<img src="{{ asset(config('adminlte.auth_logo.img.path')) }}"
alt="{{ config('adminlte.auth_logo.img.alt') }}"
@if (config('adminlte.auth_logo.img.class', null))
class="{{ config('adminlte.auth_logo.img.class') }}"
@endif
@if (config('adminlte.auth_logo.img.width', null))
width="{{ config('adminlte.auth_logo.img.width') }}"
@endif
@if (config('adminlte.auth_logo.img.height', null))
height="{{ config('adminlte.auth_logo.img.height') }}"
@endif>
@else
<img src="{{ asset(config('adminlte.logo_img')) }}"
alt="{{ config('adminlte.logo_img_alt') }}" height="50">
@endif
{{-- Logo Label --}}
{!! config('adminlte.logo', '<b>Admin</b>LTE') !!}
</a>
</div>
{{-- Card Box --}}
<div class="card {{ config('adminlte.classes_auth_card', 'card-outline card-primary') }}">
{{-- Card Header --}}
@hasSection('auth_header')
<div class="card-header {{ config('adminlte.classes_auth_header', '') }}">
<h3 class="card-title float-none text-center">
@yield('auth_header')
</h3>
</div>
@endif
{{-- Card Body --}}
2025-03-10 11:23:28 +00:00
<div class="card-body {{ $authType }}-card-body {{ config('adminlte.classes_auth_body', '') }}">
@yield('auth_body')
</div>
{{-- Card Footer --}}
@hasSection('auth_footer')
<div class="card-footer {{ config('adminlte.classes_auth_footer', '') }}">
@yield('auth_footer')
</div>
@endif
</div>
</div>
@stop
@section('adminlte_js')
@stack('js')
@yield('js')
@stop