@extends('layouts.master') @section('title', __('Chat Settings')) @section('breadcum') @endsection @section('maincontent')
{{__('Chat Settings')}}
{!! Form::model($chat,['method'=>'POST','action'=>'ChatSettingController@update']) !!} @if (isset($chat) && count($chat) > 0) @foreach ($chat as $element)

{{__('Chat Settings For')}} {{ucfirst($element->key)}}

{!! Form::hidden('ids['.$element->id.']', $element->id) !!}
@if($element->key != 'whatsapp')
{!! Form::label('script',__('Script') )!!} {!! Form::textarea('script['.$element->id.']', $element->script, ['class' => 'form-control','rows'=>'3']) !!} {{ $errors->first('script') }}
@endif @if($element->key != 'whatsapp')
enable_messanger == 1 ? 'checked' :'' }} class='custom_toggle' >
@endif @if($element->key != 'messanger')
{!! Form::label('mobile', __('WhatsappNo')) !!} {!! Form::text('mobile['.$element->id.']', $element->mobile, [ 'class' => 'form-control']) !!} {{ $errors->first('mobile') }}
@endif @if($element->key != 'messanger')
{!! Form::label('text',__('WelcomeText')) !!} {!! Form::text('text['.$element->id.']', $element->text, ['class' => 'form-control']) !!} {{ $errors->first('text') }}
@endif @if($element->key != 'messanger')
{!! Form::label('header',__('Chat Header')) !!} {!! Form::text('header['.$element->id.']', $element->header, ['class' => 'form-control']) !!} {{ $errors->first('header') }}
@endif @if($element->key != 'messanger')
{!! Form::label('size',__('IconSize')) !!} {!! Form::number('size['.$element->id.']', $element->size, ['class' => 'form-control','min'=>'30']) !!} {{ $errors->first('size') }}
@endif @if($element->key != 'messanger')
{!! Form::label('color',__('HeaderColor')) !!} {!! Form::color('color['.$element->id.']', $element->color, ['class' => 'form-control']) !!} {{ $errors->first('color') }}
@endif @if($element->key != 'messanger')
{{__('Enable OFF/ON')}}
enable_whatsapp == 1 ? 'checked' :'' }} class='custom_toggle' >
{{ $errors->first('enable_whatsapp') }}
@endif @if($element->key != 'messanger')
{{__('Position OFF/ON')}}
position == 'left' ?'checked' :'' }} class='custom_toggle' >
{{ $errors->first('position') }}
@endif
@endforeach @endif
{!! Form::close() !!}
@endsection @section('script') @endsection