<commit_before>@extends('layouts/main')

@section('content')
		<div class="page-header">
   		<h1>Your Profile</h1>
		</div>

        

		<div class="row">
        <div class="col-xs-8">
        	@if (isset($msg))
        		@if ($msg['success'])
        			<div class="alert alert-success">{{ $msg['content'] }}</div>
        		@else
        			<div class="alert alert-danger">{{ $msg['content'] }}</div>
        		@endif
			@endif
					
            <form role="form" action="profile" method="POST">
                <div class="form-group">
                    <label>Password *</label>
                    <input type="password" class="form-control" name="password" placeholder="Password">
                </div>

                <div class="form-group">
                    <label>First Name *</label>
                    <input type="text" class="form-control" name="first_name" placeholder="<NAME>" value="{{ $author['first_name'] }}">
                </div>

                <div class="form-group">
                    <label>Last Name *</label>
                    <input type="text" class="form-control" name="last_name" placeholder="<NAME>" value="{{ $author['last_name'] }}">
                </div>
                <hr>
                <div class="uiButton">
                    <input type="submit" class="btn btn-primary btn-lg" value="Update">
                </div>
            </form>
        </div>
                <div class="col-xs-4">
            <div class="well">
                <div class="form-group">
                    <label>Email</label>
                    <p>{{ $user['email'] }}</p>
                </div>


                @if (Auth::user()->group_confirmed)
                    <div class="form-group">
                       <label>Lab</label>
                      <p>{{{ Auth::user()->group->lab->name }}}</p>
                    </div>

					<div class="form-group">
                 	   <label>Group</label>
                  	  <p>{{{ Auth::user()->group->name }}}</p>
                	</div>

                    <div class="form-group">
                        @if (Auth::user()->isAdmin())
                            <label>You are a admin</label>
                            <p>
                                <a href="handle">Admin page</a>
                                <br>
                                <a href="leaveAdminRole">Leave role</a>
                            </p>
                        @else
                            <a href="enroll">change lab/group</a>
                            <br>
                            <a href="leaveGroupLab">leave lab/group</a>
                        @endif
                    </div>
                @else
                    <div class="form-group">
                        <label>You are not enrolled in a lab/group</label>
                        <p>
                            <a href="enroll">enroll</a>
                            @if (Auth::user()->group_id != null)
                                <br>
                                <a href="leaveGroupLab">recall request</a>
                            @endif
                        </p>
                    </div>
                @endif
                
                <div class="form-group">
                    <label>Joined date</label>
                    <p>{{ $user['created_at'] }}</p>
                </div>
            </div>
        </div>
            </div>
@stop<commit_msg>bug fix in superadmin's profile<commit_after>@extends('layouts/main')

@section('content')
		<div class="page-header">
   		<h1>Your Profile</h1>
		</div>

        

		<div class="row">
        <div class="col-xs-8">
        	@if (isset($msg))
        		@if ($msg['success'])
        			<div class="alert alert-success">{{ $msg['content'] }}</div>
        		@else
        			<div class="alert alert-danger">{{ $msg['content'] }}</div>
        		@endif
			@endif
					
            <form role="form" action="profile" method="POST">
                <div class="form-group">
                    <label>Password *</label>
                    <input type="password" class="form-control" name="password" placeholder="Password">
                </div>

                <div class="form-group">
                    <label>First Name *</label>
                    <input type="text" class="form-control" name="first_name" placeholder="<NAME>" value="{{ $author['first_name'] }}">
                </div>

                <div class="form-group">
                    <label>Last Name *</label>
                    <input type="text" class="form-control" name="last_name" placeholder="<NAME>" value="{{ $author['last_name'] }}">
                </div>
                <hr>
                <div class="uiButton">
                    <input type="submit" class="btn btn-primary btn-lg" value="Update">
                </div>
            </form>
        </div>
                <div class="col-xs-4">
            <div class="well">
                <div class="form-group">
                    <label>Email</label>
                    <p>{{ $user['email'] }}</p>
                </div>


                @if (Auth::user()->group_confirmed)
                    <div class="form-group">
                       <label>Lab</label>
                      <p>{{{ Auth::user()->group->lab->name }}}</p>
                    </div>

					<div class="form-group">
                 	   <label>Group</label>
                  	  <p>{{{ Auth::user()->group->name }}}</p>
                	</div>

                    <div class="form-group">
                        @if (Auth::user()->isAdmin())
                            <label>You are a admin</label>
                            <p>
                                <a href="handle">Admin page</a>
                                <br>
                                <a href="leaveAdminRole">Leave role</a>
                            </p>
                        @else
                            <a href="enroll">change lab/group</a>
                            <br>
                            <a href="leaveGroupLab">leave lab/group</a>
                        @endif
                    </div>
                @elseif(Auth::user()->group_id != 1)
                    <div class="form-group">
                        <label>You are not enrolled in a lab/group</label>
                        <p>
                            <a href="enroll">enroll</a>
                            @if (Auth::user()->group_id != null)
                                <br>
                                <a href="leaveGroupLab">recall request</a>
                            @endif
                        </p>
                    </div>
                @endif
                
                <div class="form-group">
                    <label>Joined date</label>
                    <p>{{ $user['created_at'] }}</p>
                </div>
            </div>
        </div>
            </div>
@stop
{'fraction_non_alphanumeric': 0.15323854660347552, 'fraction_numerical': 0.0012925463162429987, 'mean_word_length': 1.0173812282734647, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 200, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4523995', 'n_tokens_mistral': 1918, 'n_tokens_neox': 1752, 'n_words': 344}