Advertisement
fadlyshafa

Untitled

Jan 23rd, 2020
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.26 KB | None | 0 0
  1. @extends('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.  
  14.                 @if ($errors->any())
  15.                     <div class="alert alert-danger">
  16.                         <ul>
  17.                             @foreach ($errors->all() as $error)
  18.                                 <li>{{ $error }}</li>
  19.                             @endforeach
  20.                         </ul>
  21.                     </div>
  22.                 @endif
  23.             </div>
  24.             <div class="box-body">
  25.                
  26.                 <form role="form" method="post" action="{{ url('status-pembayaran/'.$dt->id) }}">
  27.                     @csrf
  28.                     {{ method_field('PUT') }}
  29.                   <div class="box-body">
  30.  
  31.                     <div class="form-group">
  32.                       <label for="exampleInputEmail1">Nama Status</label>
  33.                       <input type="text" name="nama" class="form-control" id="exampleInputEmail1" placeholder="Nama Status" value="{{ $dt->nama }}">
  34.                     </div>
  35.  
  36.                     <div class="form-group">
  37.                       <label for="exampleInputEmail1">Urutan Status</label>
  38.                       <input type="number" name="urutan" class="form-control" id="exampleInputEmail1" placeholder="Urutan Status" value="{{ $dt->urutan }}">
  39.                     </div>
  40.                    
  41.                   </div>
  42.                   <!-- /.box-body -->
  43.      
  44.                   <div class="box-footer">
  45.                     <button type="submit" class="btn btn-primary">Update</button>
  46.                   </div>
  47.                 </form>
  48.  
  49.             </div>
  50.         </div>
  51.     </div>
  52. </div>
  53.  
  54. @endsection
  55.  
  56. @section('scripts')
  57.  
  58. <script type="text/javascript">
  59.     $(document).ready(function(){
  60.  
  61.         // btn refresh
  62.         $('.btn-refresh').click(function(e){
  63.             e.preventDefault();
  64.             $('.preloader').fadeIn();
  65.             location.reload();
  66.         })
  67.  
  68.     })
  69. </script>
  70.  
  71. @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement