@extends('dashlayouts.app') @section('content') @if (auth()->user()->is_parent == 1)

Dashboard

@include('errors') @if(session('success')) @endif @if(session('error')) @endif
@if (is_null(auth()->user()->add1) || is_null(auth()->user()->mobile_no))
@endif {{-- TEMP EDIT PHOTO TAG --}} @if($badPhotoCount > 0)
@endif {{-- --}}
@if($children->count() >= 1)

Senarai Murid - {{ $children->count() }}


@foreach ($children as $child)
@if($child->logo_path) School Logo @endif
{{ $child->student_id }} - {{ $child->student_name}}
Sekolah:

{{ $child->nama_pusat }}

@endforeach @else

{{--
Anda tidak mempunyai murid di bawah ID anda. Sila daftarkan murid di sini
--}}
Tiada Murid berdaftar di bawah ID anda. Sila daftar murid melalui aplikasi Orijin School. Sila rujuk Dokumen Manual ini untuk langkah pendaftaran.
@endif
@if (session('complaintmsg')) @endif

Penjaga | Maklumat Penjaga

Nama : {{ $user->name }}

Emel : {{ $user->email }}

IC No. : {{ $user->idno }}

Hp No. : {{ $user->mobile_no }}

Langganan : @if($user->subscription_type == 'PREMIUM') {{ $user->subscription_type }}

@else {{ $user->subscription_type }}

@endif
@else

Dashboard

@include('errors')
Main Menu
@if(session('subscription_type') == 'PREMIUM')
@if (auth()->user()->is_mara == 3)

Apply Outing

Outing Application

Outing Record

@else

Sistem ini hanya untuk kegunaan Ibubapa & Pelajar

@endif
@else
@if (auth()->user()->is_mara == 3) {{--

Apply Outing

Outing Application

Outing Record

--}}
Upgrade to PREMIUM to access full content  Premium

Apply Outing

Upgrade to PREMIUM to access full content  Premium

Outing Application

Upgrade to PREMIUM to access full content  Premium

Outing Record

@else

Sistem ini hanya untuk kegunaan Ibubapa & Pelajar

@endif
@endif
{{-- @else

Access for user {{ auth()->user()->name }} is pending for approval.

Status : User pending approval

@endif --}}
Class Schedule - 2024/{{ $student->kod_pusat}}/{{ $student->kelas}}
@if(session('subscription_type') == 'PREMIUM')
@foreach($weekdays as $day) @endforeach @php $startTime = \Carbon\Carbon::createFromTimeString('07:00'); $endTime = \Carbon\Carbon::createFromTimeString('18:30'); $currentTime = $startTime->copy(); @endphp @while ($currentTime->lte($endTime)) @php $nextTime = $currentTime->copy()->addMinutes(30); @endphp @foreach($weekdays as $day) @php $session = $class_sessions[$day]->filter(function ($session) use ($currentTime, $nextTime) { $start = \Carbon\Carbon::createFromFormat('H:i:s', $session->mula_kelas); $end = \Carbon\Carbon::createFromFormat('H:i:s', $session->tamat_kelas); return ($start->lt($nextTime) && $end->gt($currentTime)); })->first(); @endphp @if ($session) @php $color = $color_map[$session->code_sub] ?? '#ffffff'; // Default color if not found @endphp @else @endif @endforeach @php $currentTime = $nextTime; @endphp @endwhile
Period{{ $day }}
{{ $currentTime->format('H:i') }} - {{ $nextTime->format('H:i') }}
{{ $session->code_sub }}
{{--
{{ $session->subjek }}
--}}
{{ $session->teacher_id }}
@else
@foreach($weekdays as $day) @endforeach @php $startTime = \Carbon\Carbon::createFromTimeString('07:00'); $endTime = \Carbon\Carbon::createFromTimeString('18:30'); $currentTime = $startTime->copy(); @endphp @while ($currentTime->lte($endTime)) @php $nextTime = $currentTime->copy()->addMinutes(30); @endphp @foreach($weekdays as $day) @php $session = $class_sessions[$day]->filter(function ($session) use ($currentTime, $nextTime) { $start = \Carbon\Carbon::createFromFormat('H:i:s', $session->mula_kelas); $end = \Carbon\Carbon::createFromFormat('H:i:s', $session->tamat_kelas); return ($start->lt($nextTime) && $end->gt($currentTime)); })->first(); @endphp @if ($session) @php $color = $color_map[$session->code_sub] ?? '#ffffff'; // Default color if not found @endphp @else @endif @endforeach @php $currentTime = $nextTime; @endphp @endwhile
Period{{ $day }}
{{ $currentTime->format('H:i') }} - {{ $nextTime->format('H:i') }}
{{ $session->code_sub }}
{{--
{{ $session->subjek }}
--}}
{{ $session->teacher_id }}
Upgrade to PREMIUM to access full content  Premium
@endif
@if(session('subscription_type') == 'PREMIUM')
Class Session | Timeline
@if($class_session->isEmpty())

No class sessions found for today.

@else @foreach($class_session as $cs)
{{ \Carbon\Carbon::parse($cs->mula_kelas)->format('H:i') }} - {{ \Carbon\Carbon::parse($cs->tamat_kelas)->format('H:i') }}
@if(\Carbon\Carbon::parse(now())->format('h:i A') > $cs->mula_kelas) @else @endif
{{ $cs->subjek }}
@endforeach @endif
@else
Class Session | Timeline
@if($class_session->isEmpty())

No class sessions found for today.

@else @foreach($class_session as $cs)
{{ \Carbon\Carbon::parse($cs->mula_kelas)->format('H:i') }} - {{ \Carbon\Carbon::parse($cs->tamat_kelas)->format('H:i') }}
@if(\Carbon\Carbon::parse(now())->format('h:i A') > $cs->mula_kelas) @else @endif
{{ $cs->subjek }}
@endforeach @endif
Upgrade to PREMIUM to access full content  Premium
@endif
@if(session('subscription_type') == 'PREMIUM')
Curriculum Activities | Calendar
@if($cc_session->isEmpty())

No curricular activities at this time

@else @foreach($cc_session as $cc)
{{ \Carbon\Carbon::parse($cc->start_date)->format('d-m-Y') }}
@if(\Carbon\Carbon::parse(now())->format('Y-m-d') > $cc->start_date) @else @endif
{{$cc->kod_sub }} - {{ $cc->desc_sub }}
@endforeach @endif
@else
Curriculum Activities | Calendar
@if($cc_session->isEmpty())

No curricular activities at this time

@else @foreach($cc_session as $cc)
{{ \Carbon\Carbon::parse($cc->start_date)->format('d-m-Y') }}
@if(\Carbon\Carbon::parse(now())->format('Y-m-d') > $cc->start_date) @else @endif
{{$cc->kod_sub }} - {{ $cc->desc_sub }}
@endforeach @endif
Upgrade to PREMIUM to access full content  Premium
@endif
@if (session('complaintmsg')) @endif
e-Aduan | Submit Complaint
@csrf
@endif @endsection