Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mileage-claim
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
trainee
mileage-claim
Commits
b3e91d88
Commit
b3e91d88
authored
Oct 29, 2025
by
fezrul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
back
parent
5961a3ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
35 deletions
+72
-35
packages/portal/mileage/src/Model/AclRole.php.back
+23
-0
resources/views/auth/login.blade.php
+49
-35
No files found.
packages/portal/mileage/src/Model/AclRole.php.back
0 → 100644
View file @
b3e91d88
<?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'
);
}
}
resources/views/auth/login.blade.php
View file @
b3e91d88
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment