@if( $profile->role == 'student' )
| # |
Name |
Duration |
Classes |
Started |
Progress |
@if(!empty($enrollments))
@foreach($enrollments as $index => $enrollment)
| {{ $index + 1 }} |
{{ $enrollment->name }} |
{{ $enrollment->duration }} {{ $enrollment->period }} |
{{ $enrollment->total_theory + $enrollment->total_practical }} |
{{ date('F j, Y', strtotime($enrollment->created_at)) }} |
{{ round((($enrollment->completed_theory + $enrollment->completed_practical) / ($enrollment->total_theory + $enrollment->total_practical)) * 100) }}%
|
@endforeach
@else
| It's empty here. |
@endif
@endif
@if( $profile->role == 'instructor' || $profile->role == 'student' )
@endif
@if( $user->role != 'student' && $user->role != 'instructor' && $profile->role == 'student' )
| # |
Ref |
Amount |
Paid |
Balance |
Date |
View |
@if(!empty($invoices))
@foreach($invoices as $index => $invoice)
| {{$index + 1}} |
#{{$invoice->reference}} |
{{ money($invoice->amount) }} |
{{ money($invoice->amountpaid) }} |
{{ money($invoice->amount - $invoice->amountpaid) }} |
{{date('d F Y',strtotime($invoice->created_at))}} |
View |
@endforeach
@else
It's empty here. |
@endif
| # |
Invoice |
Amount |
Date |
Method |
Action |
@if(!empty($payments))
@foreach($payments as $index => $payment)
| {{$index+1}} |
#{{$payment->reference}} |
{{ money($payment->amount) }} |
{{ date('d F Y',strtotime($payment->created_at)) }} |
{{ $payment->method }} |
|
@endforeach
@else
| It's empty here. |
@endif
@endif
@if( $user->role != 'student' && $user->role != 'instructor' )
| # |
Note By |
Note |
Action |
@if(!empty($notes))
@foreach($notes as $index => $note)
| {{$index + 1}} |
@if( !empty($note->avatar) )
@else
@endif
{{ $note->fname }} {{ $note->lname }}
{{date('d F Y', strtotime($note->created_at))}}
|
@if ( strlen($note->note) > 50 )
{{ substr($note->note,0,50).'...'; }}
@else
{{ $note->note; }}
@endif
|
|
@endforeach
@else
| It's empty here. |
@endif
| # |
Name |
Uploaded By |
Date |
Action |
@if(!empty($attachments))
@foreach($attachments as $key => $attachment)
| {{$key+1}} |
{{ $attachment->name }} |
{{ $attachment->fname }} {{ $attachment->lname }} |
{{ date('F j, Y',strtotime($attachment->created_at))}} |
|
@endforeach
@else
| It's empty here. |
@endif
@endif