@extends('layouts.adminlte.adminlte') @section('title') Add user @endsection @section('content_header') @parent

Add user

@endsection @section('content')
{!! Form::open(['action' => 'App\Http\Controllers\CustomUsersController@store', 'method' => 'POST']) !!}
{{Form::label('name', 'Name *')}} {{Form::text('name', '', ['class' => 'col-md-4 form-control form-textbox', 'placeholder' => 'Name'])}}
@if (auth()->user()->user_type == 'admin') @endif {{Form::label('user_type', 'User type *')}}
{{Form::label('email', 'E-mail *')}} {{Form::email('email', '', ['class' => 'col-md-4 form-control form-textbox', 'placeholder' => 'E-mail'])}}
{{Form::label('password', 'Password')}} {{Form::password('password', ['class' => 'col-md-4 form-control form-textbox', 'placeholder' => 'Password'])}}
@if (in_array(auth()->user()->user_type, ["admin", "manager"]))
{{Form::label('telegram_username', 'Telegram username')}}
@
{{Form::text('telegram_username', '', ['style' => 'max-width:100%;', 'class' => 'col-md-4 form-control form-textbox', 'placeholder' => 'tg username ("@" optional)'])}}
@endif

{{Form::label('perc_refund_feedback', '% Refund Feedback')}} {{Form::text('perc_refund_feedback', '70-100%', ['class' => 'col-md-4 form-control form-textbox', 'placeholder' => '% Refund Feedback'])}}
{{Form::label('perc_refund_rating', '% Refund Rating')}} {{Form::text('perc_refund_rating', '70-100%', ['class' => 'col-md-4 form-control form-textbox', 'placeholder' => '% Refund Rating'])}}
{{Form::label('perc_refund_purchase_only', '% Refund Purchase Only')}} {{Form::text('perc_refund_purchase_only', '70-100%', ['class' => 'col-md-4 form-control form-textbox', 'placeholder' => '% Refund Purchase Only'])}}

{{Form::submit('Add user', ['class' => 'btn btn-primary'])}} {!! Form::close() !!}

@endsection @section('js') @parent @if (auth()->user()->user_type == 'admin') @endif @endsection @section('css') @parent @stop