@extends('layouts.master') @section('page_title',"Article") @section('content')
{{ Form::page_header("Article", "paper_stack") }} @if ($content_library->content_library) {{ Form::open(['url'=>action('ContentLibraryController@update', compact('content_library'))]) }} @else {{ Form::open(['url'=>action('ContentLibraryController@store')]) }} @endif {{ Form::hidden('content_library', $content_library->content_library) }} {{ Form::hidden('status', $content_library->status) }}
@include('super_admin.content_library._article_info', ['data' => $content_library])
{{ Form::label_title("Article Type") }}
{{ Form::label_grey($content_library->article_type_label) }}
{{ Form::separator_row('grey-divider thin-divider') }}
{{ Form::label_title("Category") }}
{{ Form::label_grey($content_library->industry_name_label) }}
{{ Form::label_title("Subject Line") }}
{{ Form::label_grey($content_library->subject_line) }}
{{ Form::label_title("Directions") }}
{{ Form::textarea_styled('directions', $content_library->directions, 'cla-textarea', true) }}
{{ Form::label_title("Key Points") }}
{{ Form::textarea_styled('key_points', $content_library->key_points, 'cla-textarea', true) }}
{{ Form::label_title("Article Body") }}
{{ Form::tinymce('article_body', $content_library->article_body, 'article_body') }}
{{ Form::label_title("Excerpt") }}
{{ Form::textarea_styled('excerpt', $content_library->excerpt, 'cla-textarea', true) }}
{{ Form::label_title("Call to Action") }}
{{ Form::textarea_styled('call_to_action', $content_library->call_to_action, 'cla-textarea', true) }}
{{ Form::label_title("Pull Quote") }}
{{ Form::label_grey($content_library->pull_quote) }}
@if(isset($associated_business))
{{ Form::label_title("Businesses Used") }}
@foreach($associated_business as $k => $linked_business)
{{ Form::label_grey($linked_business) }}
@endforeach {{ Form::separator_row_empty() }} @endif
{{ Form::label_title("Signature Block") }}
@if ($content_library->can_accept()) {{ Form::button_ex('Accept', "accept_article('". action('ContentLibraryController@accept_article', compact('content_library')) ."');", 'accept') }} @endif @if ($content_library->can_edit()) {{ Form::button_link('Edit', action('ContentLibraryController@edit', compact('content_library')), 'edit') }} @endif {{ Form::button_link('Close', action('ContentLibraryController@content_browse'), 'close') }}
{{ Form::close() }} @endsection @section('page_style') @endsection @section('page_script') @include('shared_script._tinymce_init') @endsection