Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form id='updateTimezone' action="{{ route('user.updateTimezone') }}" method="post">
- @csrf
- <input type="hidden" name="user_id" id="user_id" value="{{auth()->user()->_id}}"/>
- <select name="timezone" id="timezone" onchange="$('#updateTimezone').submit()">
- @foreach(DateTimeZone::listIdentifiers(DateTimeZone::ALL) as $timezone)
- <option @if((auth()->user()->timezone == $timezone)) selected @endif value="{{$timezone}}">
- {{$timezone}}
- </option>
- @endforeach
- </select>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement