@extends('back/layouts.app') @section('content')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

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

@if(session()->has('success'))
{{ session()->get('success') }}
@endif @include('back.includes.breadcrumb',['routes' => [ ['slug' => route('dashboard.courses.index',$site->alias),'name' => $site->name], ['name' => $course->name.' | '.__('meta.title.templates')]] ])
@foreach ($languages as $locale => $name)
{!! Form::model($course,['method' => 'PUT','route' => ['dashboard.courses.template.update',$site->alias,$course_id],'class'=>'form-horizontal form-label-left']) !!}
@if ($errors->has('subject') && Request::input('tab') == 'lang-'.$locale) {{ $errors->first('subject') }} @endif
@if ($errors->has('content') && Request::input('tab') == 'lang-'.$locale) {{ $errors->first('content') }} @endif
@endforeach
@stop