@extends('dashlayouts.app') @section('content')

Outing Record

@include('errors')

Student Information

Student ID: {{ $student->student_id }}

{{--

MARA No.: {{ $student->account_no }}

--}}

Student Name: {{ $student->student_name }}

School: {{ $student->nama_pusat }}

Form: {{ $student->tingkatan }}

Class: {{ $student->kelas }}

Outing Application Approved: {{ $student->outing_status }}

@php $currentMonth = null; @endphp @foreach($outings as $outing) @php $outingMonth = \Carbon\Carbon::parse($outing->start_date)->format('F Y'); @endphp @if ($outingMonth !== $currentMonth) @if ($currentMonth !== null)
@endif

Outing Record - {{ $outingMonth }}

@endif @php $currentMonth = $outingMonth; @endphp @endforeach @if ($currentMonth !== null)
Bil. Outing Period Reason Approval By Scanned Out Scanned In
{{ $loop->iteration }}. {{ \Carbon\Carbon::parse($outing->start_date)->format('d-m-Y') }} - {{ \Carbon\Carbon::parse($outing->end_date)->format('d-m-Y') }} {{ $outing->reason }} {{ $outing->approval_by ?? '-' }} {{ $outing->masa_keluar ?? '-' }} {{ $outing->masa_masuk ?? '-' }}
@endif
@endsection