@extends('layouts.admin') @section('content')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if (session('success'))
{{ session('success') }}
@elseif (session('warning'))
{{ session('warning') }}
@endif

{{ __('PWA Settings') }}

{{--
--}} @csrf
{{ __('Progressive Web App Requirements') }}
  • HTTPS {{ __('HTTPS') }} {{ __('must required in your domain (for enable contact your host provider for SSL configuration).') }}
  • {{ __('Icons and splash screens') }} {{ __('required and to be updated in Icon Settings') }}
  • {{ __('PWA is lite app, When you open it in Mobile Browser its ask for add app in mobile. Its Not APK. You can not submit to Play Store.') }}
  • {{ __('Splash Screen works only on Apple Device.') }}
{!! Form::open(['method' => 'POST', 'route' => ['pwa.store'], 'enctype' => 'multipart/form-data']) !!}
{!! Form::label('heading', 'APP NAME') !!} {!! Form::text('APP_NAME', old('APP_NAME', $appname), ['class' => 'form-control']) !!}
{!! Form::label('heading', 'APP URL') !!} {!! Form::url('APP_URL', old('APP_URL', $appurl), ['class' => 'form-control']) !!}
{!! Form::label('image', 'PWA Icon') !!} {!! Form::file('icon_512', ['accept' => 'image/*'], ['onchange' => 'readURL(this)']) !!}
{{ __('Pwa Icon') }}
{!! Form::label('image', 'PWA Splash Screen') !!} {!! Form::file('splash_2048', ['accept' => 'image/*'], ['onchange' => 'readURL(this)']) !!}
{{ __('Pwa Splash Screen') }}
{!! Form::label('PWA_THEME_COLOR', 'Theme Color for Header') !!} {!! Form::input('color', 'PWA_THEME_COLOR', $pwathemecolor, ['class' => 'form-control', 'id' => 'PWA_THEME_COLOR']) !!}
{!! Form::label('PWA_BG_COLOR', 'Background Color') !!} {!! Form::input('color', 'PWA_BG_COLOR', $pwabgcolor, ['class' => 'form-control', 'id' => 'PWA_BG_COLOR']) !!}
{!! Form::checkbox('PWA_ENABLE', 1, old('PWA_ENABLE', isset($pwaenable) ? $pwaenable : null), ['id' => 'switch1', 'class' => 'custom-control-input']) !!}
{!! Form::submit('Submit', ['class' => 'btn btn-wave']) !!}
{!! Form::close() !!}
@endsection @section('script') @endsection