Server IP : 66.29.132.124 / Your IP : 3.144.227.3 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/modules/Template/Views/admin/ |
Upload File : |
@extends('admin.layouts.app') @section('content') <div class="container"> <div class="d-flex justify-content-between mb20"> <h1 class="title-bar">{{__('Import Template')}}</h1> <div class="title-actions"> <a href="{{route('template.admin.index')}}" class="btn btn-primary">{{__('All Templates')}}</a> </div> </div> @include('admin.message') <div class="filter-div d-flex justify-content-between "> <div class="col-left"> <form method="post" action="{{route('template.admin.importTemplate')}}" class="" enctype="multipart/form-data"> {{csrf_field()}} <div class="custom-file mb-3"> <input type="file" name="file" class="custom-file-input" id="customFile" accept="application/json" required> <label class="custom-file-label" for="customFile">{{__("Choose file")}}</label> </div> <button class="btn-info btn btn-icon dungdt-apply-form-btn" type="submit">{{__('Import')}}</button> </form> </div> </div> </div> @endsection @section('script.body') <script> $('#customFile').on('change',function(){ //get the file name var fileName = $(this).val(); //replace the "Choose a file" label $(this).next('.custom-file-label').html(fileName); }) </script> @endsection