<commit_before>@extends('template.skeleton')

@section('title')
{{ Auth::user()->username.' | '._('Account') }}
@stop

@section('content')

<div class="container">
    @if (Request::segment(3))
	<h1>{{ _('Manage Users') }}</h1>
	@else
	<h1>{{ _('Manage Managers') }}</h1>
	@endif
	<h2>{{ _('Add Account') }}</h2>

	@include('template.messages')

    @if (Request::segment(3))
	{{ Form::open(array('url' => 'users/save/'.Request::segment(3), 'method' => 'post')) }}
	@else
	{{ Form::open(array('url' => 'users/save', 'method' => 'post')) }}
	@endif

	<div class="form-group">
		{{ Form::label('first_name', 'First Name') }}
		{{ Form::text('first_name', '', array('class' => 'form-control')) }}
	</div>

	<div class="form-group">
		{{ Form::label('last_name', 'Last Name') }}
		{{ Form::text('last_name', '', array('class' => 'form-control')) }}
	</div>

	<div class="form-group">
		{{ Form::label('email', 'Email') }}
		{{ Form::email('email', '', array('class' => 'form-control')) }}
	</div>

	<div class="form-group">
		{{ Form::label('website', _('Website')) }}
		{{ Form::text('website', '', array('class' => 'form-control')) }}
	</div>

	<div class="form-group">
		{{ Form::label('username', 'Account ID') }}
		{{ Form::text('username', '', array('class' => 'form-control')) }}
	</div>

	<div class="form-group">
		{{ Form::label('password', 'Password') }}
		<div class="input-group">
			{{ Form::password('password', array('class' => 'form-control')) }}
			<span class="input-group-addon show-password"><span class="glyphicon glyphicon-eye-open"></span></span>
		</div>
	</div>

    @if (Request::segment(3))
		{{ Form::hidden('status',4) }}
    @else
    <div class="form-group">
        {{ Form::label('status', 'Status') }}
        {{ Form::select('status', array('2' => 'Administrator', '3' => 'Manager'), '3', array('class' => 'form-control')) }}
    </div>
    @endif

	{{ Form::submit('Submit', array('class' => 'btn btn-primary')) }}

	{{ Form::close() }}
    <br>
    <a href="{{ url('users') }}"><span class="glyphicon glyphicon-arrow-left"></span> {{ _('Back') }}</a>
</div>
@stop<commit_msg>Fungsi back pada form menu add user dimanager berfungsi dengan benar<commit_after>@extends('template.skeleton')

@section('title')
{{ Auth::user()->username.' | '._('Account') }}
@stop

@section('content')

<div class="container">
    @if (Request::segment(3))
	<h1>{{ _('Manage Users') }}</h1>
	@else
	<h1>{{ _('Manage Managers') }}</h1>
	@endif
	<h2>{{ _('Add Account') }}</h2>

	@include('template.messages')

    @if (Request::segment(3))
	{{ Form::open(array('url' => 'users/save/'.Request::segment(3), 'method' => 'post')) }}
	@else
	{{ Form::open(array('url' => 'users/save', 'method' => 'post')) }}
	@endif

	<div class="form-group">
		{{ Form::label('first_name', 'First Name') }}
		{{ Form::text('first_name', '', array('class' => 'form-control')) }}
	</div>

	<div class="form-group">
		{{ Form::label('last_name', 'Last Name') }}
		{{ Form::text('last_name', '', array('class' => 'form-control')) }}
	</div>

	<div class="form-group">
		{{ Form::label('email', 'Email') }}
		{{ Form::email('email', '', array('class' => 'form-control')) }}
	</div>

	<div class="form-group">
		{{ Form::label('website', _('Website')) }}
		{{ Form::text('website', '', array('class' => 'form-control')) }}
	</div>

	<div class="form-group">
		{{ Form::label('username', 'Account ID') }}
		{{ Form::text('username', '', array('class' => 'form-control')) }}
	</div>

	<div class="form-group">
		{{ Form::label('password', 'Password') }}
		<div class="input-group">
			{{ Form::password('password', array('class' => 'form-control')) }}
			<span class="input-group-addon show-password"><span class="glyphicon glyphicon-eye-open"></span></span>
		</div>
	</div>

    @if (Request::segment(3))
		{{ Form::hidden('status',4) }}
    @else
    <div class="form-group">
        {{ Form::label('status', 'Status') }}
        {{ Form::select('status', array('2' => 'Administrator', '3' => 'Manager'), '3', array('class' => 'form-control')) }}
    </div>
    @endif

	{{ Form::submit('Submit', array('class' => 'btn btn-primary')) }}

	{{ Form::close() }}
    <br>
    <a href="{{ url('domain/users/').'/'.Request::segment(3) }}"><span class="glyphicon glyphicon-arrow-left"></span> {{ _('Back') }}</a>
</div>
@stop
{'fraction_non_alphanumeric': 0.2854819976771196, 'fraction_numerical': 0.0067363530778164924, 'mean_word_length': 4.818918918918919, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 99, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5617284', 'n_tokens_mistral': 1590, 'n_tokens_neox': 1507, 'n_words': 269}