|
|
|
@ -17,12 +17,18 @@ |
|
|
|
|
|
|
|
@foreach($features->groupBy('type_id') as $key => $groupedFeatures) |
|
|
|
|
|
|
|
<div class="panel panel-default table-responsive"> |
|
|
|
<div id="project-features" class="panel panel-default table-responsive"> |
|
|
|
<div class="panel-heading"> |
|
|
|
<div class="pull-right"> |
|
|
|
{!! link_to_route('projects.features-export', trans('project.features_export_html'), [$project->id, 'html', 'feature_type' => $key], ['class' => '','target' => '_blank']) !!} | |
|
|
|
{!! link_to_route('projects.features-export', trans('project.features_export_excel'), [$project->id, 'excel', 'feature_type' => $key], ['class' => '']) !!} | |
|
|
|
{!! link_to_route('projects.features-export', trans('project.features_export_progress_excel'), [$project->id, 'excel-progress', 'feature_type' => $key], ['class' => '']) !!} |
|
|
|
@if (request('action') == 'sort_features') |
|
|
|
{{ link_to_route('projects.features', trans('app.done'), [$project->id], ['class' => 'btn btn-default btn-xs pull-right', 'style' => 'margin-top: -2px; margin-left: 6px; margin-right: -8px']) }} |
|
|
|
@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', 'style' => 'margin-top: -2px; margin-left: 6px; margin-right: -8px']) }} |
|
|
|
|
|
|
|
{!! link_to_route('projects.features-export', trans('project.features_export_html'), [$project->id, 'html', 'feature_type' => $key], ['class' => '','target' => '_blank']) !!} | |
|
|
|
{!! link_to_route('projects.features-export', trans('project.features_export_excel'), [$project->id, 'excel', 'feature_type' => $key], ['class' => '']) !!} | |
|
|
|
{!! link_to_route('projects.features-export', trans('project.features_export_progress_excel'), [$project->id, 'excel-progress', 'feature_type' => $key], ['class' => '']) !!} |
|
|
|
@endif |
|
|
|
</div> |
|
|
|
<h3 class="panel-title"> |
|
|
|
{{ $key == 1 ? 'Daftar Fitur' : 'Fitur Tambahan' }} |
|
|
|
@ -78,7 +84,13 @@ |
|
|
|
<span title="Overal Progress" style="font-weight:300">({{ formatDecimal($project->getFeatureOveralProgress()) }} %)</span> |
|
|
|
</th> |
|
|
|
<th class="text-right">{{ formatRp($groupedFeatures->sum('price')) }}</th> |
|
|
|
<th colspan="2"></th> |
|
|
|
<th colspan="2"> |
|
|
|
@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 |
|
|
|
</th> |
|
|
|
</tr> |
|
|
|
</tfoot> |
|
|
|
</table> |
|
|
|
@ -87,6 +99,8 @@ |
|
|
|
|
|
|
|
@endsection |
|
|
|
|
|
|
|
@if (request('action') == 'sort_features') |
|
|
|
|
|
|
|
@section('ext_js') |
|
|
|
{!! Html::script(url('assets/js/plugins/jquery-ui.min.js')) !!} |
|
|
|
@endsection |
|
|
|
@ -103,4 +117,6 @@ |
|
|
|
}); |
|
|
|
})(); |
|
|
|
</script> |
|
|
|
@endsection |
|
|
|
@endsection |
|
|
|
|
|
|
|
@endif |