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

{{ __('Add Module') }}

@csrf
@include('commons/input', [ 'title' => 'Name', 'type' => 'text', 'name' => 'name', 'value' => old('name'), 'required' => true, 'errors' => $errors, 'maxlength' => 32 ])
@include('commons/textarea', [ 'title' => 'Description', 'name' => 'desc', 'value' => old('desc'), 'required' => false, 'errors' => $errors ])
@include('commons/textarea', [ 'title' => 'Georgia Standards of Excellence', 'name' => 'short', 'value' => old('short'), 'required' => false, 'errors' => $errors ])
@include('commons/input', [ 'title' => 'Funding Partner', 'type' => 'text', 'name' => 'partner', 'value' => old('partner'), 'required' => false, 'errors' => $errors ])
@if (AuthHelper::is_admin())
@if ($errors->has('type')) {{ $errors->first('type') }} @else
{{ __('The type field is required.') }}
@endif
@endif
@include('modules/subtopics')
@if (AuthHelper::is_admin()) @include('modules/formats') @else
{{ __('Formats') }}*
360 VR
@endif
@include('modules/background')
@include('modules/videos', ['id' => 1])
{{ __('Format:') }} {{ __('png, jpg, jpeg') }}
{{ __('Dimensions:') }} 220x156
@if ($errors->has('icon')) {{ $errors->first('icon') }} @else
{{ __('The icon image is required.') }}
@endif
{{ __('Format:') }} {{ __('png, jpg, jpeg') }}
{{ __('Dimensions:') }} 1024x725
@if ($errors->has('iconlarge')) {{ $errors->first('iconlarge') }} @else
{{ __('The icon large is required.') }}
@endif
@endsection