@extends('Frontend.Layouts.modal') @section('title') {{ trans('global.add') }} @stop @section('body') {!!Form::open(['route' => 'admin.popups.store', 'method' => 'POST'])!!} {!!Form::hidden('id')!!}
{!!Form::checkbox('active', 1)!!} {!!Form::label('active', trans('validation.attributes.active'))!!}
{!!Form::label('position', trans('validation.attributes.position').':')!!} {!!Form::select('position', $positions, null, ['class' => 'form-control'])!!}
{!!Form::label('title', trans('validation.attributes.title').':')!!} {!!Form::text('title', null, ['class' => 'form-control'])!!}
{!!Form::label('content', trans('admin.content').':')!!} {!!Form::textarea('content', null, ['class' => 'form-control'])!!} {{trans('admin.shortcodes')}}: @foreach($item->getPossibleShortcodes() as $shortcode) {{$shortcode}} @endforeach
{!!Form::label('show_every_days', trans('admin.show_every_days').':')!!} {!!Form::text('show_every_days', null, ['class' => 'form-control'])!!}
{!!Form::label('conditions', trans('front.conditions').':')!!} {!! $item->getForm() !!}
{!! Form::close() !!} @stop