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
97cd3d25
Commit
97cd3d25
authored
Mar 07, 2023
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dashboard bod -> filter data yg timesheet yg dah approve.
parent
fb410007
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
packages/portal/timesheet/resources/views/dashboard/dashboardbod.blade.php
+4
-2
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+3
-0
No files found.
packages/portal/timesheet/resources/views/dashboard/dashboardbod.blade.php
View file @
97cd3d25
...
...
@@ -15,11 +15,13 @@
@foreach($profiles as $key => $staff)
<?php
$td
=
$checktd
->
where
(
'tm_staff_id'
,
$staff
->
staffid
);
$detail
=
$details
->
where
(
'staffid'
,
$staff
->
staffid
);
// $detail = $details->where('staffid', $staff->staffid);
$detail
=
$details
->
where
(
'fk_tm_id'
,
$staff
->
tmid
);
$checkchargeable
=
$detail
->
where
(
'tp_project_type'
,
1
)
->
first
();
$checkoverhead
=
$detail
->
where
(
'tp_project_type'
,
3
)
->
first
();
// dump($staff);
// dump($detail);
// dd($staff);
// dump(count($detail->where('tp_timesheet_sts',4)));
// dump(count($detail));
// dump(count($checkoverhead));
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
97cd3d25
...
...
@@ -128,6 +128,7 @@ class DashboardController extends Controller
->
with
(
'team'
)
->
with
(
'tproject'
)
->
get
();
// dd($profiles);
$tmid
=
[];
foreach
(
$profiles
as
$key
=>
$value
)
{
...
...
@@ -157,6 +158,7 @@ class DashboardController extends Controller
->
orderby
(
'tm_phase'
,
'desc'
)
->
get
();
// dd($profile);
$detailsverification
=
Tproject
::
where
(
'tp_project_type'
,
3
)
->
where
(
'tp_timesheet_sts'
,
'<>'
,
1
)
->
where
(
'tp_pm'
,
$verifier
->
id
)
...
...
@@ -166,6 +168,7 @@ class DashboardController extends Controller
$checkts
=
Ts_master
::
whereIn
(
'tm_timesheet_master_sts'
,
[
2
,
3
,
5
,
6
])
->
with
(
'attachement'
)
->
get
();
return
view
(
'timesheet::dashboard.dashboardbod'
,
compact
(
'approval'
,
'profiles'
,
'detailsverification'
,
'checktd'
,
'profile'
,
'checkts'
,
'details'
));
}
...
...
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