@extends('layouts.app') @section('title', trans('project.features') . ' | ' . $project->name) @section('content') @include('projects.partials.breadcrumb',['title' => trans('project.features')])
{{ trans('project.no_features') }}, {{ link_to_route('features.create', trans('feature.create'), [$project->id]) }}.
@else @foreach($features->groupBy('type_id') as $key => $groupedFeatures)| {{ trans('app.table_no') }} | {{ trans('feature.name') }} | {{ trans('feature.tasks_count') }} | {{ trans('feature.progress') }} | {{ trans('feature.price') }} | {{--{{ trans('feature.worker') }} | --}}{{ trans('app.action') }} | @forelse($groupedFeatures as $key => $feature) @php $no = 1 + $key; $feature->progress = $feature->tasks->avg('progress'); @endphp
|---|---|---|---|---|---|---|
| {{ $no }} |
{{ $feature->name }}
@if ($feature->tasks->isEmpty() == false)
|
{{ $feature->tasks_count = $feature->tasks->count() }} | {{ formatDecimal($feature->progress) }} % | {{ formatRp($feature->price) }} | {{--{{ $feature->worker->name }} | --}}{!! html_link_to_route('features.show', '',[$feature->id],['icon' => 'search', 'title' => 'Lihat ' . trans('feature.show'), 'class' => 'btn btn-info btn-xs','id' => 'show-feature-' . $feature->id]) !!} {!! html_link_to_route('features.edit', '',[$feature->id],['icon' => 'edit', 'title' => trans('feature.edit'), 'class' => 'btn btn-warning btn-xs']) !!} |
| {{ trans('feature.empty') }} | ||||||
| Total | {{ $groupedFeatures->sum('tasks_count') }} | {{ formatDecimal($groupedFeatures->sum('progress') / $groupedFeatures->count()) }} % ({{ formatDecimal($project->getFeatureOveralProgress()) }} %) | {{ formatRp($groupedFeatures->sum('price')) }} | @if (request('action') == 'sort_features') {{ link_to_route('projects.features', trans('app.done'), [$project->id], ['class' => 'btn btn-default btn-xs pull-right']) }} @else {{ link_to_route('projects.features', trans('project.sort_features'), [$project->id, 'action' => 'sort_features', '#project-features'], ['class' => 'btn btn-default btn-xs pull-right']) }} @endif | ||