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

Edit Module ({{ $module->name }})

@csrf
@include('commons/input', [ 'title' => 'Name', 'type' => 'text', 'name' => 'name', 'value' => $module->name, 'required' => true, 'errors' => $errors, 'maxlength' => 32 ])
@include('commons/textarea', [ 'title' => 'Description', 'name' => 'desc', 'value' => $module->description, 'required' => false, 'errors' => $errors ])
@include('commons/textarea', [ 'title' => 'Georgia Standards of Excellence', 'name' => 'short', 'value' => $module->short, 'required' => false, 'errors' => $errors ])
@include('commons/input', [ 'title' => 'Funding Partner', 'type' => 'text', 'name' => 'partner', 'value' => $module->partner, 'required' => false, 'errors' => $errors ])
@include('modules/subtopics')
{{--
@include('modules/grades')
--}} {{--
@include('modules/themes')
--}}
@if (AuthHelper::is_admin()) @include('modules/formats') @else
{{ __('Formats') }}*
@foreach ($module->formats as $format) {{ $format->name }} @endforeach
@endif
@include('modules/background')
@if ($module->videos->count() > 0) @foreach ($module->videos as $video) @include('modules/videos', ['id' => $x, 'video' => $video]) @endforeach @else @include('modules/videos', ['id' => 1]) @endif videos()->count() == 0) value="1" @else value="0" @endif>
{{ __('Format:') }} {{ __('png, jpg, jpeg') }}
{{ __('Dimensions:') }} 220x156
@if ($errors->has('icon')) {{ $errors->first('icon') }} @endif
{{ __('Format:') }} {{ __('png, jpg, jpeg') }}
{{ __('Dimensions:') }} 1024x725
@if ($errors->has('iconlarge')) {{ $errors->first('iconlarge') }} @endif

featured ? ' checked="checked"' : '' }}>