@extends('socialite::layouts.admin') @section('content') @include('flash::message')

{{ $mode.' '.trans('socialite::admin.custom_page') }}

@if($mode =="create")
@else @endif {{ csrf_field() }}
{{ Form::label('title', trans('socialite::admin.page_title')) }} @if($mode == "create") {{ Form::text('title', NULL , array('class' => 'form-control', 'placeholder' => trans('socialite::admin.page_title_placeholder') )) }} @else {{ Form::text('title', $staticPage->title , array('class' => 'form-control', 'placeholder' => trans('socialite::admin.page_title_placeholder') )) }} @endif @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{{ Form::label('description', trans('socialite::admin.page_description')) }} @if($mode == "create") {{ Form::textarea('description', NULL , array('class' => 'form-control mytextarea', 'placeholder' => trans('socialite::messages.create_page_placeholder') )) }} @else {{ Form::textarea('description', $staticPage->description , array('class' => 'form-control mytextarea', 'placeholder' => trans('socialite::messages.create_page_placeholder') )) }} @endif @if ($errors->has('description')) {{ $errors->first('description') }} @endif
{{ Form::label('active', trans('socialite::common.status')) }} @if($mode == "create") {{ Form::select('active', array(1 => trans('socialite::admin.active'), 0 => trans('socialite::admin.inactive')), NULL, array('class' => 'form-control')) }} @else {{ Form::select('active', array(1 => trans('socialite::admin.active'), 0 => trans('socialite::admin.inactive')), $staticPage->active , array('class' => 'form-control')) }} @endif
{{ Form::submit(trans('socialite::common.save_changes'), ['class' => 'btn btn-success']) }}
@endsection