Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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
You can’t perform that action at this time.