@extends('back/layouts.app')
@section('back_css')
| # | Name | Phone | Courses | not Subscriptions | count Courses | count not Subscriptions | count tested | count not tested | join at | Status | @lang('core.actions') | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $row->id }} |
|
{{ $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
|