@extends("app") @section('head_title', trans('addpost.create', ['type' => trans('index.' . $post_type)]) . ' | ' . get_buzzy_config('sitename')) @section('body_class', 'mode-add') @section('header') @include('editor._header-scripts') @endsection @section('content')
{!! Form::open(['action' => 'PostEditorController@createPost', 'method' => 'POST', 'onsubmit' => 'return false', ' ' => 'multipart/form-data']) !!}
{{ csrf_field() }}
@php($trans_type = '') @foreach (get_post_types(false) as $type => $args) {{ trans($args['trans']) }} @php($post_type == $type ? ($trans_type = $args['trans']) : '') @endforeach
@include('editor._slug-wrap') {{ trans('addpost.title') }} & {{ trans('addpost.categories') }}
{!! Form::text('headline', null, ['class' => 'cd-input title-input', 'style' => 'margin-bottom:10px', 'placeholder' => trans('addpost.titleplace')]) !!} @include('editor._category-select')
{{ trans('addpost.desc') }}
{!! Form::textarea('description', null, ['class' => 'cd-input ', 'style' => 'height:80px', 'placeholder' => trans('addpost.descplace')]) !!}
@if ($post_type == 'list')
{{ trans('addpost.listtype') }}
@endif @if ($post_type == 'quiz')
{{ trans('buzzyquiz.quiztype') }}
@if (!isset($post) && (Auth::user()->usertype == 'Admin' || Auth::user()->usertype == 'Staff'))
{{ trans('addpost.get_quiz_from_url') }}
@endif @if (Request::query('qtype') !== 'trivia')
{{ trans('buzzyquiz.quizresults') }}
@include('editor._forms.quiz.result')
{{ trans('addpost.add', ['type' => trans('buzzyquiz.result')]) }}



@endif @endif
{{ trans('addpost.entries', ['type' => trans($trans_type)]) }}
@if ($post_type == 'video') @include('editor._forms.video') @elseif($post_type=='list') @include('editor._forms.image') @elseif($post_type=='quiz') @include('editor._forms.quiz.question') @elseif($post_type=='poll') @include('editor._forms.poll.question') @else @include('editor._forms.text') @endif
@if ($post_type == 'quiz') {{ trans('addpost.add', ['type' => trans('buzzyquiz.question')]) }}



@endif
@unless($post_type == 'quiz')
@include('editor._add-entry')
@endunless
@include('editor._sidebar')
{!! Form::close() !!}
@endsection @section('footer') @include('editor._footer-scripts') @endsection