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
90f032c8
Commit
90f032c8
authored
Oct 30, 2025
by
Hannah Zahra
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://coders.3fresources.com/trainee/mileage-claim
parents
a8c35c14
24eec99e
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
88 additions
and
71 deletions
+88
-71
config/laravolt/ui.php
+1
-0
lang/en/auth.php
+21
-16
packages/portal/mileage/src/Http/Controllers/ApplyformController.php
+1
-1
packages/portal/mileage/src/Model/AclRole.php.back
+23
-0
resources/views/auth/login.blade.php
+42
-26
resources/views/vendor/ui/layouts/auth.blade.php
+0
-28
No files found.
config/laravolt/ui.php
View file @
90f032c8
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
*/
*/
// Layout, Available options: 'modern', 'fullscreen', 'classic'
// Layout, Available options: 'modern', 'fullscreen', 'classic'
'login_layout'
=>
'modern'
,
'login_layout'
=>
'modern'
,
'layout'
=>
'ui::layouts.auth'
,
// Background image
// Background image
'login_background'
=>
'/laravolt/img/wallpaper/animated-svg/dark.svg'
,
'login_background'
=>
'/laravolt/img/wallpaper/animated-svg/dark.svg'
,
...
...
lang/en/auth.php
View file @
90f032c8
<?php
<?php
return
[
return
[
'activation_success'
=>
'Your account successfully activated.'
,
/*
'already_registered?'
=>
'Have an account?'
,
|--------------------------------------------------------------------------
'click_to_activate'
=>
'Please click <a href=":link">this activation link</a> to activate your account.'
,
| Authentication Language Lines
'email'
=>
'Email'
,
|--------------------------------------------------------------------------
'failed'
=>
'Invalid credentials'
,
|
'forgot_password'
=>
'Forgot password'
,
| The following language lines are used during authentication for various
'identifier'
=>
'Email'
,
| messages that we need to display to the user. You are free to modify
'login'
=>
'Login'
,
| these language lines according to your application's requirements.
'login_here'
=>
'Login Here'
,
|
'name'
=>
'Name'
,
*/
'not_registered_yet?'
=>
'Not registered yet?'
,
'password'
=>
'Password'
,
'failed'
=>
'These credentials do not match our records.'
,
'password_confirmation'
=>
'Confirm Your Password'
,
'password'
=>
'The provided password is incorrect.'
,
'password_new'
=>
'New Password'
,
'throttle'
=>
'Too many login attempts. Please try again in :seconds seconds.'
,
'password_confirm'
=>
'Confirm New Password'
,
'register'
=>
'Register'
,
'register_here'
=>
'Register Here'
,
'registration_success'
=>
'Registration success. Please check your email to activate your account.'
,
'remember'
=>
'Remember me'
,
'reset_password'
=>
'Reset Password'
,
'send_reset_password_link'
=>
'Send Reset Password Link'
,
];
];
packages/portal/mileage/src/Http/Controllers/ApplyformController.php
View file @
90f032c8
...
@@ -99,7 +99,7 @@ public function index()
...
@@ -99,7 +99,7 @@ public function index()
}
else
{
}
else
{
// Non-admin → only their assigned projects
// Non-admin → only their assigned projects
$projects
=
Project
::
whereHas
(
'projectTeam'
,
function
(
$q
)
use
(
$user
)
{
$projects
=
Project
::
whereHas
(
'projectTeam'
,
function
(
$q
)
use
(
$user
)
{
$q
->
where
(
'pt_staff_id'
,
$user
->
employee
_c
ode
);
$q
->
where
(
'pt_staff_id'
,
$user
->
employee
C
ode
);
})
->
get
();
})
->
get
();
}
}
...
...
packages/portal/mileage/src/Model/AclRole.php.back
0 → 100644
View file @
90f032c8
<?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 @
90f032c8
<x-volt-auth>
@
extends
(
config
(
'laravolt.ui.layout'
))
<h3
class=
"ui header horizontal divider section"
>
@lang('laravolt::auth.login')
</h3>
@
section
(
'content'
)
@
if
(
session
(
'success'
))
<
div
class
="
ui
success
message
">
<p>{{ session('success') }}</p>
</div>
@endif
{!! form()->open(route('auth::login.store'))->attribute('up-target', 'body') !!}
{!! form()->open(route('auth::login.store'))->attribute('up-target', 'body') !!}
{!! form()->email('email')->label(__('laravolt::auth.identifier')) !!}
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
{!! form()->password('password')->label(__('laravolt::auth.password')) !!}
@if(config('laravolt.platform.features.captcha'))
<div class="
ui
field
left
icon
input
fluid
">
<input type="
text
" name="
email
" placeholder="
email
" value="
{{
old
(
'email'
)
}}
">
<i class="
mail
icon
"></i>
</div>
<div class="
ui
field
left
icon
input
fluid
">
<!-- <input type="
password
" name="
password
" placeholder="
Password
"> -->
<input type="
password
" name="
password
" placeholder="
@
lang
(
'auth::password'
)
">
<i class="
lock
icon
"></i>
</div>
@if(config('laravolt.auth.captcha'))
<div class="
field
">
<div class="
field
">
{!! app('captcha')->display() !!}
{!! app('captcha')->display() !!}
{!! app('captcha')->renderJs() !!}
</div>
</div>
@endif
@endif
<div class="
ui
field
">
<div
class=
"ui field m-b-2"
>
<!-- <button type="
submit
" class="
ui
fluid
button
primary
">Login</button> -->
<div
class=
"ui equal width grid"
>
<button type="
submit
" class="
ui
fluid
button
primary
">@lang('auth::login')</button>
</div>
<div class="
ui
equal
width
grid
field
">
<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>Remember me</label> -->
<label>@lang('auth::remember')</label>
</div>
</div>
</div>
</div>
<div class="
column
right
aligned
">
<div class="
column
right
aligned
">
<a
themed
href=
"{{ route('auth::forgot.show') }}"
<a href="
{{
route
(
'auth::forgot.show'
)}}
">@lang('auth::forgot_password')</a>
class=
"link"
>
@lang('laravolt::auth.forgot_password')
</a>
</div>
</div>
</div>
</div>
<div
class=
"field action"
>
<x-volt-button
class=
"fluid"
>
@lang('laravolt::auth.login')
</x-volt-button>
</div>
</div>
@if(config('laravolt.platform.features.registration'))
</form>
<div
class=
"ui divider section"
></div>
<div>
@lang('laravolt::auth.not_registered_yet?'
)
@if(config('laravolt.auth.registration.enable')
)
<a
themed
href=
"{{ route('auth::registration.show') }}"
<div class="
ui
divider
hidden
section
"></div>
class=
"link"
>
@lang('laravolt::auth.register_here')
</a>
@lang('auth::not_registered_yet?')
<
/div
>
<
a href="
{{
route
(
'auth::register.show'
)
}}
">@lang('auth::register_here')</a
>
@endif
@endif
{!! form()->close() !!}
</x-volt-auth>
@endsection
@push('script')
@if(config('laravolt.auth.captcha'))
{!! app('captcha')->renderJs() !!}
@endif
@endpush
resources/views/vendor/ui/layouts/auth.blade.php
View file @
90f032c8
@
extends
(
'ui::layouts.base'
,
[
'bodyClass'
=>
'auth'
])
@
extends
(
'ui::layouts.base'
,
[
'bodyClass'
=>
'auth'
])
<
style
type
=
"text/css"
>
.
discl
{
position
:
fixed
;
bottom
:
15
px
;
width
:
100
%
;
margin
-
left
:
unset
!
important
;
margin
-
right
:
unset
!
important
;
}
.
discl
.
disc
{
color
:
#FFFFFF;width: 100%; background: black; text-align: center;
}
@
media
only
screen
and
(
max
-
width
:
480
px
)
{
.
discl
{
display
:
none
!
important
;;
}
</
style
>
@
section
(
'body'
)
@
section
(
'body'
)
<
div
class
="
ui
divider
hidden
section
"></div>
<
div
class
="
ui
divider
hidden
section
"></div>
<div class="
ui
grid
stackable
">
<div class="
ui
grid
stackable
">
...
@@ -39,10 +15,6 @@
...
@@ -39,10 +15,6 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="
ui
grid
stackable
discl
" >
<span class="
disc
">Sesuai dipapar menggunakan Firefox 48 , Chrome 52 , Windows Edge and Safari 9 dengan paparan 1280 x 800. Hak Cipta Terpelihara © 2019, Perbadanan Putrajaya.</span></div>
@endsection
@endsection
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