name) . '.xls'; // header("Content-Disposition: attachment; filename=\"$filename\""); // header("Content-Type: application/vnd.ms-excel"); ?> {{-- --}} {{ $project->name }} {{-- --}} @forelse($features as $key => $feature) {{-- --}} @if ($feature->tasks->count()) @foreach($feature->tasks as $task) {{-- --}} @endforeach @endif @empty @endforelse {{-- --}} {{-- --}}

{{ trans('project.features') }} {{ $project->name }}

{{ trans('app.table_no') }} {{ trans('feature.name') }} {{ trans('feature.progress') }} {{ trans('feature.price') }}{{ trans('app.description') }}
{{ 1 + $key }} {{ $feature->name }} {{ formatDecimal($feature->progress = $feature->tasks->avg('progress')) }} {{ $feature->price }}{!! nl2br($feature->description) !!}
{{ $task->name }} {{ $task->progress }} {!! nl2br($task->description) !!}
{{ trans('feature.empty') }}
Total{{ formatDecimal($features->sum('progress') / count($features)) }}{{ formatDecimal($project->getFeatureOveralProgress()) }} % {{ $features->sum('price') }}