Commit a563b89f by hannan

remove nonchargeable in timesheet review, timesheet viewer, chargeable form, overhead form

parent cf4f9c07
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<table class="ui unstackable celled table"> <table class="ui unstackable celled table">
<thead> <thead>
<tr> <tr>
<th colspan="3" style="width: 60%;"><i class="dropdown icon"></i>{{ data_get($staff,'fullname') }}</th> <th colspan="2" style="width: 60%;"><i class="dropdown icon"></i>{{ data_get($staff,'fullname') }}</th>
<th style="width: 15%;" class="center aligned"> <th style="width: 15%;" class="center aligned">
@if($staff->status == 1 || $staff->status == null) In Preparation @if($staff->status == 1 || $staff->status == null) In Preparation
@elseif($staff->status == 2) <i class="red attention icon"></i> Submitted @elseif($staff->status == 2) <i class="red attention icon"></i> Submitted
...@@ -38,9 +38,8 @@ ...@@ -38,9 +38,8 @@
</th> </th>
</tr> </tr>
<tr> <tr>
<td style="width: 20%;">Chargeable (A) : {{ data_get($staff,'chargeable') }}</td> <td style="width: 30%;">Chargeable (A) : {{ data_get($staff,'chargeable') }}</td>
<td style="width: 20%;">Nonchargeable (B) : {{ data_get($staff,'nonchargeable') }}</td> <td style="width: 30%;">Overhead (B) : {{ data_get($staff,'overhead') }}</td>
<td style="width: 20%;">Overhead (C) : {{ data_get($staff,'overhead') }}</td>
<td style="width: 15%;">Overtime: {{ data_get($staff,'overtime') }}</td> <td style="width: 15%;">Overtime: {{ data_get($staff,'overtime') }}</td>
<td class="right aligned">Total Hours/Days: {{ data_get($staff,'totalhrs')." hours/ ".number_format(data_get($staff,'totalhrs')/8, 1, '.', '')." days" }}</td> <td class="right aligned">Total Hours/Days: {{ data_get($staff,'totalhrs')." hours/ ".number_format(data_get($staff,'totalhrs')/8, 1, '.', '')." days" }}</td>
</tr> </tr>
...@@ -50,8 +49,7 @@ ...@@ -50,8 +49,7 @@
<?php <?php
$cptype = "A"; $cptype = "A";
$ncptype = "B"; $otype = "B";
$otype = "C";
$td = $checktd->where('tm_staff_id', $staff->staff_id); $td = $checktd->where('tm_staff_id', $staff->staff_id);
$detail = $details->where('staffid', $staff->staff_id); $detail = $details->where('staffid', $staff->staff_id);
$ts = $checkts->where('tm_staff_id', $staff->staff_id); $ts = $checkts->where('tm_staff_id', $staff->staff_id);
...@@ -82,18 +80,7 @@ ...@@ -82,18 +80,7 @@
</tr> </tr>
@endforeach @endforeach
@endif @endif
@if($detail->where('ptype', 2))
@foreach($detail->where('ptype', 2) as $key => $nonchargeable)
<tr>
<td style="width: 6%;" class="center aligned">{{ $ncptype }}</td>
<td style="width: 17%;">{{ data_get($nonchargeable, 'pcode') }}</td>
<td style="width: 26%;">{{ data_get($nonchargeable, 'pname') }}</td>
<td style="width: 26%;">{{ data_get($nonchargeable, 'pmname') }}</td>
<td style="width: 12.5%;" class="center aligned">{{ data_get($nonchargeable, 'hours') }}</td>
<td style="width: 12.5%;" class="center aligned">{{ number_format(data_get($nonchargeable, 'hours')/8, 1, '.', '') }}</td>
</tr>
@endforeach
@endif
@if($detail->where('ptype', 3)) @if($detail->where('ptype', 3))
@foreach($detail->where('ptype', 3) as $key => $chargeable) @foreach($detail->where('ptype', 3) as $key => $chargeable)
<tr> <tr>
......
...@@ -22,10 +22,6 @@ input[type=number] { ...@@ -22,10 +22,6 @@ input[type=number] {
<br> <br>
<br> <br>
<!-- <button class="center aligned ui violet compact right labeled icon button" onclick="window.location.href='{ route('timesheet::form.nonChargeableForm', ['phase' => $phase, 'month' => $month, 'year' => $year]) }';">
<i class="angle double right icon"></i>
Non-Chargeable Form
</button> -->
<button class="center aligned ui purple compact right labeled icon button" onclick="window.location.href='{{ route('timesheet::form.overheadForm', ['phase' => $phase, 'month' => $month, 'year' => $year]) }}';"> <button class="center aligned ui purple compact right labeled icon button" onclick="window.location.href='{{ route('timesheet::form.overheadForm', ['phase' => $phase, 'month' => $month, 'year' => $year]) }}';">
<i class="angle double right icon"></i> <i class="angle double right icon"></i>
Overhead Form Overhead Form
......
...@@ -24,45 +24,12 @@ input[type=number] { ...@@ -24,45 +24,12 @@ input[type=number] {
<div class="ui segment"> <div class="ui segment">
<a class="ui purple left ribbon label">Overhead Form</a> <a class="ui purple left ribbon label">Overhead Form</a>
<br> <br>
<!-- <form class="ui form">
<div class="field">
<div class="three fields">
<div class="one wide field">
<label>Phase</label>
<input type="text" placeholder="Year" value="{{$phase}}" readonly="readonly">
</div>
<div class="one wide field">
<label>Month</label>
<input type="text" placeholder="Month" value="{{$month}}" readonly="readonly">
</div>
<div class="two wide field">
<label>Year</label>
<input type="text" placeholder="Year" value="{{$year}}" readonly="readonly">
</div>
</div>
</div>
</form> -->
<br> <br>
<!-- @if($phase == 1)
<button class="center aligned ui green compact right labeled icon button" id="phase2" onclick="window.location.href='{{ route('timesheet::form.overheadForm', ['phase' => 2, 'month' => $month, 'year' => $year]) }}';">
<i class="angle double right icon"></i>
Phase 2
</button>
@else
<button class="center aligned ui green compact labeled icon button" id="phase1" onclick="window.location.href='{{ route('timesheet::form.overheadForm', ['phase' => 1, 'month' => $month,'year' => $year]) }}';">
<i class="angle double left icon"></i>
Phase 1
</button>
@endif -->
<button class="center aligned ui blue compact labeled icon button" onclick="window.location.href='{{ route('timesheet::form.chargeableForm', ['phase' => $phase, 'month' => $month, 'year' => $year]) }}';"> <button class="center aligned ui blue compact labeled icon button" onclick="window.location.href='{{ route('timesheet::form.chargeableForm', ['phase' => $phase, 'month' => $month, 'year' => $year]) }}';">
<i class="angle double left icon"></i> <i class="angle double left icon"></i>
Chargeable Form Chargeable Form
</button> </button>
<!-- <button class="center aligned ui violet compact labeled icon button" onclick="window.location.href='{{ route('timesheet::form.nonChargeableForm', ['phase' => $phase, 'month' => $month, 'year' => $year]) }}';">
<i class="angle double left icon"></i>
Non-Chargeable Form
</button> -->
@if($checkoverhead) @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] ) }} ';"> <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] ) }} ';">
......
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