@extends('layouts/contentLayoutMaster')
@section('title', 'Edit Student')
@section('vendor-style')
@endsection
@section('page-style')
@endsection
@section('content')
Student Courses
@php
$i = 1;
@endphp
@foreach(@$courses as $course)
#
Category
Start Date
End Date
Total Fee
Remaining Fee
Certificate Issued At
Created At
Actions
{{ @$i}}
{{ @$course->category->name}}
{{@$course->start_date}}
{{ @$course->end_date }}
{{ @$course->total_fee }}
{{@$course->total_fee - $course->paidAmount}}
{{ @$course->certificate_issued_at ?? 'N/A' }}
{{ date('Y-m-d h:i a',strtotime($course->created_at)) }}
@php
$i++
@endphp
@endforeach
Course
Transactions
@php
$y = 1;
@endphp
@foreach(@$course->allTransactions as $transaction)
#
Type
Amount
Created At
Actions
@php
$y++
@endphp
@endforeach
{{ @$y}}
{{ @$transaction->type}}
{{@$transaction->amount}}
{{@$transaction->created_at->format('Y-m-d h:i a')}}