 @extends('layouts.backendTemplate')

 @section('content')

     <!--begin::Main-->
     <div class="app-main flex-column flex-row-fluid" id="kt_app_main">

         <div class="d-flex flex-column flex-column-fluid">


             @include('uc.admin.breadcrumb', [
                 'title' => 'Document Create Folder',
                 'pageName' => 'Create folder',
                 'pageParent' => 'Document Management',
                 'pageParentLink' => url('document'),
             ])

             <div id="kt_app_content" class="app-content flex-column-fluid">
                 <div id="kt_app_content_container" class="app-container container-xxl">

                     <form id="frmAdd" action="{{ url('document/insert-folder') }}"
                         class="form d-flex flex-column flex-lg-row" method="post" enctype="multipart/form-data">

                         <input type="hidden" name="_method" value="POST">
                         <input type="hidden" name="_token" value="{{ csrf_token() }}">


                         <div class="d-flex flex-column flex-row-fluid gap-7 gap-lg-10">

                             <div class="card card-flush py-4">


                                 @if (Session::has('messageSuccess'))
                                     <div class="card-body">
                                         @include('uc/messageSuccess')
                                     </div>
                                 @endif

                                 @if (Session::has('messageFail'))
                                     <div class="card-body">
                                         @include('uc/messageFail')
                                     </div>
                                 @endif

                                 <div class="card-header">
                                     <div class="card-title">
                                         <h2>Overview</h2>
                                     </div>
                                 </div>

                                 <div class="card-body pt-0">

                                     <div class="mb-10 fv-row">
                                         <label class="required form-label">Name</label>
                                         <input type="text" name="name" class="form-control mb-2 col-6"
                                             value="{{ old('name') }}" />
                                     </div>


                                 </div>

                             </div>

                             <div class="d-flex justify-content-end">

                                 <a href="{{ url('document') }}" id="kt_ecommerce_add_product_cancel"
                                     class="btn btn-light me-5">Cancel</a>

                                 <button type="submit" class="btn btn-primary">
                                     <span class="indicator-label">Save</span>
                                 </button>

                             </div>

                         </div>


                     </form>
                 </div>

             </div>

         </div>

     </div>


 @stop


 @section('script')

     <script></script>

 @endsection
