Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-md-2"></div>
- <div class="col-md-6">
- <h2>เลือกที่นั่งตามต้องการ</h2> <br><br>
- <table class="table table-striped">
- <thead>
- <tr>
- <th></th>
- <th>เลขที่นั่ง</th>
- <th>ต้นทาง</th>
- <th>ปลายทาง</th>
- <th>เวลาที่รถออก</th>
- </tr>
- <tbody>
- @if(count($seat)>0)
- <div class="alert alert-danger"><strong>ที่นั่ง
- @foreach($seat as $a)
- {{$a->seat}}
- @endforeach มีคนจองแล้วค่ะ </strong>
- </div>
- @endif
- <form action="{{url('bookcar')}}" method="post">
- @for($i=1;$i<=$van->seat;$i++)
- <tr>
- <?php $check=false;?>
- @if(count($seat)>0)
- @foreach($seat as $a)
- @if($i==$a->seat)
- <?php $check=true; break;?>
- @endif
- @endforeach
- @endif
- @if($check)
- <th><span style="color:red;" class="glyphicon glyphicon-remove"></span></th>
- @else
- <th><input type="checkbox" name="checkbox[]" value="{{$i}}"></th>
- @endif
- <th>{{$i}}</th>
- <th>{{$carride->source}}</th>
- <th>{{$carride->endways}}</th>
- <th>{{$time_out}}</th>
- <input type="hidden" name="time_out" value="{{$time_out}}"></input>
- </tr>
- @endfor
- </tbody>
- </thead>
- </table>
- </div><br><br>
- {{csrf_field()}}
- <input type="hidden" name="source" value="{{$carride->source}}">
- <input type="hidden" name="endways" value="{{$carride->endways}}">
- <input type="hidden" name="book_above" value="{{$book_above}}">
- <input type="hidden" name="book_below" value="{{$book_below}}">
- <input type="hidden" name="twoways" value="{{$twoways}}">
- <input type="hidden" name="datein" value="{{$datein}}"></input>
- <input type="hidden" name="dateout" value="{{$dateout}}"></input>
- <input type="hidden" name="carrid_id" value="{{$carride->carrid_id}}">
- <input type="hidden" name="id_van" value="{{$id_van}}">
- @if(!Auth::check())
- <input type="hidden" name="id" value="-1">
- @else
- <input type="hidden" name="id" value="{{Auth::user()->id}}">
- @endif
- <input type="hidden" name="name" value="{{$name}}">
- <input type="hidden" name="pp" value="{{$pp}}">
- <input type="hidden" name="nn" value="{{$nn}}">
- <div class="row">
- <div class="col-md-8"></div>
- <div class="col-md-2">
- <button type="submit" class="btn btn-success btn-lg btn-block btn-huge">จอง </button><br><br><br><br></div>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement