BotaxWebshell
Server IP : 68.178.172.28  /  Your IP : 216.73.216.26
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/add-teachers.blade.php
<body>
@include('admin.includes.header');
  <main id="main" class="main">

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

    <section class="section">

          <div class="card">
            <div class="card-body">
              <!-- General Form Elements -->
            <form action="{{url('admin/save-teacher')}}" method="post" enctype="multipart/form-data">
                @csrf
                <input type="hidden" name="edit_id" value="{{isset($teacher) ? $teacher->id : ''}}">
                    <div class="row mb-4 mt-5">
                        <label for="inputText" class="col-sm-2 col-form-label">Teacher Name</label>
                        <div class="col-sm-10">
                            <input type="text" name="name" class="form-control" value="{{isset($teacher) ? $teacher->name : ''}}">
                        </div>
                    </div>
                
                    <div class="row mb-4">
                        <label for="inputText" class="col-sm-2 col-form-label">Teacher Post</label>
                        <div class="col-sm-10">
                            <input type="text" name="post" class="form-control" value="{{isset($teacher) ? $teacher->post : ''}}" placeholder="e.g Grade-1, Grade-2">
                        </div>
                    </div>
               
                    <div class="row mb-4">
                        <label for="inputDecription" class="col-sm-2 col-form-label">Description</label>
                        <div class="col-sm-10">
                            <input type="text" name="description" class="form-control" value="{{isset($teacher) ? $teacher->description : ''}}" placeholder="Introduction Only 25 Words">
                        </div>
                    </div>
                
                <div class="row mb-4">
                  <label for="inputNumber" class="col-sm-2 col-form-label">Category</label>
                  <div class="col-sm-10">
                    <select class="form-control" name='category'>
                    	<option value="" disabled selected>--Select--</option>
                    	<option value="1" <?php if(isset($teacher)){ if($teacher->category == 1){ echo 'selected'; } }?>>PGT</option>
                    	<option value="2" <?php if(isset($teacher)){ if($teacher->category == 2){ echo 'selected'; } }?>>TGT</option>
                    	<option value="3" <?php if(isset($teacher)){ if($teacher->category == 3){ echo 'selected'; } }?>>PRT</option>
                    	<option value="4" <?php if(isset($teacher)){ if($teacher->category == 4){ echo 'selected'; } }?>>DPE</option>
                    	<option value="5" <?php if(isset($teacher)){ if($teacher->category == 5){ echo 'selected'; } }?>>ART & CARFT</option>
                    	<option value="6" <?php if(isset($teacher)){ if($teacher->category == 6){ echo 'selected'; } }?>>Main Faculity</option>
                    </select>
                  </div>
                </div>
                
                <div class="row mb-4">
                    <label for="inputText" class="col-sm-2 col-form-label">Is Featured</label>
                    <div class="col-sm-10">
                        <input type="checkbox" name="featured" value="1">
                    </div>
                </div>
                    
                <div class="row mb-4">
                  <label for="inputNumber" class="col-sm-2 col-form-label">Upload Image</label>
                  <div class="col-sm-10">
                    <input class="form-control" name="image" type="file" id="formFile" title="Image width- 400 Height-533">
                  </div>
                  @if(isset($teacher))  
                  <img src="{{asset('images/'.$teacher->image)}}" style="height:100px; width:100px;">
                  @endif
                </div>
                
                <div class="row mb-3">
                  <div class="col-sm-12 text-end">
                    <button type="submit" class="btn btn-primary">Save & Add</button>
                  </div>
                </div>

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

            </div>
          </div>

    </section>

  </main><!-- End #main -->
@include('admin.includes.footer')
</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit