@extends('back/layouts.app') @section('back_css') @endsection @section('content')

@if(session()->has('success'))
{{ session()->get('success') }}
@elseif(session()->has('MasterErorr'))
Failed! {{ session()->get('MasterErorr') }}
@endif @include('back.includes.breadcrumb',['routes' => [ ['name' => __('meta.title.members')], ]])
{{--
@csrf
@csrf
--}}

@php $langs = ''; @endphp @foreach($result as $row) @php $notSubscriptions= DB::table('courses')->whereNULL('deleted_at')->whereNotIn('id',$row->courses->pluck('id'))->select('courses.title')->get(); @endphp @endforeach
# Name Email Phone Courses not Subscriptions count Courses count not Subscriptions count tested count not tested join at Status @lang('core.actions')
{{ $row->id }} {{ $row->name }} {{ $row->email }} {{ $row->phone }} @foreach($row->courses as $memberCourse) {{ $memberCourse->title }} -- @endforeach @foreach($notSubscriptions as $Course) {{ $Course->title }} -- @endforeach {{$row->courses->count()}} {{$notSubscriptions->count()}} {{$row->test_results->unique('course_id')->count()}} @php echo $row->courses->count() - $row->test_results->unique('course_id')->count() ;@endphp {{$row->created_at}} {{ $row->status == 0 ? 'Disabled' : 'Enabled' }} @if ($row->status == 0) {!! Form::model($row, ['method' => 'PUT','route' => ['dashboard.members.status', $row->id,'class'=>'form-horizontal']]) !!} @lang('core.edit') @lang('core.delete') @elseif($row->status == 1) {!! Form::model($row, ['method' => 'PUT','route' => ['dashboard.members.status', $row->id]]) !!} @else @endif edit
{!! $result->links()!!}
@endsection @section('js_pagelevel') @endsection