Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3f-timesheet
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
dockers
3f-timesheet
Commits
130a0ab5
Commit
130a0ab5
authored
Sep 30, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Senarai role, PD susun atas sekali
Status 1- Active, 0 - inactive
parent
b930c851
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
17 deletions
+51
-17
packages/portal/timesheet/resources/views/maintenance/senaraiPeranan.blade.php
+44
-10
packages/portal/timesheet/resources/views/maintenance/senaraiProjectTeam.blade.php
+7
-7
No files found.
packages/portal/timesheet/resources/views/maintenance/senaraiPeranan.blade.php
View file @
130a0ab5
...
@@ -16,16 +16,50 @@
...
@@ -16,16 +16,50 @@
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
@foreach(
$roles
as
$key
=>
$role
)
<?php
<tr>
$notpd
=
[];
<td class="
center
aligned
single
line
">
{
{$key+1}
}
</td>
foreach
(
$roles
as
$key
=>
$value
)
{
<td class="
single
line
">
{
{$role['role']}
}
</td>
if
(
data_get
(
$value
,
'id'
)
==
'7'
)
<td class="
center
aligned
single
line
">
{
{$role['status']}
}
</td>
{
<td class="
center
aligned
single
line
">
$pd
=
$value
;
<button class="
compact
ui
olive
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
editPeranan
', ['
id
' => $role['
id
']]) }}'
;
">Edit</button>
}
</td>
</tr>
@endforeach
if
(
data_get
(
$value
,
'id'
)
!=
'7'
)
{
$notpd
[
$key
]
=
$value
;
}
}
?>
<tr>
<td
class=
"center aligned single line"
>
1
</td>
<td
class=
"single line"
>
{{ data_get($pd,'role') }}
</td>
<td
class=
"center aligned single line"
>
@if(data_get($pd,'status') == 1) Active
@else Inactive
@endif
</td>
<td
class=
"center aligned single line"
>
<button
class=
"compact ui olive button"
onclick=
"window.location.href='{{ route('timesheet::maintenance.editPeranan', ['id' => $pd['id']]) }}';"
>
Edit
</button>
</td>
</tr>
@foreach($notpd as $key => $role)
<tr>
<td
class=
"center aligned single line"
>
{{$key+2}}
</td>
<td
class=
"single line"
>
{{data_get($role,'role')}}
</td>
<td
class=
"center aligned single line"
>
@if(data_get($role,'status') == 1) Active
@else Inactive
@endif
</td>
<td
class=
"center aligned single line"
>
<button
class=
"compact ui olive button"
onclick=
"window.location.href='{{ route('timesheet::maintenance.editPeranan', ['id' => data_get($role,'id')]) }}';"
>
Edit
</button>
</td>
</tr>
@endforeach
</tbody>
</tbody>
</table>
</table>
</div>
</div>
...
...
packages/portal/timesheet/resources/views/maintenance/senaraiProjectTeam.blade.php
View file @
130a0ab5
...
@@ -37,9 +37,9 @@
...
@@ -37,9 +37,9 @@
<tr>
<tr>
<td class="
single
line
">1</td>
<td class="
single
line
">1</td>
<td class="
single
line
">
{
{
$value['projectcode']
}
}
</td>
<td class="
single
line
">{{
data_get(
$value
,'projectcode')
}} </td>
<td class="
single
line
">
{
{
$value['projectname']
}
}
</td>
<td class="
single
line
">{{
data_get(
$value
,'projectname')
}} </td>
<td class="
single
line
">
{
{
$value['projectteam']
}
}
</td>
<td class="
single
line
">{{
data_get(
$value
,'projectteam')
}} </td>
<td class="
single
line
">{{ data_get(
$value
, 'role') }} </td>
<td class="
single
line
">{{ data_get(
$value
, 'role') }} </td>
<td class="
text
-
center
single
line
">
<td class="
text
-
center
single
line
">
@if(data_get(
$value
,'status') == 1) Active
@if(data_get(
$value
,'status') == 1) Active
...
@@ -54,9 +54,9 @@
...
@@ -54,9 +54,9 @@
@foreach(
$notpd
as
$key
=>
$project
)
@foreach(
$notpd
as
$key
=>
$project
)
<tr>
<tr>
<td class="
single
line
">
{
{$key+2}
}
</td>
<td class="
single
line
">
{
{$key+2}
}
</td>
<td class="
single
line
">
{
{
$project['projectcode']
}
}
</td>
<td class="
single
line
">{{
data_get(
$project
,'projectcode')
}} </td>
<td class="
single
line
">
{
{
$project['projectname']
}
}
</td>
<td class="
single
line
">{{
data_get(
$project
,'projectname')
}} </td>
<td class="
single
line
">
{
{
$project['projectteam']
}
}
</td>
<td class="
single
line
">{{
data_get(
$project
,'projectteam')
}} </td>
<td class="
single
line
">{{ data_get(
$project
, 'role') }} </td>
<td class="
single
line
">{{ data_get(
$project
, 'role') }} </td>
<td class="
text
-
center
single
line
">
<td class="
text
-
center
single
line
">
@if(data_get(
$project
,'status') == 1) Active
@if(data_get(
$project
,'status') == 1) Active
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
@endif
@endif
</td>
</td>
<td class="
text
-
center
single
line
">
<td class="
text
-
center
single
line
">
<button class="
compact
ui
olive
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
editProjectTeam
', ['
id
' =>
$project['
id
']])
}}'
;
">Edit</button>
<button class="
compact
ui
olive
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
editProjectTeam
', ['
id
' =>
data_get($project,'
id
') ])
}}'
;
">Edit</button>
</td>
</td>
</tr>
</tr>
@endforeach
@endforeach
...
...
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