@extends('layouts.master') @section('page_title', 'Tablet Settings') @section('content')
{{ Form::page_header("Tablet Settings", "paper_stack") }} {{ Form::open(['url' => action('CollectController@store_collect_settings', compact('business')), 'autocomplete' => 'off','files' => true, 'onsubmit_function'=>"do_form_submit"]) }}
@include('collect._collect_promo', [ 'title' => 'Rewards Program', 'create_title'=> 'CREATE REWARD PROMO', 'type' => 'reward', 'collect_pk' => $collect->rewards_promo]) {{ Form::separator_row('grey-divider thin-divider') }} @include('collect._collect_promo', [ 'title' => 'Email Newsletter Signup Promotion', 'create_title'=> 'CREATE EMAIL SIGNUP PROMO', 'type' => 'email', 'collect_pk' => $collect->email_signup_promo]) {{ Form::separator_row('grey-divider thin-divider') }} @include('collect._collect_promo', [ 'title' => '"Fish Bowl" Promotion', 'create_title'=> 'CREATE FISHBOWL PROMO', 'type' => 'fishbowl', 'collect_pk' => $collect->fishbowl_promo]) {{ Form::separator_row('grey-divider thin-divider') }}
{{ Form::label_title("Image") }}
@if($collect->background_image != null)
{{ HTML::image($collect->background_image,$collect->background_image,['height'=>'427','width'=>'200px']) }}
{{ Form::button_tiny('Change Image', null, 'change_image') }}
{{-- @if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif --}}
@else {{ Form::label_ex("Background Image", \App\Helpers\FormComponentHelper::SIZE_SMALL, 'background_image', 2) }}
{{ Form::file('background_image', ['id' => 'image', 'class' => 'source-image']) }}
@endif
{{ Form::separator_row('grey-divider thin-divider') }}
{{ Form::label_title("Settings") }}
{{ Form::row_text_inline('primary_color', "Primary Color", (!$collect->primary_color == null) ? $collect->primary_color : '#333333', 2, 4) }} {{ Form::row_percent_inline('primary_color_opacity', "Primary Color Opacity", (!$collect->primary_color_opacity == null) ? $collect->primary_color_opacity : '50', 2, 2) }} {{ Form::row_text_inline('text_color', "Text Color", (!$collect->text_color == null) ? $collect->text_color : '#FFFFFF', 2, 4) }} {{ Form::row_percent_inline('text_color_opacity', "Text Color Opacity", (!$collect->text_color_opacity == null) ? $collect->text_color_opacity : '100', 2, 2) }} {{ Form::row_text_inline('background_color','Background Color',(!$collect->background_color == null) ? $collect->background_color : '#333333', 2, 4) }} {{ Form::row_select_inline('font','Font',(!$collect->font == null) ? $collect->font : 'roboto',\App\Models\Collect::$font_map, 2, 6) }} {{ Form::row_select_inline('button_style','Button Style',(!$collect->button_style == null) ? $collect->button_style : 'outline',\App\Models\Collect::$button_style_map, 2, 6) }} {{ Form::row_select_inline('punches','Punches',(!$collect->punches == null) ? $collect->punches : 10,\App\Models\Collect::$punch_map, 2, 3) }} {{ Form::row_text_inline('button_background','Button Background',(!$collect->button_background == null) ? $collect->button_background : '#FFFFFF', 2,4) }} {{ Form::row_text_inline('button_font_color','Button Font Color',(!$collect->button_font_color == null) ? $collect->button_font_color : '#FFFFFF', 2,4) }} {{ Form::row_text_inline('button_text','Button Text',(!$collect->button_text == null) ? $collect->button_text : 'Join our mailing list and get this offer.', 2,8) }} {{ Form::row_text_inline('text_deal_text','Text Deal Text',(!$collect->text_deal_text == null) ? $collect->text_deal_text : 'Send me text deals!', 2,8) }} {{ Form::row_checkbox_inline('collect_cellphone','Collect cell phone numbers',($collect->collect_cellphone == 1) ? true : false, 2, 8) }} {{ Form::row_checkbox_inline('send_special_deals','Send special deals just to cell numbers',($collect->send_special_deals == 1) ? true : false, 2, 8) }} {{ Form::row_checkbox_inline('ready_to_upgrade','Ready to upgrade',($collect->ready_to_upgrade == 1) ? true : false, 2, 8) }} {{ Form::separator_row_bottom('grey-divider') }}
{{ Form::button_save('Update') }}
{{ Form::close() }}
@include('shared._collect_promo_modal') @endsection @section('page_script') @include('shared_script._collect_promo_script') @endsection @section('page_style') @endsection