@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'])}}
{{Form::label('wechat', 'Wechat')}}
{{Form::text('wechat', '', ['class' => 'col-md-4 form-control form-textbox', 'placeholder' => 'Wechat'])}}
@if (in_array(auth()->user()->user_type, ["admin", "manager"]))
{{Form::label('paypal_email', 'Paypal e-mail')}}
{{Form::email('paypal_email', '', ['class' => 'col-md-4 form-control form-textbox', 'placeholder' => 'Paypal e-mail'])}}
@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::label('feedback', 'Feedback')}}
{{Form::label('feedback_agent_comm', 'Feedback Agent Commission')}}
{{Form::text('feedback_agent_comm', '0', ['class' => 'col-md-4 form-control form-textbox', 'placeholder' => 'Feedback Agent Commission'])}}
{{Form::label('feedback_total_comm', 'Feedback Total Commission')}}
{{Form::text('feedback_total_comm', '', ['class' => 'col-md-4 form-control form-textbox', 'placeholder' => 'Feedback Total Commission'])}}
{{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