@extends(adminLayout()) @section('content')
{{ __lang('first-name') }}:
{{ htmlentities( $row->name) }}
{{ __lang('last-name') }}
{{ htmlentities( $row->last_name) }}
{{ __lang('telephone-number') }}
{{ htmlentities( $row->mobile_number) }}
{{ __lang('email') }}
{{ htmlentities( $row->email) }}
{{ __lang('status') }}
{{ htmlentities( (empty($row->enabled))? 'Inactive':'Active') }}
{{ __lang('display-picture') }}
@php if(!empty($row->picture) && isUrl($row->picture)): @endphp @php elseif(!empty($row->picture) && isImage($row->picture)): @endphp @php endif; @endphp
@php foreach($custom as $row): @endphp
@php if($row->type=='checkbox'): @endphp
{{ htmlentities( $row->name) }}
{{ htmlentities( boolToString($row->value)) }}
@php elseif($row->type=='file'): @endphp
{{ htmlentities( $row->name) }}
@php if(isImage($row->value)): @endphp
@php endif; @endphp {{ __lang('view-file') }}
@php else: @endphp
{{ htmlentities( $row->name) }}
{{ htmlentities( $row->value) }}
@php endif; @endphp
@php endforeach; @endphp

{{ __lang('enrolled-in') }}

@php foreach(\App\Student::find($id)->studentCourses as $session): @endphp @php endforeach; @endphp
{{ __lang('course-session') }} {{ __lang('completed-classes') }} {{ __lang('enrolled-on') }}
{{$session->course->name}} @php $attended= $attendanceTable->getTotalDistinctForStudentInSession($id,$session->course_id); echo $attended @endphp/{{ \App\Course::find($session->course_id)->lessons()->count() }} {{showDate('d/M/Y',$session->created_at)}}
@php if(false): @endphp

{{ __lang('classes-attended') }}

@php foreach($attendance as $row): @endphp @php endforeach; @endphp
{{ __lang('class') }} {{ __lang('session-course') }} {{ __lang('date') }} {{ __lang('actions') }}
{{ htmlentities( $row->lesson_name) }} {{ htmlentities( $row->session_name) }} {{ htmlentities( showDate('d/M/Y',$row->attendance_date)) }}
@php endif; @endphp @endsection