Skip to content

Instantly share code, notes, and snippets.

@alnutile
Created January 26, 2016 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alnutile/3007022c9880f1c656e1 to your computer and use it in GitHub Desktop.
Save alnutile/3007022c9880f1c656e1 to your computer and use it in GitHub Desktop.
<div class="form-group">
<div class="form-group">
<label for="name">Email</label>
<input markdown="1" type="text" name="email" class="form-control" value="@if($user->email){{ $user->email }}@endif"/>
</div>
</div>
@include('feature_flags::twitter_name_input')
<div class="form-group">
<div class="form-group">
<label for="active">Is Admin</label>
@if($user->is_admin && $user->is_admin == 1)
<input type="checkbox" name="is_admin" class="form-control" checked="checked" value="1">
@else
<input type="checkbox" name="is_admin" class="form-control" value="1">
@endif
</div>
</div>
@can('add-twitter-field')
<div class="form-group">
<div class="form-group">
<label for="twitter">Twitter Name</label>
<input type="text" name="twitter" class="form-control" value="@if($user->twitter){{ $user->twitter }}@endif"/>
</div>
</div>
@endcan
@can('add-twitter-field')
<!-- code here -->
@endcan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment