@extends('user::layouts.master') @section('content')

Manage General Setting

@if(isset($_REQUEST['login']) && $_REQUEST['login'] =1 )
Please change your account password to continue using secure site.
@endif

{{ !empty($settings) ? 'Edit General Setting' : 'Add General Setting' }}

Back
@if(isset($settings)) {{ Form::model($settings, ['route' => ['setting.general.update', $settings->id], 'method' => 'patch']) }} @else {{ Form::open(['route' => 'setting.general.store']) }} @endif
{{ Form::hidden('manager', 'general') }}
{{ Form::text('title', old('title'), ['class' => 'form-control','placeholder' => 'Title']) }} @if($errors->has('title')) {{ $errors->first('title') }} @endif
{{ Form::text('slug', old('slug'), ['class' => 'form-control','placeholder' => 'Constant/Slug' ,'readonly' => isset($settings) ? true : false]) }}

No space, separate each word with underscore. (if you want auto generated then please leave blank)

{{ Form::textarea('config_value', old('config_value'), ['class' => 'form-control','placeholder' => 'Config Value', 'rows' => 5]) }} @if($errors->has('config_value')) {{ $errors->first('config_value') }} @endif
{{ Form::close() }}

Important Rules

For each config settings that would be added to the system, make sure it has these constant/slug:

  • SITE_TITLE - Will be replaced by website title from the admin settings.
  • ADMIN_EMAIL - Will be replaced by admin email from the admin settings.
  • FROM_EMAIL - Will be replaced by email from the admin settings.
  • WEBSITE_OWNER - Will be replaced by Owner name from admin settings.
  • TELEPHONE - Will be replaced by phone number from admin settings.
  • ADMIN_PAGE_LIMIT - Will be replaced by admin page limit from admin settings.
  • FRONT_PAGE_LIMIT - Will be replaced by front page limit from admin settings.
  • ADMIN_DATE_FORMAT - Will be replaced by admin date format from admin settings.
  • ADMIN_DATE_TIME_FORMAT - Will be replaced by admin date time format from admin settings.
  • FRONT_DATE_FORMAT - Will be replaced by front date format from admin settings.
  • FRONT_DATE_TIME_FORMAT - Will be replaced by front date time format from admin settings.
  • CONTACT_US_TEXT - Will be replaced by front date time format from admin settings.
  • GOOGLE_MAP_KEY - Will be replaced by front date time format from admin settings.
  • OFFICE_ADDRESS - Will be replaced by front date time format from admin settings.
  • DEVELOPMENT_MODE - Will be replaced by debug mode from admin settings.
@stop