Advertisement
fadlyshafa

Untitled

Feb 19th, 2020
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.49 KB | None | 0 0
  1. @extends('dashboard.layouts.master')
  2.  
  3. @section('content')
  4.  
  5. <div class="row">
  6.     <div class="col-md-12">
  7.         <h4>{{ $title }}</h4>
  8.         <div class="box box-warning">
  9.             <div class="box-header">
  10.                 <p>
  11.                     <button class="btn btn-sm btn-flat btn-warning btn-refresh"><i class="fa fa-refresh"></i> Refresh</button>
  12.                 </p>
  13.             </div>
  14.             <div class="box-body">
  15.                
  16.                 <form role="form" method="post" action="{{ url('profile-sekolah') }}" enctype="multipart/form-data">
  17.                     @csrf
  18.                     {{ method_field('PUT') }}
  19.                   <div class="box-body">
  20.                     <div class="form-group">
  21.                       <label for="exampleInputEmail1">Nama Sekolah</label>
  22.                       <input type="text" name="nama" class="form-control" id="exampleInputEmail1" placeholder="Nama Sekolah" value="{{ $dt->nama }}">
  23.                     </div>
  24.  
  25.                     <div class="form-group">
  26.                       <label for="exampleInputPassword1">No Telp</label>
  27.                       <input type="text" name="no_telp" class="form-control" id="exampleInputPassword1" placeholder="No Telp" value="{{ $dt->no_telp }}">
  28.                     </div>
  29.  
  30.                     <div class="form-group">
  31.                       <label for="exampleInputPassword1">Alamat</label>
  32.                       <textarea class="form-control" name="alamat" rows="5">{{ $dt->alamat }}</textarea>
  33.                     </div>
  34.  
  35.                     <div class="form-group">
  36.                       <label for="exampleInputFile">Logo Sekolah</label>
  37.                       <input type="file" name="photo" id="exampleInputFile">
  38.      
  39.                       <p class="help-block">Example block-level help text here.</p>
  40.                     </div>
  41.                    
  42.                   </div>
  43.                   <!-- /.box-body -->
  44.      
  45.                   <div class="box-footer">
  46.                     <button type="submit" class="btn btn-primary">Update</button>
  47.                   </div>
  48.                 </form>
  49.  
  50.             </div>
  51.         </div>
  52.     </div>
  53. </div>
  54.  
  55. @endsection
  56.  
  57. @section('scripts')
  58.  
  59. <script type="text/javascript">
  60.     $(document).ready(function(){
  61.  
  62.         // btn refresh
  63.         $('.btn-refresh').click(function(e){
  64.             e.preventDefault();
  65.             $('.preloader').fadeIn();
  66.             location.reload();
  67.         })
  68.  
  69.     })
  70. </script>
  71.  
  72. @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement