Commit b3e91d88 by fezrul

back

parent 5961a3ce
<?php
namespace Portal\Mileage\Model;
use Illuminate\Database\Eloquent\Model;
class AclRole extends Model
{
protected $table = 'acl_roles'; // ⚠️ must be your roles definition table
protected $primaryKey = 'id';
public $timestamps = false;
public function users()
{
return $this->belongsToMany(
\App\Models\User::class,
'acl_role_user',
'role_id',
'user_id'
);
}
}
<x-volt-auth>
<h3 class="ui header horizontal divider section">@lang('laravolt::auth.login')</h3>
<center>
<div class="card" style="width: 25%;">
<div class="card-body">
<div class="x-inspire__content">
<div class="x-inspire__text"></div>
</div>
{!! form()->open(route('auth::login.store'))->attribute('up-target', 'body') !!}
{!! form()->email('email')->label(__('laravolt::auth.identifier')) !!}
{!! form()->password('password')->label(__('laravolt::auth.password')) !!}
<!-- Flex container for brand image and title -->
<div class="ui grid aligned-content" style="display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap">
<div style="width: 40%">
<x-volt-brand-image style="padding:10%"/>
</div>
<h3 class="ui header section" style="margin: 0; width:60%">LOG MASUK</h3>
</div>
@if(config('laravolt.platform.features.captcha'))
<div class="field">
{!! app('captcha')->display() !!}
{!! app('captcha')->renderJs() !!}
{!! form()->open(route('auth::login.store'))->attribute('up-target', 'body') !!}
{!! form()->email('email')->label(__('Emel'))->placeholder(_('Emel')) !!}
{!! form()->password('password')->label(__('Kata Laluan'))->placeholder(_('Kata Laluan')) !!}
</div>
@endif
@if (config('laravolt.platform.features.captcha'))
<div class="field">
{!! app('captcha')->display() !!}
{!! app('captcha')->renderJs() !!}
</div>
@endif
<div class="ui field m-b-2">
<div class="ui equal width grid">
<div class="column left aligned">
<div class="ui checkbox">
<input type="checkbox" name="remember" {{ request()->old('remember')?'checked':'' }}>
<label>@lang('laravolt::auth.remember')</label>
<div class="ui field m-b-2">
<div class="ui equal width grid">
<div class="column left aligned">
<div class="ui checkbox">
<input type="checkbox" name="remember" {{ request()->old('remember') ? 'checked' : '' }}>
<label>Kekal Log Masuk</label>
</div>
</div>
<div class="column right aligned">
<a themed href="{{ route('auth::forgot.show') }}" class="link">Lupa Kata Laluan?</a>
</div>
</div>
</div>
</div>
<div class="column right aligned">
<a themed href="{{ route('auth::forgot.show') }}"
class="link">@lang('laravolt::auth.forgot_password')</a>
</div>
</div>
</div>
<div class="field action">
<x-volt-button class="fluid">@lang('laravolt::auth.login')</x-volt-button>
</div>
<div class="field action">
<x-volt-button class="fluid">Log Masuk</x-volt-button>
</div>
@if(config('laravolt.platform.features.registration'))
<div class="ui divider section"></div>
<div>
@lang('laravolt::auth.not_registered_yet?')
<a themed href="{{ route('auth::registration.show') }}"
class="link">@lang('laravolt::auth.register_here')</a>
</div>
@endif
{!! form()->close() !!}
@if (config('laravolt.platform.features.registration'))
<div class="ui divider section"></div>
<div>
<x-volt-button type="button" class="fluid">
<a themed href="{{ route('auth::registration.show') }}" class="link" style="color: white; text-decoration: none">Daftar</a>
</x-volt-button>
</div>
@endif
{!! form()->close() !!}
</div>
</div>
</center>
</x-volt-auth>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment