@extends('admin.layouts.app') @push('libraries_top') @endpush @section('content')

{{ trans('admin/main.instructors') }}

{{ trans('admin/main.total_instructors') }}

{{ $totalInstructors }}

{{ trans('admin/main.organizations_instructors') }}

{{ $totalOrganizationsInstructors }}

{{ trans('admin/main.inactive_instructors') }}

{{ $inactiveInstructors }}

{{ trans('admin/main.ban_instructors') }}

{{ $banInstructors }}
@can('admin_users_export_excel') {{ trans('admin/main.export_xls') }} @endcan
@foreach($users as $user) @endforeach
{{ trans('admin/main.id') }} {{ trans('admin/main.name') }} {{ trans('admin/main.classes_sales') }} {{ trans('admin/main.appointments_sales') }} {{ trans('admin/main.purchased_classes') }} {{ trans('admin/main.purchased_appointments') }} {{ trans('admin/main.wallet_charge') }} {{ trans('admin/main.user_group') }} {{ trans('admin/main.register_date') }} {{ trans('admin/main.status') }} {{ trans('admin/main.actions') }}
{{ $user->id }}
{{ $user->full_name }}
{{ $user->full_name }}
@if($user->mobile)
{{ $user->mobile }}
@endif @if($user->email)
{{ $user->email }}
@endif
{{ $user->classesSalesCount }}
{{ handlePrice($user->classesSalesSum) }}
{{ $user->meetingsSalesCount }}
{{ handlePrice($user->meetingsSalesSum) }}
{{ $user->classesPurchasedsCount }}
{{ handlePrice($user->classesPurchasedsSum) }}
{{ $user->meetingsPurchasedsCount }}
{{ handlePrice($user->meetingsPurchasedsSum) }}
{{ handlePrice($user->getAccountingBalance()) }} {{ !empty($user->userGroup) ? $user->userGroup->group->name : '' }} {{ dateTimeFormat($user->created_at, 'j M Y - H:i') }}
@if($user->ban and !empty($user->ban_end_at) and $user->ban_end_at > time())
{{ trans('admin/main.banned') }}
{{ trans('admin/main.until') }} {{ dateTimeFormat($user->ban_end_at, 'j M Y') }}
@else
{{ trans('admin/main.'.$user->status) }}
({{ trans('admin/main.'.($user->verified ? 'verified' : 'not_verified')) }})
@endif
@can('admin_users_impersonate') @endcan @can('admin_users_edit') @endcan @can('admin_users_delete') @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/users/'.$user->id.'/delete' , 'btnClass' => '', 'deleteConfirmMsg' => trans('update.user_delete_confirm_msg')]) @endcan

{{trans('admin/main.hints')}}

{{ trans('admin/main.instructors_hint_title_1') }}
{{ trans('admin/main.instructors_hint_description_1') }}
{{ trans('admin/main.instructors_hint_title_2') }}
{{ trans('admin/main.instructors_hint_description_2') }}
{{ trans('admin/main.instructors_hint_title_3') }}
{{ trans('admin/main.instructors_hint_description_3') }}
@endsection