@extends('backEnd.master') @section('title') @lang('front_settings.course') @endsection @push('css') @endpush @section('mainContent')
@if(isset($add_course)) @if(userPermission("store_course")) @endif @endif

@if(isset($add_course)) @lang('front_settings.edit_course') @else @lang('front_settings.add_course') @endif

@if(isset($add_course)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'update_course', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @else @if(userPermission("store_course")) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'store_course', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif @endif
@if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif
image) :trans('common.image') .' *' :trans('common.image') . '(' .trans('common.min')." 1420*450 PX)" }}" readonly > @if ($errors->has('image')) {{ $errors->first('image') }} @endif
@if($errors->has('overview')) {{ $errors->first('overview') }} @endif
@if($errors->has('outline')) {{ $errors->first('outline') }} @endif
@if($errors->has('prerequisites')) {{ $errors->first('prerequisites') }} @endif
@if($errors->has('resources')) {{ $errors->first('resources') }} @endif
@if($errors->has('stats')) {{ $errors->first('stats') }} @endif
@php $tooltip = ""; if(userPermission("store_course")){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
@if(Illuminate\Support\Facades\Config::get('app.app_sync')) @else @endif
{{ Form::close() }}

@lang('front_settings.course_list')

@if(isset($course)) @foreach($course as $value) @endforeach @endif
@lang('common.title') @lang('front_settings.overview') @lang('common.image') @lang('common.action')
{{@$value->title}} {!! substr($value->overview, 0, 50) !!}
@endsection @include('backEnd.partials.data_table_js') @push('script') @endpush