@extends('layouts.master') @section('title', __('General Settings')) @section('breadcum') @endsection @section('maincontent')
@if ($config) {!! Form::model($config, ['method' => 'PATCH', 'action' => ['ConfigController@update', $config->id], 'files' => true]) !!}
{!! Form::label('title', __('Project Title')) !!} {!! Form::text('title', null, ['id' => 'pr', 'onkeyup' => 'sync()', 'class' => 'form-control']) !!} {{ $errors->first('title') }}
{!! Form::label('APP_URL', __('WebsiteURL')) !!} {{ $errors->first('w_name') }}
{!! Form::label('w_email', __('Default Email')) !!} {!! Form::email('w_email', null, ['class' => 'form-control', 'placeholder' => 'eg: foo@bar.com']) !!} {{ $errors->first('w_email') }}
{!! Form::label('currency_code', __('Currency Code')) !!} {!! Form::text('currency_code', null, ['class' => 'form-control']) !!} {{ $errors->first('currency_code') }}
{!! Form::label('currency_symbol', __('Currency Symbol')) !!}
{!! Form::text('currency_symbol', null, ['class' => 'form-control currency-icon-picker']) !!}
{{ $errors->first('currency_symbol') }}
{!! Form::label('invoice_add', __('InvoiceAddress')) !!} {!! Form::text('invoice_add', null, ['class' => 'form-control']) !!} {{ $errors->first('invoice_add') }}
{!! Form::label('logo', __('Project Logo')) !!} -

{{__('Size')}}: 200x63

{{__('Choose A File')}}
{!! Form::label('favicon',__('Project Favicon Icon')) !!} -

{{__('Choose A File')}}
@if($image = @file_get_contents(public_path().'/images/favicon/'.$setting->favicon)) @endif
{!! Form::label('preloader_img',__('Project Proloader Icon')) !!} -

{{__('Choose A File')}}
{!! Form::label('livetvicon', __('Project Live Tv Icon')) !!} -

{{__('Choose A File')}}

{{__('App Settings')}}


{!! Form::checkbox('is_appstore', 1, ($config->is_appstore == '1' ? 1 : 0), ['class' => 'custom_toggle appstore', 'onChange' =>'isappstore()']) !!}

{!! Form::checkbox('is_playstore', 1, ($config->is_playstore == '1' ? 1 : 0), ['class' => 'custom_toggle playstore', 'onChange' =>'isplaystore()']) !!}

{!! Form::checkbox('ip_block', 1, ($button->ip_block == '1' ? 1 : 0), ['class' => 'custom_toggle ip_block', 'onChange' =>'isipblock()']) !!}

{!! Form::checkbox('donation', 1, ($config->donation == '1' ? 1 : 0), ['class' => 'custom_toggle donate', 'onChange' =>'isdonation()']) !!}

{{__('General Settings')}}


{!! Form::checkbox('comming_soon', 1, ($button->comming_soon == '1' ? 1 : 0), ['class' => 'custom_toggle comming_soon', 'onChange' =>'iscommingsoon()']) !!}

{!! Form::checkbox('is_toprated', 1, ($button->is_toprated == '1' ? 1 : 0), ['class' => 'custom_toggle is_toprated', 'onChange' =>'isToprated()']) !!}
{!! Form::text('toprated_count', isset($button->toprated_count) ? $button->toprated_count : NULL , ['class' => 'form-control']) !!}
{{ $errors->first('toprated_count') }}

{!! Form::checkbox('free_sub', 1, ($config->free_sub == '1' ? 1 : 0), ['class' => 'custom_toggle free_sub', 'onChange' =>'isfree()']) !!}
{!! Form::text('free_days', null, ['class' => 'form-control']) !!}
{{ $errors->first('free_days') }}

{{__('Miscellaneous Settings')}}


{!! Form::checkbox('goto', 1, ($button->goto == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('goto') }}
@if(env('MAIL_DRIVER') != NULL && env('MAIL_HOST') != NULL && env('MAIL_PORT'))
wel_eml == 1 ? "checked" : "" }} class='custom_toggle' >
@endif

verify_email == 1 ? "checked" : "" }} class='custom_toggle' >
{{ __('(If you enable it, a welcome email will be sent to users register email id, make sure you updated your mail setting in Site Setting >> Mail Settings before enable it.)') }}

{!! Form::checkbox('two_factor', null, ($button->two_factor == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('two_factor') }}

{!! Form::checkbox('blog', null, ($config->blog == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('blog') }}

{!! Form::checkbox('age_restriction', 1, ($config->age_restriction == '1' ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ __('(Age Restriction will be taken from Maturity Rating in Movies and TVSeries)') }}

{!! Form::checkbox('user_rating', 1, ($config->user_rating == '1' ? 1 : 0), ['class' => 'custom_toggle ']) !!}

{!! Form::checkbox('protip', 1, ($button->protip == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('protip') }}

{!! Form::checkbox('download', 1, ($config->download == '1' ? 1 : 0), ['class' => 'custom_toggle download']) !!}
{{ __('(This option is Available only if you Upload a Video)') }}

{!! Form::checkbox('multiplescreen', 1, ($button->multiplescreen == '1' ? 1 : 0), ['class' => 'custom_toggle download']) !!}

{!! Form::checkbox('aws', null, ($config->aws == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('aws') }}

{!! Form::checkbox('countviews', 1, ($button->countviews == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('countviews') }}

{!! Form::checkbox('remove_thumbnail', null, ($button->remove_thumbnail == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('remove_thumbnail') }}

{!! Form::checkbox('remove_subscription', 1, ($button->remove_subscription == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('remove_subscription') }}
@php $mymenu=App\Menu::first(); @endphp @if(isset($mymenu))
{!! Form::checkbox('remove_landing_page', 1, ($config->remove_landing_page == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
@else
({{__('Remove Landing PageNote')}})
@endif
{{ $errors->first('remove_landing_page') }}

{!! Form::checkbox('remove_ads', 1, ($button->remove_ads == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('remove_ads') }}

{!! Form::checkbox('preloader', 1, ($config->preloader == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('preloader') }}

{!! Form::checkbox('inspect', 1, ($button->inspect == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('inspect') }}

{!! Form::checkbox('reminder_mail', null, ($button->reminder_mail == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('reminder_mail') }}

{!! Form::checkbox('catlog', 1, ($config->catlog == 1 ? 1 : 0), ['class' => 'custom_toggle checkk', 'onChange' =>'withoutlogin()']) !!}
{{ __('(Allow user to Access website without Subscription, but can not Play Video)') }}
{{ $errors->first('catlog') }}

{!! Form::checkbox('withlogin', 1, ($config->withlogin == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ __('(Allow user to Access website without Subscription and Without Login, but can not Play Video)') }}
{{ $errors->first('withlogin') }}

{!! Form::checkbox('uc_browser', 1, ($button->uc_browser == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('uc_browser') }}

{{ $errors->first('APP_DEBUG') }}

{!! Form::checkbox('comments', 1, ($config->comments == '1' ? 1 : 0), ['class' => 'custom_toggle iscomment','onChange' =>'isComment()']) !!}

{!! Form::checkbox('comments_approval', 1, ($config->comments_approval == '1' ? 1 : 0), ['class' => 'custom_toggle ']) !!}

{!! Form::checkbox('rightclick', 1, ($button->rightclick == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('rightclick') }}

{!! Form::checkbox('kids_mode', null, ($button->kids_mode == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('kids_mode') }}

{!! Form::checkbox('movie_request', null, ($button->movie_request == 1 ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('movie_request') }}

{{__('Layout One/Two')}}


{!! Form::checkbox('prime_genre_slider', 1, ($config->prime_genre_slider == '1' ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('prime_genre_slider') }}

{!! Form::checkbox('prime_movie_single', 1, ($config->prime_movie_single == '1' ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('prime_movie_single') }}

{!! Form::checkbox('prime_footer', 1, ($config->prime_footer == '1' ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('prime_footer') }}
{!! Form::close() !!} @endif
@endsection @section('script') @endsection