Update v1.0.6.6

This commit is contained in:
sujitprasad
2016-03-11 18:36:32 +05:30
parent a77b7bf3e7
commit d54019198f
51 changed files with 4234 additions and 2401 deletions

View File

@@ -1,6 +1,5 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
@stop
@@ -17,118 +16,102 @@ class="active"
@stop
<!-- header -->
@section('PageHeader')
<h1>{!! Lang::get('lang.create') !!}</h1>
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(['action'=>'Agent\helpdesk\UserController@store','method'=>'post']) !!}
<div class="box box-primary">
<div class="content-header">
<h4>{!! Lang::get('lang.create') !!} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
<!-- Email Address : Email : Required -->
<div class="row">
<div class="col-xs-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::email('email',null,['class' => 'form-control']) !!}
</div>
<!-- Full Name : Text : Required-->
<div class="col-xs-4 form-group {{ $errors->has('full_name') ? 'has-error' : '' }}">
{!! Form::label('full_name',Lang::get('lang.full_name')) !!}
{!! $errors->first('full_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('full_name',null,['class' => 'form-control']) !!}
</div>
<!-- mobile Number : Text : -->
<div class="col-md-4 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
{!! Form::label('mobile',Lang::get('lang.mobile')) !!}
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('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>
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ext',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-5 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
<label for="phone_number">{!! Lang::get('lang.phone') !!}</label>
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-4 form-group {{ $errors->has('active') ? 'has-error' : '' }}">
{!! Form::label('active',Lang::get('lang.status')) !!}
{!! $errors->first('active', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-12">
{!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
</div>
<div class="col-xs-12">
{!! Form::radio('active','0') !!} {{Lang::get('lang.inactive')}}
</div>
</div>
</div>
</div>
<!-- Internal Notes : Textarea -->
<div class="form-group">
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
</div>
</div>
<div class="box-header with-border">
<h3 class="box-title">
User Credentials
</h3>
</div>
<div class="box-body">
@if(Session::has('errors'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<br/>
@if($errors->first('email'))
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
@endif
@if($errors->first('full_name'))
<li class="error-message-padding">{!! $errors->first('full_name', ':message') !!}</li>
@endif
@if($errors->first('mobile'))
<li class="error-message-padding">{!! $errors->first('mobile', ':message') !!}</li>
@endif
@if($errors->first('ext'))
<li class="error-message-padding">{!! $errors->first('ext', ':message') !!}</li>
@endif
@if($errors->first('phone_number'))
<li class="error-message-padding">{!! $errors->first('phone_number', ':message') !!}</li>
@endif
@if($errors->first('active'))
<li class="error-message-padding">{!! $errors->first('active', ':message') !!}</li>
@endif
</div>
@endif
<!-- Email Address : Email : Required -->
<div class="row">
<div class="col-xs-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email')) !!}
{!! Form::email('email',null,['class' => 'form-control']) !!}
</div>
<!-- Full Name : Text : Required-->
<div class="col-xs-4 form-group {{ $errors->has('full_name') ? 'has-error' : '' }}">
{!! Form::label('full_name',Lang::get('lang.full_name')) !!}
{!! Form::text('full_name',null,['class' => 'form-control']) !!}
</div>
<!-- mobile Number : Text : -->
<div class="col-md-4 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
{!! Form::label('mobile',Lang::get('lang.mobile')) !!}
{!! Form::text('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>
{!! Form::text('ext',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-5 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']) !!}
</div>
<div class="col-md-4 form-group {{ $errors->has('active') ? 'has-error' : '' }}">
{!! Form::label('active',Lang::get('lang.status')) !!}
<div class="row">
<div class="col-xs-12">
{!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
</div>
<div class="col-xs-12">
{!! Form::radio('active','0') !!} {{Lang::get('lang.inactive')}}
</div>
</div>
</div>
</div>
<!-- Internal Notes : Textarea -->
<div class="form-group">
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_note',null,['class' => 'form-control', 'size' => '30x5']) !!}
</div>
</div>
<div class="box-footer">
{!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary'])!!}
</div>
</div>
<script>
$(function () {
$("textarea").wysihtml5();
});
</script>
<script>
$(function () {
$("textarea").wysihtml5();
});
</script>
@stop

View File

@@ -13,117 +13,109 @@ active
class="active"
@stop
<!-- /breadcrumbs -->
<!-- header -->
@section('PageHeader')
<h1>{!! Lang::get('lang.edit') !!}</h1>
@stop
<!-- /header -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($users,['url'=>'user/'.$users->id,'method'=>'PATCH']) !!}
<div class="box box-primary">
<div class="content-header">
<h4>{{Lang::get('lang.edit')}} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
<!-- Email Address : Email : Required -->
<div class="row">
<div class="col-md-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::email('email',null,['disabled'=>'disabled', 'class' => 'form-control']) !!}
</div>
<!-- Full Name : Text : Required-->
<div class="col-md-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
{!! Form::label('user_name',Lang::get('lang.full_name')) !!}
{!! $errors->first('user_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('user_name',null,['class' => 'form-control']) !!}
</div>
<!-- mobile Number : Text : -->
<div class="col-md-4 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
{!! Form::label('mobile',Lang::get('lang.mobile')) !!}
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('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>
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ext',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-5 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
<label for="phone_number">{!! Lang::get('lang.phone') !!}</label>
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-3 form-group {{ $errors->has('active') ? 'has-error' : '' }}">
{!! Form::label('active',Lang::get('lang.status')) !!}
{!! $errors->first('active', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-12">
{!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
</div>
<div class="col-xs-12">
{!! Form::radio('active','0') !!} {{Lang::get('lang.inactive')}}
</div>
</div>
</div>
<div class="col-xs-3 form-group {{ $errors->has('ban') ? 'has-error' : '' }}">
{!! Form::label('ban',Lang::get('lang.ban')) !!}
{!! $errors->first('ban', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-12">
{!! Form::radio('ban','1',true) !!} {{Lang::get('lang.enable')}}
</div>
<div class="col-xs-12">
{!! Form::radio('ban','0') !!} {{Lang::get('lang.disable')}}
</div>
</div>
</div>
</div>
<!-- Internal Notes : Textarea -->
<div class="form-group">
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
</div>
<div class="box-header with-border">
<h3 class="box-title">
User Credentials
</h3>
</div>
<div class="box-body">
@if(Session::has('errors'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<br/>
@if($errors->first('email'))
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
@endif
@if($errors->first('user_name'))
<li class="error-message-padding">{!! $errors->first('user_name', ':message') !!}</li>
@endif
@if($errors->first('mobile'))
<li class="error-message-padding">{!! $errors->first('mobile', ':message') !!}</li>
@endif
@if($errors->first('ext'))
<li class="error-message-padding">{!! $errors->first('ext', ':message') !!}</li>
@endif
@if($errors->first('phone_number'))
<li class="error-message-padding">{!! $errors->first('phone_number', ':message') !!}</li>
@endif
@if($errors->first('active'))
<li class="error-message-padding">{!! $errors->first('active', ':message') !!}</li>
@endif
</div>
@endif
<!-- Email Address : Email : Required -->
<div class="row">
<div class="col-md-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email')) !!}
{!! Form::email('email',null,['disabled'=>'disabled', 'class' => 'form-control']) !!}
</div>
<!-- Full Name : Text : Required-->
<div class="col-md-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
{!! Form::label('user_name',Lang::get('lang.full_name')) !!}
{!! Form::text('user_name',null,['class' => 'form-control']) !!}
</div>
<!-- mobile Number : Text : -->
<div class="col-md-4 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
{!! Form::label('mobile',Lang::get('lang.mobile')) !!}
{!! Form::text('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>
{!! Form::text('ext',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-5 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']) !!}
</div>
<div class="col-xs-3 form-group {{ $errors->has('active') ? 'has-error' : '' }}">
{!! Form::label('active',Lang::get('lang.status')) !!}
<div class="row">
<div class="col-xs-12">
{!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
</div>
<div class="col-xs-12">
{!! Form::radio('active','0') !!} {{Lang::get('lang.inactive')}}
</div>
</div>
</div>
<div class="col-xs-3 form-group {{ $errors->has('ban') ? 'has-error' : '' }}">
{!! Form::label('ban',Lang::get('lang.ban')) !!}
<div class="row">
<div class="col-xs-12">
{!! Form::radio('ban','1',true) !!} {{Lang::get('lang.enable')}}
</div>
<div class="col-xs-12">
{!! Form::radio('ban','0') !!} {{Lang::get('lang.disable')}}
</div>
</div>
</div>
</div>
<!-- Internal Notes : Textarea -->
<div class="form-group">
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
</div>
</div>
<div class="box-footer">
{!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary'])!!}
</div>
</div>
</div>
<script>
$(function () {
$("textarea").wysihtml5();
});
</script>
<script>
$(function () {
$("textarea").wysihtml5();
});
</script>
@stop

View File

@@ -1,6 +1,5 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
@stop
@@ -17,62 +16,53 @@ class="active"
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
<div class="box box-primary">
<div class="box-header">
<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>
<div class="box-body">
<!-- check whether success or not -->
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"></i>
<b>Success</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Fail!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{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.action')) // these are the column headings to be shown
->setUrl(route('user.list')) // this is the route where data will be retrieved
->render() !!}
<div class="box-header">
<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>
<div class="box-body">
<!-- check whether success or not -->
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"></i>
<b>Success</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Fail!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{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.action')) // these are the column headings to be shown
->setUrl(route('user.list')) // this is the route where data will be retrieved
->render() !!}
</div>
</div>
@stop
<!-- /content -->

View File

@@ -16,7 +16,7 @@ class="active"
@stop
<!-- header -->
@section('PageHeader')
<div class="box-header" style="margin-top:-15px;margin-bottom:-15px;"><h3 class="box-title">{!! Lang::get('lang.user_profile') !!}</h3><a href="{{route('user.edit', $users->id)}}" class="btn btn-info btn-sm btn-flat pull-right"><i class="fa fa-edit" style="color:black;"> </i> {!! Lang::get('lang.edit') !!}</a></div>
<h1>{!! Lang::get('lang.user_profile') !!} <a href="{{route('user.edit', $users->id)}}" class="btn btn-info btn-sm btn-flat pull-right"><i class="fa fa-edit" style="color:black;"> </i> {!! Lang::get('lang.edit') !!}</a></h1>
@stop
<!-- /header -->
<!-- breadcrumbs -->
@@ -26,7 +26,6 @@ class="active"
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
{{-- style="display:none" --}}
<!-- success message -->
<div id="alert-success" class="alert alert-success alert-dismissable" style="display:none;">
<i class="fa fa-check-circle"> </i> <b> Success <span id="get-success"></span></b>
@@ -165,7 +164,6 @@ $deleted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users
<th>{!! Lang::get('lang.subject') !!}</th>
<th>{!! Lang::get('lang.ticket_id') !!}</th>
<th>{!! Lang::get('lang.priority') !!}</th>
<th>{!! Lang::get('lang.from') !!}</th>
<th>{!! Lang::get('lang.last_replier') !!}</th>
<th>{!! Lang::get('lang.assigned_to') !!}</th>
<th>{!! Lang::get('lang.last_activity') !!}</th>
@@ -220,11 +218,6 @@ $deleted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $ticket->priority_id)->first();?>
<td class="mailbox-priority"><spam class="btn btn-{{$priority->priority_color}} btn-xs">{{$priority->priority}}</spam></td>
<?php $from = App\User::where('id','=',$ticket->user_id)->first(); ?>
@if($from->role == "user")
<td class="mailbox-from" >{!! $from->user_name !!}</td>
@else
<td class="mailbox-from" >{!! $from->first_name." ".$from->last_name !!}</td>
@endif
<td class="mailbox-last-reply" style="color:{!! $rep !!}">{!! $username !!}</td>
<td>{!! $assigned !!}</td>
<td class="mailbox-last-activity">{!! UTC::usertimezone($title->updated_at) !!}</td>
@@ -288,7 +281,6 @@ $deleted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users
<th>{!! Lang::get('lang.subject') !!}</th>
<th>{!! Lang::get('lang.ticket_id') !!}</th>
<th>{!! Lang::get('lang.priority') !!}</th>
<th>{!! Lang::get('lang.from') !!}</th>
<th>{!! Lang::get('lang.last_replier') !!}</th>
<th>{!! Lang::get('lang.assigned_to') !!}</th>
<th>{!! Lang::get('lang.last_activity') !!}</th>
@@ -342,11 +334,6 @@ $deleted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $ticket->priority_id)->first();?>
<td class="mailbox-priority"><spam class="btn btn-{{$priority->priority_color}} btn-xs">{{$priority->priority}}</spam></td>
<?php $from = App\User::where('id','=',$ticket->user_id)->first(); ?>
@if($from->role == "user")
<td class="mailbox-from" >{!! $from->user_name !!}</td>
@else
<td class="mailbox-from" >{!! $from->first_name." ".$from->last_name !!}</td>
@endif
<td class="mailbox-last-reply" style="color:{!! $rep !!}">{!! $username !!}</td>
<td>{!! $assigned !!}</td>
<td class="mailbox-last-activity">{!! UTC::usertimezone($title->updated_at) !!}</td>
@@ -413,7 +400,6 @@ $deleted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users
<th>{!! Lang::get('lang.subject') !!}</th>
<th>{!! Lang::get('lang.ticket_id') !!}</th>
<th>{!! Lang::get('lang.priority') !!}</th>
<th>{!! Lang::get('lang.from') !!}</th>
<th>{!! Lang::get('lang.last_replier') !!}</th>
<th>{!! Lang::get('lang.assigned_to') !!}</th>
<th>{!! Lang::get('lang.last_activity') !!}</th>
@@ -472,11 +458,6 @@ $deleted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $ticket->priority_id)->first();?>
<td class="mailbox-priority"><spam class="btn btn-{{$priority->priority_color}} btn-xs">{{$priority->priority}}</spam></td>
<?php $from = App\User::where('id','=',$ticket->user_id)->first(); ?>
@if($from->role == "user")
<td class="mailbox-from" >{!! $from->user_name !!}</td>
@else
<td class="mailbox-from" >{!! $from->first_name." ".$from->last_name !!}</td>
@endif
<td class="mailbox-last-reply" style="color:{!! $rep !!}">{!! $username !!}</td>
<td>{!! $assigned !!}</td>
<td class="mailbox-last-activity">{!! UTC::usertimezone($title->updated_at) !!}</td>
@@ -750,6 +731,10 @@ $orgs = App\Model\helpdesk\Agent_panel\Organization::all();
</script>
<script>
$(function () {
$("textarea").wysihtml5();
});
</script>
@stop
<!-- /content -->