%PDF- %PDF-
Direktori : /home/silvzytp/crm-dub-code/resources/views/backend/settings/ |
Current File : //home/silvzytp/crm-dub-code/resources/views/backend/settings/form.blade.php |
@extends('layouts.backend') @section('title', $siteTitle) @push('styles') <style> input#sidebar_f_size_value, input#body_f_size_value { width: 50px; border: 1px solid #ddd; border-radius: 3px; padding: 5px; text-align: center; margin-left: 5px; font-weight: 600 } input:focus{ outline: none; } </style> @endpush @section('content') <div class="row"> <div class="col-12 col-md-8 mx-auto"> <div class="card"> <div class="card-header"> <h4 class="mb-0 card-title">{{ $siteTitle }}</h4> </div> <div class="card-body"> <form action="{{ route('super.settings.update-or-store') }}" method="POST" enctype="multipart/form-data"> @csrf <x-form.vertical.inputbox name="title" labelName="Title" value="{{ config('settings.site_title') ?? old('title') }}" labelClass="col-md-2" col="col-md-10" placeholder="Enter site title here..."/> <x-form.vertical.inputbox text="Logo mimes: jpg,png dimensions: 180*50" type="file" name="logo" labelName="Logo" labelClass="col-md-2" col="col-md-10"/> <x-form.vertical.inputbox type="file" text="Favicon mimes: png dimensions: 16*16" name="favicon" labelName="Favicon" labelClass="col-md-2" col="col-md-10"/> <div class="form-group row"> <label for="sidebar_f_size" class="col-4 col-form-label col-md-2">Sidebar Font</label> <div class="col-8 col-md-10"> <div class="d-flex align-items-center"> <input type="range" name="sidebar_f_size" value="{{ config('settings.sidebar_f_size') ?? '13' }}" min="10" max="30" class="form-control form-control-sm" id="sidebar_f_size" autocomplete="off" > <input type="text" id="sidebar_f_size_value" readonly disabled value="{{ config('settings.sidebar_f_size') ?? '13' }}"> </div> </div> </div> <div class="form-group row"> <label for="body_f_size" class="col-4 col-form-label col-md-2">Body Font</label> <div class="col-8 col-md-10"> <div class="d-flex align-items-center"> <input type="range" name="body_f_size" value="{{ config('settings.body_f_size') ?? '13' }}" min="10" max="30" class="form-control form-control-sm" id="body_f_size" autocomplete="off" > <input type="text" id="body_f_size_value" readonly disabled value="{{ config('settings.body_f_size') ?? '13' }}"> </div> </div> </div> <x-form.vertical.inputbox name="hotline" labelName="Hotline" value="{{ config('settings.hotline') ?? old('hotline') }}" labelClass="col-md-2" col="col-md-10" placeholder="Enter hotline number..."/> <div class="form-group row"> <label for="" class="col-md-2 col-4">Copyright</label> <div class="col-8 col-md-10"> <textarea name="copyright" class="form-control" rows="4" placeholder="Enter copyright..">{{ config('settings.copyright') ?? old('copyright') }}</textarea> </div> </div> <div class="text-right"> <button type="submit" class="btn btn-sm btn-primary">Save Changes</button> </div> </form> </div> </div> </div> </div> @endsection @push('scripts') <script> $(document).on('input','input[name="sidebar_f_size"]', function(){ $('input#sidebar_f_size_value').val($(this).val()); }) $(document).on('input','input[name="body_f_size"]', function(){ $('input#body_f_size_value').val($(this).val()); }) </script> @endpush