@extends('layouts.app') @section('title', 'Dashboard') @section('content') @php $mid = trim((string) ($profile->middlename ?? '')); $fullName = trim($profile->firstname . ' ' . ($mid !== '' ? $mid[0] . '. ' : '') . $profile->surname); $cards = [ ['Grade Level', $profile->grade_name, 'M12 14l9-5-9-5-9 5 9 5z', 'emerald'], ['Section', $profile->section_name, 'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2', 'sky'], ['School Year', $profile->school_year, 'M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z', 'violet'], ['Department', $profile->Department, 'M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0H5m14 0h2M5 21H3', 'gold'], ['Classification', $profile->classification_name ?: '—', 'M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.196-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z', 'rose'], ['Student Status', $profile->Status, 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z', 'emerald'], ]; $quick = [ ['My Classes', route('student.classes.index'), 'M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253'], ['Grades', route('grades'), 'M12 14l9-5-9-5-9 5 9 5z'], ['Statement of Account', route('soa'), 'M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'], ]; @endphp {{-- Hero --}}
@if ($photoUrl) @else
{{ strtoupper(substr($profile->firstname,0,1) . substr($profile->surname,0,1)) }}
@endif

Welcome back

{{ $fullName }}

LRN {{ $profile->lrn }}  ·  {{ $profile->student_type }} Student

{{ $profile->Status }}
@foreach ($quick as [$label, $url, $icon]) {{ $label }} @endforeach
{{-- Info cards --}}
@foreach ($cards as [$label, $value, $path, $c])

{{ $label }}

{{ $value ?: '—' }}

@endforeach
{{-- Account summary --}}

Account Summary

View full SOA

Total Assessment

₱{{ number_format($assessed, 2) }}

Payments Made

₱{{ number_format($paid, 2) }}

Remaining Balance

₱{{ number_format(max(0,$balance), 2) }}

Payment Status

{{ $payStatus }}

@if ($balance < 0)

You have an advance/credit of ₱{{ number_format(abs($balance), 2) }} on your account.

@endif
@endsection