|
|
|
@ -13,9 +13,9 @@ |
|
|
|
<th>{{ trans('job.name') }}</th> |
|
|
|
<th class="text-center">{{ trans('job.tasks_count') }}</th> |
|
|
|
<th class="text-center">{{ trans('job.progress') }}</th> |
|
|
|
@if(auth()->user()->hasRole('admin')) |
|
|
|
@can('see-pricings', new App\Entities\Projects\Job) |
|
|
|
<th class="text-right">{{ trans('job.price') }}</th> |
|
|
|
@endauth |
|
|
|
@endcan |
|
|
|
<th>{{ trans('job.worker') }}</th> |
|
|
|
<th>{{ trans('app.action') }}</th> |
|
|
|
</thead> |
|
|
|
@ -39,16 +39,16 @@ |
|
|
|
</td> |
|
|
|
<td class="text-center">{{ $job->tasks_count = $job->tasks->count() }}</td> |
|
|
|
<td class="text-center">{{ formatDecimal($job->progress) }} %</td> |
|
|
|
@if(auth()->user()->hasRole('admin')) |
|
|
|
@can('see-pricings', $job) |
|
|
|
<td class="text-right">{{ formatRp($job->price) }}</td> |
|
|
|
@endif |
|
|
|
@endcan |
|
|
|
<td>{{ $job->worker->name }}</td> |
|
|
|
<td> |
|
|
|
{!! link_to_route('jobs.show', trans('app.show'),[$job->id],['class' => 'btn btn-info btn-xs']) !!} |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
@empty |
|
|
|
<tr><td colspan="7">{{ trans('job.empty') }}</td></tr> |
|
|
|
<tr><td colspan="8">{{ trans('job.empty') }}</td></tr> |
|
|
|
@endforelse |
|
|
|
</tbody> |
|
|
|
<tfoot> |
|
|
|
@ -56,7 +56,9 @@ |
|
|
|
<th class="text-right" colspan="3">Total</th> |
|
|
|
<th class="text-center">{{ $jobs->sum('tasks_count') }}</th> |
|
|
|
<th class="text-center">{{ formatDecimal($jobs->avg('progress')) }} %</th> |
|
|
|
@can('see-pricings', new App\Entities\Projects\Job) |
|
|
|
<th class="text-right">{{ formatRp($jobs->sum('price')) }}</th> |
|
|
|
@endcan |
|
|
|
<th colspan="2"></th> |
|
|
|
</tr> |
|
|
|
</tfoot> |
|
|
|
|