@php $appliedScholarships = $scholarships->getCollection()->filter(function($s) { return isset($s->is_applied) && $s->is_applied; }); $savedScholarships = $scholarships->getCollection()->filter(function($s) { return !isset($s->is_applied) || !$s->is_applied; }); @endphp @if($appliedScholarships->count() > 0 || $savedScholarships->count() > 0) @if($appliedScholarships->count() > 0)
Applied Scholarships ({{ $appliedScholarships->count() }})
@foreach($appliedScholarships as $scholarship)
Applied
@include('student.app.scholarship.partials.scholarship-card-content', ['scholarship' => $scholarship])
@endforeach
@endif @if($savedScholarships->count() > 0)
Saved Scholarships ({{ $savedScholarships->count() }})
Consider applying to these
@foreach($savedScholarships as $scholarship)
@include('student.app.scholarship.partials.scholarship-card-content', ['scholarship' => $scholarship])
@endforeach
@endif @if($scholarships->hasPages())
{{ $scholarships->links('pagination::bootstrap-4') }}
@endif @else
Your Scholar Diary is Empty

Start by saving scholarships or marking them as "Wish to Apply" to track your applications.

@endif