Sprints

All
@foreach($sprintsBacklog as $sprint)
@if(count($sprint['data']->issues) > 0 && $sprint['data']->pivot->sprint_points !== null) {{ $sprint['data']->title }}
@else {{ $sprint['data']->title }}
@endif @if($sprint['data']->start_date != NULL) From {{ date('d-m-Y', strtotime($sprint['data']->start_date)) }} @endif
@if($sprint['data']->due_date != NULL) To {{ date('d-m-Y', strtotime($sprint['data']->due_date)) }} @endif
@if( $sprint['data']->pivot->is_synced)
@php $totalIssues = $sprint['data']->issues->count(); @endphp @if($project->scrum_point == 0) @php $totalCompleteIssues = $sprint['data']->countIssuesComplete($project->id); $percent = $totalCompleteIssues ? $totalCompleteIssues / $totalIssues * 100 : 0; @endphp @else @php $percent = $sprint['data']->pivot->sprint_points ? $sprint['data']->pivot->burned_points / $sprint['data']->pivot->sprint_points * 100 : 0 @endphp @endif
{{ $totalIssues }} Issues
{{ ceil($percent) }}%
@else

Not synchronized

0 Issues
0%
@endif

@endforeach

Issues