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

{{ $course->name.' | '.__('meta.title.sender') }}

@lang('core.add')
@if(session()->has('success'))
{{ session()->get('success') }}
@elseif(session()->has('MasterErorr'))
Failed! {{ session()->get('MasterErorr') }}
@endif @include('back.includes.breadcrumb',['routes' => [ ['slug' => route('dashboard.courses.index',$site->alias),'name' => $site->name], ['name' => $course->name.' | '.__('meta.title.sender')]] ])
@foreach($result as $row) @php $langs = ''; foreach ($row->languages as $lang) { $langs .= ''.$languages[$lang].''; } @endphp @endforeach
# Frequency Languages count Status Actions
{{ $row->id }} {{ $row->frequency }} {!! $langs !!} {{ $row->count }} {{ $row->status == 0 ? 'Disabled' : 'Enabled' }} @if ($row->status == 0) {!! Form::model($row, ['method' => 'PUT','route' => ['dashboard.sender.status',$site->alias,$course_id,$row->id,'class'=>'form-horizontal']]) !!} @lang('core.edit') @lang('core.delete') @elseif($row->status == 1) {!! Form::model($row, ['method' => 'PUT','route' => ['dashboard.sender.status',$site->alias,$course_id,$row->id]]) !!} @else @endif

{{ $result->appends([])->links() }}
@stop