@extends('dashboard.layouts.master') @section('css') @endsection @section('breadcrumb')

{{ trans('labels.students') }}

@endsection @section('content')
{{--

Buttons example

--}} {{--

The Buttons extension for DataTables --}} {{-- provides a common set of options, API methods and styling to display --}} {{-- buttons on a page that will interact with a DataTable. The core library --}} {{-- provides the based framework upon which plug-ins can built. --}} {{--

--}}
Showing {{ $data->currentPage() == 1 ? '1' : $data->perPage() * ($data->currentPage() - 1) + 1 }} to {{ $data->currentPage() == $data->lastPage() ? $data->total() : $data->currentPage() * $data->perPage() }} of {{ $data->total() }} entries
{{ $data->links( "pagination::bootstrap-4") }}
@foreach ($data as $student) @endforeach
Student ID Name Email Phone Number Parent Number Governate lectures No# live lectures No#
{{ $student->student_id }} {{ ($student->name != strip_tags($student->name))? 'invalid name' : $student->name }} {{ $student->email }} {{ $student->phone }} {{ $student->parent_phone }} {{ $student->government->name ?? '' }} {{ $student->lectures()->count() }} {{ $student->liveLecturesCount() }}
Showing {{ $data->currentPage() == 1 ? '1' : $data->perPage() * ($data->currentPage() - 1) + 1 }} to {{ $data->currentPage() == $data->lastPage() ? $data->total() : $data->currentPage() * $data->perPage() }} of {{ $data->total() }} entries
{{ $data->links( "pagination::bootstrap-4") }}
@endsection @section('script') {{-- --}} @endsection