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

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

@can('admins-create') @endcan
@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.--}} {{--

--}} @foreach($data as $admin) {{----}} @endforeach
{{trans('labels.name')}} {{trans('labels.phone')}} {{trans('labels.email')}} {{trans('labels.role')}} {{trans('labels.action')}}
{{$admin->name}} {{$admin->phone}} {{$admin->email}} {{$admin->students->count()}} {{$admin->roles[0]->name ?? ''}} @can('admins-edit') @endcan @can('admins-delete') @endcan
@endsection @section('script') @endsection