BotaxWebshell
Server IP : 68.178.172.28  /  Your IP : 216.73.216.32
Web Server : Apache
System : Linux 28.172.178.68.host.secureserver.net 4.18.0-553.89.1.el8_10.x86_64 #1 SMP Mon Dec 8 03:53:08 EST 2025 x86_64
User : kiskarnal ( 1003)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : ON |  Pkexec : ON
Directory :  /home/kiskarnal/public_html/resources/views/admin/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/kiskarnal/public_html/resources/views/admin/gallery.blade.php
@include('admin.includes.header');
  <main id="main" class="main">

    <div class="pagetitle">
      <h1>Gallery</h1>
      <nav>
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a href="{{url('/')}}">Home</a></li>
          <li class="breadcrumb-item active">Gallery</li>
        </ol>
      </nav>
    </div><!-- End Page Title -->

    <section class="section">

          <div class="card">
            <div class="card-body">
              <h5 class="card-title">Gallery</h5>

              <!-- General Form Elements -->
            <form action="{{url('admin/save-gallery')}}" method="post" enctype="multipart/form-data">
                @csrf
                <input type="hidden" name="edit_id" value="{{isset($gallery) ? $gallery->id : ''}}">
                <input type="hidden" id="catid" value="{{isset($gallery) ? $gallery->category : ''}}">
                <div class="row mb-3">
                  <label for="inputText" class="col-sm-2 col-form-label">Title</label>
                  <div class="col-sm-10">
                    <input type="text" name="title" value="{{isset($gallery) ? $gallery->title : ''}}" class="form-control">
                  </div>
                </div>
                
                 <div class="row mb-3">
                  <label for="inputText" class="col-sm-2 col-form-label">Video Link</label>
                  <div class="col-sm-10">
                    <input type="text" name="video_link" value="{{isset($gallery) ? $gallery->video_link : ''}}" placeholder="FmPC22_Clbs" class="form-control">
                  </div>
                </div>
               
                <div class="row mb-3">
                  <label for="inputDecription" class="col-sm-2 col-form-label">Description</label>
                  <div class="col-sm-10">
                    <input type="text" name="description" value="{{isset($gallery) ? $gallery->description : ''}}" class="form-control">
                  </div>
                </div>
                <div class="row mb-3">
                  <label for="inputNumber" class="col-sm-2 col-form-label">Category</label>
                  <div class="col-sm-10">
                    <select class="form-control" name='category' id="cat">
                    	<option value="" disabled selected>--Select--</option>
                    @foreach($categories as $cat)	
                    	<option value="{{$cat->id}}">{{$cat->name}}</option>
                    @endforeach
                    </select>
                  </div>
                </div>
                <div class="row mb-3">
                  <label for="inputNumber" class="col-sm-2 col-form-label">File Upload</label>
                  <div class="col-sm-10">
                    <input class="form-control" name="image" type="file" id="formFile">
                  </div>
                   @if(isset($gallery))  
                  <img src="{{asset('images/'.$gallery->image)}}" style="height:100px;width:100px;">
                  @endif
                </div>
                
                <div class="row mt-4 mb-3">
                  <div class="col-sm-10 offset-2 text-end">
                    <button type="submit" class="btn btn-primary">Submit Form</button>
                  </div>
                </div>

              </form><!-- End General Form Elements -->

            </div>
          </div>

    </section>

  </main><!-- End #main -->
@include('admin.includes.footer')
<script>
    $(document).ready(function(){
        if($('#catid').val() !=''){
            $('#cat').val($('#catid').val());
        }
    });
</script>
</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit