@extends('layouts.list') @section('title') All Students @endsection @section('list-title') {{__('students.students')}} @endsection @section('list-navigation')
  • {{__('students.students')}}
  • @endsection @section('list-new-button') @if (Auth::user()->role == 'super_admin' || Auth::user()->role == 'owner' || Auth::user()->role == 'admin') {{__('students.new_student')}} @endif @endsection @section('list-table-header') # {{__('students.image')}} {{__('students.student')}} {{__('students.nationality')}} {{__('students.gender')}} {{__('students.actions')}} @endsection @section('list-table-body') @foreach ($students as $student)

    1

    @if ($student->image !== null && $student->image !== '') {{ $student->student_name }} @else

    {{ $student->student_name[0] }}

    @endif
    {{__('students.name')}}

    {{ $student->student_name }}

    {{__('students.home_phone')}}

    {{ $student->home_phone }}

    {{__('students.phone')}}

    {{ $student->phone }}

    {{__('students.alternative_phone')}}

    {{ $student->alternative_phone }}

    {{__('students.contact_number')}}

    {{ $student->contact_number }}

    {{__('students.nationality')}}

    {{ $student->nationality }}

    {{__('students.gender')}}

    {{ $student->gender }}

    {{--

    {{session()->get('IPassedTheMiddleware')}}

    --}}
    @endforeach @endsection @section('list-table-inside-pagination') {{--
    {!! $students->links() !!}
    --}} @endsection @section('list-pagination') {{-- {{ $students->links() }} --}} @endsection