@extends('layouts.master') @section('page_title', $page_title) @section('content')
{{ Form::page_header($page_title, "diamond") }} @if ($promo->promo) {{ Form::open(['url' => action('PromoController@update_value', compact('promo'))]) }} @else {{ Form::open(['url' => action('PromoController@store_value', compact('business'))]) }} @endif
{{ Form::hidden('business', $business->business) }} @if ($promo->promo)
{{ Form::on_off_ex('Status', 'active', $promo->active, 'active_switch', null, \App\Helpers\FormComponentHelper::SIZE_EXLARGE, false) }}
@else {{ Form::hidden('active', $promo->active) }}
{{ Form::label_title("Status") }}
{{ Form::label_grey($promo->active_text) }}
@endif {{ Form::separator_row('grey-divider thin-divider') }} @include('shared._expiration', ['item' => $promo, 'is_edit' => true])
{{ Form::label_title("Name") }}
{{ Form::text_ex('promo_name', $promo->promo_name ) }}
{{ Form::separator_row_empty() }}
{{ Form::label_title("Email Headline") }}
{{ Form::text_ex('offer', $promo->offer ) }}
{{ Form::separator_row_empty() }}
{{ Form::label_title("Email Body") }}
{{ Form::textarea_ex('contextual_line', $promo->contextual_line ) }}
{{ Form::separator_row_empty() }}
{{ Form::label_title("Terms and Conditions") }}
{{ Form::textarea_ex('terms', $promo->terms ) }}
{{ Form::separator_row_empty() }}
{{ Form::button_save() }} {{ Form::button_cancel_trackback(null, 'Cancel') }}
{{ Form::close() }} @endsection @section('page_script') @include('shared_script._expiration_shared_script') @endsection @section('page_style') @include('shared_style._expiration_style') @endsection