Server IP : 66.29.132.124 / Your IP : 3.145.107.223 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/wavevlvu/book24.ng/modules/Tour/Views/admin/tour/ |
Upload File : |
<div class="panel"> <div class="panel-title"><strong>{{__("Availability")}}</strong></div> <div class="panel-body"> <h3 class="panel-body-title">{{__('Open Hours')}}</h3> <div class="form-group"> <label> <input type="checkbox" name="enable_open_hours" @if(!empty($row->meta->enable_open_hours)) checked @endif value="1"> {{__('Enable Open Hours')}} </label> </div> <?php $old = $row->meta->open_hours ?? [];?> <div class="table-responsive form-group" data-condition="enable_open_hours:is(1)"> <table class="table"> <thead> <tr> <th>{{__('Enable?')}}</th> <th>{{__('Day of Week')}}</th> <th>{{__('Open')}}</th> <th>{{__('Close')}}</th> </tr> </thead> @for($i = 1 ; $i <=7 ; $i++) <tr> <td> <input style="display: inline-block" type="checkbox" @if($old[$i]['enable'] ?? false ) checked @endif name="open_hours[{{$i}}][enable]" value="1"> </td> <td><strong> @switch($i) @case(1) {{__('Monday')}} @break @case(2) {{__('Tuesday')}} @break @case (3) {{__('Wednesday')}} @break @case (4) {{__('Thursday')}} @break @case (5) {{__('Friday')}} @break @case (6) {{__('Saturday')}} @break @case (7) {{__('Sunday')}} @break @endswitch </strong></td> <td> <select class="form-control" name="open_hours[{{$i}}][from]"> <?php $time = strtotime('2019-01-01 00:00:00'); for($k = 0; $k <= 23; $k++): $val = date('H:i', $time + 60 * 60 * $k); ?> <option @if(isset($old[$i]) and $old[$i]['from'] == $val) selected @endif value="{{$val}}">{{$val}}</option> <?php endfor;?> </select> </td> <td> <select class="form-control" name="open_hours[{{$i}}][to]"> <?php $time = strtotime('2019-01-01 00:00:00'); for($k = 0; $k <= 23; $k++): $val = date('H:i', $time + 60 * 60 * $k); ?> <option @if(isset($old[$i]) and $old[$i]['to'] == $val ) selected @endif value="{{$val}}">{{$val}}</option> <?php endfor;?> </select> </td> </tr> @endfor </table> </div> </div> </div>