Updates
This commit is contained in:
@@ -121,8 +121,7 @@ class="active"
|
||||
@if ($email_mandatory->status == 0 || $settings->status == 1)
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
{!! Form::input('number','mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
<!-- {!! Form::text('mobile',null,['class' => 'form-control']) !!} -->
|
||||
{!! Form::input('number', 'mobile',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
<label for="ext">{!! Lang::get('lang.ext') !!}</label>
|
||||
@@ -130,8 +129,7 @@ class="active"
|
||||
</div>
|
||||
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
<label for="phone_number">{!! Lang::get('lang.phone') !!}</label>
|
||||
{!! Form::input('number','phone_number',null,['class' => 'form-control', 'id' => 'phone_number']) !!}
|
||||
<!-- {!! Form::text('phone_number',null,['class' => 'form-control']) !!} -->
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-3 form-group {{ $errors->has('active') ? 'has-error' : '' }}">
|
||||
{!! Form::label('active',Lang::get('lang.status')) !!}
|
||||
|
||||
@@ -95,7 +95,17 @@ class="active"
|
||||
</div>
|
||||
<div class="col-xs-6 form-group {{ $errors->has('organization') ? 'has-error' : '' }}">
|
||||
{!! Form::label('organization',Lang::get('lang.organization')) !!}
|
||||
{!! Form::select('org_id',[''=>'Select','Organization'=>$org],null,['class' => 'form-control','id'=>'org']) !!}
|
||||
|
||||
|
||||
<select class="form-control" name="org_id">
|
||||
@foreach($orgs as $org)
|
||||
<option value="{!! $org->id !!}" <?php
|
||||
if ($org->id==$organization_id) {
|
||||
echo 'selected';
|
||||
}
|
||||
?> >{!! $org->name !!}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -108,8 +118,7 @@ class="active"
|
||||
<!-- mobile Number : Text : -->
|
||||
<div class="col-md-3 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile')) !!}
|
||||
{!! Form::input('number','mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
<!-- {!! Form::text('mobile',null,['class' => 'form-control']) !!} -->
|
||||
{!! Form::input('number', 'mobile',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
<label for="ext">{!! Lang::get('lang.ext') !!}</label>
|
||||
@@ -117,8 +126,7 @@ class="active"
|
||||
</div>
|
||||
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
<label for="phone_number">{!! Lang::get('lang.phone') !!}</label>
|
||||
<!-- {!! Form::text('phone_number',null,['class' => 'form-control']) !!} -->
|
||||
{!! Form::input('number','phone_number',null,['class' => 'form-control', 'id' => 'phone_number']) !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group {{ $errors->has('active') ? 'has-error' : '' }}">
|
||||
{!! Form::label('active',Lang::get('lang.status')) !!}
|
||||
|
||||
@@ -29,8 +29,33 @@ class="active"
|
||||
@section('content')
|
||||
<!-- open a form -->
|
||||
<div class="box box-primary">
|
||||
|
||||
|
||||
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.user')}}</h3><a href="{{route('user.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_user')}}</a>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h3 class="box-title ">{{Lang::get('lang.user')}}</h3>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-3">
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="pull-right">
|
||||
<div id="labels-div" class="btn-group">
|
||||
<button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" id="labels-button"><i class="fa fa-eye" style="color:teal;"> </i>{{Lang::get('lang.view-option')}}<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
<li><a href="#" class="active">{{Lang::get('lang.active-users')}}</a></li>
|
||||
<li><a href="#" class="inactive">{{Lang::get('lang.deleted-users')}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a href="{{url('user-export')}}" class="btn btn-default btn-sm ">Export</a>
|
||||
<a href="{{route('user.create')}}" class="btn btn-primary btn-sm">{{Lang::get('lang.create_user')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<!-- check whether success or not -->
|
||||
@@ -57,21 +82,14 @@ class="active"
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<?php
|
||||
$users = App\User::where('role', '=', 'user')->orderBy('id', 'ASC')->paginate(20);
|
||||
?>
|
||||
{!! Datatable::table()
|
||||
->addColumn(Lang::get('lang.name'),
|
||||
Lang::get('lang.email'),
|
||||
Lang::get('lang.phone'),
|
||||
Lang::get('lang.status'),
|
||||
Lang::get('lang.ban'),
|
||||
Lang::get('lang.last_login'),
|
||||
Lang::get('lang.role'),
|
||||
Lang::get('lang.action')) // these are the column headings to be shown
|
||||
->setUrl(route('user.list')) // this is the route where data will be retrieved
|
||||
->render() !!}
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{!! $table->script('vendor.Chumper.user-javascript') !!}
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -46,6 +46,7 @@ class="active"
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
@@ -99,20 +100,20 @@ class="active"
|
||||
{!! Form::label('country_code',Lang::get('lang.country-code')) !!}
|
||||
{!! Form::text('country_code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code'), 'id' => 'code']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ext',Lang::get('lang.ext')) !!}
|
||||
{!! Form::text('ext',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- phone number -->
|
||||
<div class="col-xs-8 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ext',Lang::get('lang.ext')) !!}
|
||||
{!! Form::text('ext',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- mobile -->
|
||||
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
|
||||
{!! Form::text('mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
{!! Form::input('number', 'mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('agent_sign') ? 'has-error' : '' }}">
|
||||
{!! Form::label('agent_sign',Lang::get('lang.agent_sign')) !!}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user