Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  <form  id='updateTimezone' action="{{ route('user.updateTimezone') }}" method="post">
  2.                                 @csrf
  3.                                 <input type="hidden" name="user_id" id="user_id" value="{{auth()->user()->_id}}"/>
  4.                                 <select name="timezone" id="timezone" onchange="$('#updateTimezone').submit()">
  5.                                     @foreach(DateTimeZone::listIdentifiers(DateTimeZone::ALL) as $timezone)
  6.                                         <option @if((auth()->user()->timezone == $timezone)) selected @endif value="{{$timezone}}">
  7.                                             {{$timezone}}
  8.                                         </option>
  9.                                     @endforeach
  10.                                 </select>
  11.                             </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement