ok
Direktori : /home2/selectio/www/billingsoftwarenew/core/resources/views/admin/setting/ |
Current File : /home2/selectio/www/billingsoftwarenew/core/resources/views/admin/setting/custom_css.blade.php |
@extends('admin.layouts.app') @section('panel') <div class="row gy-4"> <div class="col-md-12"> <div class="card bl--5-primary"> <div class="card-body"> <p class="text--primary">@lang('From this page, you can add/update CSS for the user interface. Changing content on this page required programming knowledge.')</p> <p class="text--warning">@lang('Please do not change/edit/add anything without having proper knowledge of it. The website may misbehave due to any mistake you have made.')</p> </div> </div> </div> <div class="col-lg-12"> <div class="card"> <div class="card-header"> <h6>@lang('Write Custom CSS')</h6> </div> <form action="" method="post"> @csrf <div class="card-body"> <div class="form-group custom-css"> <textarea class="form-control customCss" rows="10" name="css">{{ $file_content }}</textarea> </div> </div> <div class="card-footer"> <button type="submit" class="btn btn--primary w-100 h-45">@lang('Submit')</button> </div> </form> </div> </div> </div> @endsection @push('style') <style> .CodeMirror { border-top: 1px solid #eee; border-bottom: 1px solid #eee; line-height: 1.3; height: 500px; } .CodeMirror-linenumbers { padding: 0 8px; } .custom-css p, .custom-css li, .custom-css span { color: white; } .cm-s-monokai span.cm-tag { margin-left: 15px; } </style> @endpush @push('style-lib') <link rel="stylesheet" href="{{ asset('assets/admin/css/codemirror.min.css') }}"> <link rel="stylesheet" href="{{ asset('assets/admin/css/monokai.min.css') }}"> @endpush @push('script-lib') <script src="{{ asset('assets/admin/js/codemirror.min.js') }}"></script> <script src="{{ asset('assets/admin/js/css.min.js') }}"></script> <script src="{{ asset('assets/admin/js/sublime.min.js') }}"></script> @endpush @push('script') <script> "use strict"; var editor = CodeMirror.fromTextArea(document.getElementsByClassName("customCss")[0], { lineNumbers: true, mode: "text/css", theme: "monokai", keyMap: "sublime", autoCloseBrackets: true, matchBrackets: true, showCursorWhenSelecting: true, matchBrackets: true }); </script> @endpush