Commit 90a64481 by Azhan Hannan

staff - flow rejected overhead

parent 54d14ceb
......@@ -27,7 +27,10 @@
<div class="ui unstackable segment">
<a class="ui blue left ribbon label">List Description of Task</a>
<br><br>
<br>
<br>
@if(data_get($staff,'fk_lkp_department') == 7)
<button type="button" class="right floated aligned ui olive compact labeled icon button" id="uploadmodal">
......@@ -48,6 +51,21 @@
<i class="plus icon"></i>Add New Notes
</a> -->
@if($page)
<input type="hidden" name="page" value="{{$page}}">
<button type="submit" class="right floated aligned ui orange compact button">
Save
</button>
<button type="button" class="center aligned ui purple compact labeled icon button" onclick="window.location.href='{{ route('timesheet::form.rejected', ['tpid' => data_get($checktp,'id') ]) }}';">
<i class="angle double left icon"></i>
Back To Resubmit Overhead
</button>
@else
<button type="submit" class="right floated aligned ui orange compact button">
Save
</button>
......@@ -61,6 +79,7 @@
<i class="angle double right icon"></i>
Timesheet Viewer
</button>
@endif
<table class="ui celled structured table unstackable">
<thead>
......
......@@ -4,19 +4,43 @@
<div class="ui segment">
<a class="ui purple left ribbon label">Rejected Overhead</a>
<?php
$month = data_get($checkoverhead,'tm_month');
$phase = data_get($checkoverhead,'tm_phase');
$year = data_get($checkoverhead,'tm_year');
$fk_tm_id = data_get($checkoverhead,'id');
$page = 6;
?>
@if($checkoverhead)
<button class="right floated aligned ui yellow compact labeled icon button" id="notes" onclick="window.location.href='{{ route('timesheet::form.notelist', ['year'=> $year, 'month'=> $month, 'phase'=> $phase, 'fk_tm_id'=> $fk_tm_id, 'page'=> $page] ) }} ';">
<i class="plus icon"></i>
Add Task Description
</button>
@else
@endif
<br>
<br>
<form class="ui form" action="" method="POST">
<form class="ui form" action="{{ route('timesheet::form.resubmitoverhead') }}" method="POST">
{{csrf_field()}}
<input type="hidden" name="userId" value="{{$userId}}">
<input type="hidden" name="year" value="{{$year}}">
<input type="hidden" name="month" value="{{$month}}">
<input type="hidden" name="phase" value="{{$phase}}">
<input type="hidden" name="page" value="{{$page}}">
<table class="ui celled structured unstackable table" >
<thead>
<tr>
<th rowspan="3" class="center aligned">Overhead</th>
<th colspan="@if($phase == 1) 15 @else {{$daymonth-15}} @endif" class="center aligned">Date</th>
<th rowspan="2">
<button type="submit" class="fluid center aligned ui blue button">
<button type="submit" class="fluid center aligned ui compact blue button">
<!-- <i class="save icon"></i> -->
Save
</button>
<br>
<button type="button" class="fluid center aligned ui compact purple button" onclick="window.location.href='{{ route('timesheet::form.resubmitconfirm', ['fk_tm_id'=> $fk_tm_id, 'page'=> $page] ) }} ';">
Resubmit
</button>
</th>
......
......@@ -104,6 +104,7 @@ Route::group(
Route::get('rejected',['uses' => 'FormController@rejected', 'as' => 'form.rejected']);
Route::post('resubmit',['uses' => 'FormController@resubmit', 'as' => 'form.resubmit']);
Route::post('resubmitoverhead',['uses' => 'FormController@resubmitoverhead', 'as' => 'form.resubmitoverhead']);
Route::get('resubmitconfirm',['uses' => 'FormController@resubmitconfirm', 'as' => 'form.resubmitconfirm']);
// nonChargeableForm
......
......@@ -69,7 +69,7 @@ class DashboardController extends Controller
->get();
$details = Tproject::where('tp_project_type', 3)
// ->where('tp_timesheet_sts', 2)
->where('tp_timesheet_sts','<>', 1)
->where('tp_pm', $verifier->id)
->with('notes')
->get();
......
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