Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="col-md-2"></div>
  2.   <div class="col-md-6">
  3.     <h2>เลือกที่นั่งตามต้องการ</h2> <br><br>  
  4.     <table class="table table-striped">
  5.     <thead>
  6.       <tr>
  7.         <th></th>
  8.         <th>เลขที่นั่ง</th>
  9.         <th>ต้นทาง</th>
  10.         <th>ปลายทาง</th>
  11.         <th>เวลาที่รถออก</th>
  12.       </tr>
  13.      <tbody>
  14.       @if(count($seat)>0)
  15.             <div class="alert alert-danger"><strong>ที่นั่ง
  16.         @foreach($seat as $a)
  17.             {{$a->seat}}  
  18.          @endforeach  มีคนจองแล้วค่ะ </strong>
  19.   </div>
  20.       @endif
  21.     <form action="{{url('bookcar')}}" method="post">
  22.       @for($i=1;$i<=$van->seat;$i++)
  23.       <tr>
  24.         <?php $check=false;?>
  25.         @if(count($seat)>0)
  26.           @foreach($seat as $a)
  27.             @if($i==$a->seat)
  28.               <?php $check=true; break;?>
  29.             @endif
  30.           @endforeach
  31.         @endif
  32.        @if($check)
  33.             <th><span style="color:red;" class="glyphicon glyphicon-remove"></span></th>
  34.        @else
  35.             <th><input type="checkbox" name="checkbox[]" value="{{$i}}"></th>
  36.        @endif
  37.             <th>{{$i}}</th>
  38.             <th>{{$carride->source}}</th>
  39.             <th>{{$carride->endways}}</th>
  40.             <th>{{$time_out}}</th>
  41.         <input type="hidden" name="time_out" value="{{$time_out}}"></input>
  42.       </tr>
  43.         @endfor
  44.     </tbody>
  45.    </thead>
  46.  </table>
  47. </div><br><br>
  48.      {{csrf_field()}}
  49.      <input type="hidden" name="source" value="{{$carride->source}}">
  50.      <input type="hidden" name="endways" value="{{$carride->endways}}">
  51.      <input type="hidden" name="book_above" value="{{$book_above}}">
  52.      <input type="hidden" name="book_below" value="{{$book_below}}">
  53.      <input type="hidden" name="twoways" value="{{$twoways}}">
  54.      <input type="hidden" name="datein" value="{{$datein}}"></input>
  55.      <input type="hidden" name="dateout" value="{{$dateout}}"></input>
  56.      <input type="hidden" name="carrid_id" value="{{$carride->carrid_id}}">
  57.      <input type="hidden" name="id_van" value="{{$id_van}}">
  58.      @if(!Auth::check())
  59.         <input type="hidden" name="id" value="-1">
  60.      @else
  61.         <input type="hidden" name="id" value="{{Auth::user()->id}}">
  62.      @endif
  63.         <input type="hidden" name="name" value="{{$name}}">
  64.         <input type="hidden" name="pp" value="{{$pp}}">
  65.         <input type="hidden" name="nn" value="{{$nn}}">
  66.      <div class="row">
  67.      <div class="col-md-8"></div>
  68.      <div class="col-md-2">
  69.      <button type="submit" class="btn btn-success btn-lg btn-block btn-huge">จอง </button><br><br><br><br></div>
  70.         </div>
  71.       </div>
  72.    </div>
  73. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement