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> <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') !!} <!-- Flex container for brand image and title -->
{!! form()->email('email')->label(__('laravolt::auth.identifier')) !!} <div class="ui grid aligned-content" style="display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap">
{!! form()->password('password')->label(__('laravolt::auth.password')) !!} <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')) {!! form()->open(route('auth::login.store'))->attribute('up-target', 'body') !!}
<div class="field"> {!! form()->email('email')->label(__('Emel'))->placeholder(_('Emel')) !!}
{!! app('captcha')->display() !!} {!! form()->password('password')->label(__('Kata Laluan'))->placeholder(_('Kata Laluan')) !!}
{!! app('captcha')->renderJs() !!}
</div> @if (config('laravolt.platform.features.captcha'))
@endif <div class="field">
{!! app('captcha')->display() !!}
{!! app('captcha')->renderJs() !!}
</div>
@endif
<div class="ui field m-b-2"> <div class="ui field m-b-2">
<div class="ui equal width grid"> <div class="ui equal width grid">
<div class="column left aligned"> <div class="column left aligned">
<div class="ui checkbox"> <div class="ui checkbox">
<input type="checkbox" name="remember" {{ request()->old('remember')?'checked':'' }}> <input type="checkbox" name="remember" {{ request()->old('remember') ? 'checked' : '' }}>
<label>@lang('laravolt::auth.remember')</label> <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>
<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"> <div class="field action">
<x-volt-button class="fluid">@lang('laravolt::auth.login')</x-volt-button> <x-volt-button class="fluid">Log Masuk</x-volt-button>
</div> </div>
@if(config('laravolt.platform.features.registration')) @if (config('laravolt.platform.features.registration'))
<div class="ui divider section"></div> <div class="ui divider section"></div>
<div> <div>
@lang('laravolt::auth.not_registered_yet?') <x-volt-button type="button" class="fluid">
<a themed href="{{ route('auth::registration.show') }}" <a themed href="{{ route('auth::registration.show') }}" class="link" style="color: white; text-decoration: none">Daftar</a>
class="link">@lang('laravolt::auth.register_here')</a> </x-volt-button>
</div> </div>
@endif @endif
{!! form()->close() !!}
{!! form()->close() !!}
</div>
</div>
</center>
</x-volt-auth> </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