@foreach ($projects['data'] as $project) @foreach ($project['projectreport'] as $index => $report) @if ($index > 0) @break @endif

{{ $project['name'] }}

Project Value: {{ $report['project_value'] }}

{{ Str::words($report['short_description'], 25, '...') }}

@csrf
@endforeach @endforeach
@if ($projects['current_page'] > 1) Previous @endif
    @php $start = max(1, min($projects['last_page'] - 9, $projects['current_page'] - 5)); $end = min($start + 9, $projects['last_page']); @endphp @for ($i = $start; $i <= $end; $i++)
  • {{ $i }}
  • @endfor
@if ($projects['current_page'] < $projects['last_page']) Next @endif
{{--
{{ $page['links'] }}
--}}