Bootstrap4 :: Organization module UI updates

This commit is contained in:
Sakthi002
2020-12-29 15:52:27 +05:30
committed by Manish Verma
parent fddad53e60
commit 84aa8f803d
14 changed files with 821 additions and 661 deletions

View File

@@ -107,14 +107,14 @@ class OrganizationController extends Controller
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Are You Sure ?</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Are You Sure ?</h4>
</div>
<div class="modal-body">
'.$model->user_name.'
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">Close</button>
<div class="modal-footer justify-content-between">
<button type="button" class="btn btn-default" data-dismiss="modal" id="dismis2">Close</button>
<a href="'.route('org.delete', $model->id).'"><button class="btn btn-danger">delete</button></a>
</div>
</div><!-- /.modal-content -->

View File

@@ -2676,7 +2676,7 @@ class TicketController extends Controller
{
return \Datatable::table()
->addColumn(
'<a class="checkbox-toggle"><i class="fa fa-square-o fa-2x"></i></a>',
'<a class="checkbox-toggle"><i class="far fa-square fa-2x"></i></a>',
Lang::get('lang.subject'),
Lang::get('lang.ticket_id'),
Lang::get('lang.from'),

View File

@@ -1,15 +1,19 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
class="nav-link active"
@stop
@section('user-bar')
active
class="nav-link active"
@stop
@section('user')
class="active"
@stop
@section('organizations')
class="active"
class="nav-link active"
@stop
@section('HeadInclude')
@@ -29,65 +33,77 @@ class="active"
@section('content')
<!-- open a form -->
{!! Form::open(['action'=>'Agent\helpdesk\OrganizationController@store','method'=>'post']) !!}
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{{Lang::get('lang.create')}}</h4>
@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>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<br/>
@if($errors->first('name'))
<li class="error-message-padding">{!! $errors->first('name', ':message') !!}</li>
@endif
@if($errors->first('phone'))
<li class="error-message-padding">{!! $errors->first('phone', ':message') !!}</li>
@endif
@if($errors->first('website'))
<li class="error-message-padding">{!! $errors->first('website', ':message') !!}</li>
@endif
</div>
@endif
<div class="card card-light">
<div class="card-header">
<h3 class="card-title">{{Lang::get('lang.create')}}</h3>
</div>
<div class="box-body">
@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>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<br/>
@if($errors->first('name'))
<li class="error-message-padding">{!! $errors->first('name', ':message') !!}</li>
@endif
@if($errors->first('phone'))
<li class="error-message-padding">{!! $errors->first('phone', ':message') !!}</li>
@endif
@if($errors->first('website'))
<li class="error-message-padding">{!! $errors->first('website', ':message') !!}</li>
@endif
</div>
@endif
<div class="card-body">
<!-- name : text : Required -->
<div class="row">
<div class="col-xs-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
<div class="col-sm-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!} <span class="text-red"> *</span>
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
<!-- phone : Text : -->
<div class="col-xs-4 form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
<div class="col-sm-4 form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
{!! Form::label('phone',Lang::get('lang.phone')) !!}
{!! Form::text('phone',null,['class' => 'form-control']) !!}
</div>
<!-- website : Text : -->
<div class="col-xs-4 form-group {{ $errors->has('website') ? 'has-error' : '' }}">
<div class="col-sm-4 form-group {{ $errors->has('website') ? 'has-error' : '' }}">
{!! Form::label('website',Lang::get('lang.website')) !!}
{!! Form::text('website',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Internal Notes : Textarea -->
<div class="row">
<div class="col-xs-6 form-group">
<div class="col-sm-6 form-group">
{!! Form::label('address',Lang::get('lang.address')) !!}
{!! Form::textarea('address',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-6 form-group">
<div class="col-sm-6 form-group">
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control']) !!}
</div>
</div>
</div>
<div class="box-footer">
{!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
<div class="card-footer">
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
</div>
</div>
<script type="text/javascript">
$(function() {
$("textarea").wysihtml5();
$(function () {
$("textarea").summernote({
height: 300,
tabsize: 2,
toolbar: [
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']]
]
});
});
</script>
@stop

View File

@@ -1,14 +1,19 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
class="nav-link active"
@stop
@section('user-bar')
active
class="nav-link active"
@stop
@section('user')
class="active"
@stop
@section('organizations')
class="active"
class="nav-link active"
@stop
@section('HeadInclude')
@@ -28,65 +33,76 @@ class="active"
@section('content')
<!-- open a form -->
{!! Form::model($orgs,['url'=>'organizations/'.$orgs->id,'method'=>'PATCH']) !!}
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{{Lang::get('lang.edit')}}</h3>
@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>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<br/>
@if($errors->first('name'))
<li class="error-message-padding">{!! $errors->first('name', ':message') !!}</li>
@endif
@if($errors->first('phone'))
<li class="error-message-padding">{!! $errors->first('phone', ':message') !!}</li>
@endif
@if($errors->first('website'))
<li class="error-message-padding">{!! $errors->first('website', ':message') !!}</li>
@endif
</div>
@endif
<div class="card card-light">
<div class="card-header">
<h3 class="card-title">{{Lang::get('lang.edit')}}</h3>
</div>
<div class="box-body">
@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>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<br/>
@if($errors->first('name'))
<li class="error-message-padding">{!! $errors->first('name', ':message') !!}</li>
@endif
@if($errors->first('phone'))
<li class="error-message-padding">{!! $errors->first('phone', ':message') !!}</li>
@endif
@if($errors->first('website'))
<li class="error-message-padding">{!! $errors->first('website', ':message') !!}</li>
@endif
</div>
@endif
<div class="card-body">
<!-- name : text : Required -->
<div class="row">
<div class="col-xs-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
<div class="col-sm-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!} <span class="text-red"> *</span>
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
<!-- phone : Text : -->
<div class="col-xs-4 form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
<div class="col-sm-4 form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
{!! Form::label('phone',Lang::get('lang.phone')) !!}
{!! Form::text('phone',null,['class' => 'form-control']) !!}
</div>
<!--website : Text : -->
<div class="col-xs-4 form-group {{ $errors->has('website') ? 'has-error' : '' }}">
<div class="col-sm-4 form-group {{ $errors->has('website') ? 'has-error' : '' }}">
{!! Form::label('website',Lang::get('lang.website')) !!}
{!! Form::text('website',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Internal Notes : Textarea -->
<div class="row">
<div class="col-xs-6 form-group">
<div class="col-sm-6 form-group">
{!! Form::label('address',Lang::get('lang.address')) !!}
{!! Form::textarea('address',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-6 form-group">
<div class="col-sm-6 form-group">
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control']) !!}
</div>
</div>
</div>
<div class="box-footer">
<div class="card-footer">
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
</div>
</div>
<script type="text/javascript">
$(function() {
$("textarea").wysihtml5();
$(function () {
$("textarea").summernote({
height: 300,
tabsize: 2,
toolbar: [
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']]
]
});
});
</script>
@stop

View File

@@ -1,45 +1,59 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
class="nav-link active"
@stop
@section('user-bar')
active
@stop
@section('organizations')
@section('user')
class="active"
@stop
@section('organizations')
class="nav-link active"
@stop
@section('PageHeader')
<h1>{!! Lang::get('lang.organizations') !!}</h1>
@stop
<!-- content -->
@section('content')
<div class="box box-primary">
<div class="box-header with-border">
<h2 class="box-title">{{Lang::get('lang.organization_list')}}</h2>
<a href="{{route('organizations.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_organization')}}</a>
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fas fa-check-circle"></i>
<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="fas fa-ban"></i>
<b>{!! Lang::get('lang.alert') !!} !</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="card card-light">
<div class="card-header">
<h3 class="card-title">{{Lang::get('lang.organization_list')}}</h3>
<div class="card-tools">
<a href="{{route('organizations.create')}}" class="btn btn-default btn-tool"><i class="fas fa-plus"> </i> {{Lang::get('lang.create_organization')}}</a>
</div>
</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>
<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>{!! Lang::get('lang.alert') !!} !</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="card-body">
{!! Datatable::table()
->addColumn(Lang::get('lang.name'),
Lang::get('lang.website'),

View File

@@ -1,20 +1,20 @@
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
<div class="modal-dialog" role="document">
<div class="col-md-2"></div>
<div class="col-md-8">
<div class="modal-content">
<div class="modal fade" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close closemodal" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel"></h4>
<button type="button" class="close closemodal" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body" id="custom-alert-body" >
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary pull-left yes" data-dismiss="modal">{{Lang::get('lang.ok')}}</button>
<div class="modal-footer justify-content-between">
<button type="button" class="btn btn-default no">{{Lang::get('lang.cancel')}}</button>
<button type="button" class="btn btn-primary yes" data-dismiss="modal">{{Lang::get('lang.ok')}}</button>
</div>
</div>
</div>
</div>
</div>
@@ -23,8 +23,9 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" id="merge-close" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">{!! Lang::get('lang.merge-ticket') !!} </h4>
<button type="button" class="close" data-dismiss="modal" id="merge-close" aria-label="Close"><span aria-hidden="true">&times;</span>
</button>
</div><!-- /.modal-header-->
<div class ="modal-body">
<div class="row">
@@ -40,12 +41,12 @@
<div class="col-md-12">
<div id="merge-succ-alert" class="alert alert-success alert-dismissable" style="display:none;" >
<!--<button id="dismiss-merge" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>-->
<h4><i class="icon fa fa-check"></i>{!! Lang::get('lang.alert') !!}!</h4>
<h4><i class="icon fas fa-check"></i>{!! Lang::get('lang.alert') !!}!</h4>
<div id="message-merge-succ"></div>
</div>
<div id="merge-err-alert" class="alert alert-danger alert-dismissable" style="display:none;">
<!--<button id="dismiss-merge2" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>-->
<h4><i class="icon fa fa-ban"></i>{!! Lang::get('lang.alert') !!}!</h4>
<h4><i class="icon fas fa-ban"></i>{!! Lang::get('lang.alert') !!}!</h4>
<div id="message-merge-err"></div>
</div>
</div>
@@ -73,9 +74,9 @@
</div><!-- mereg-body-form -->
</div><!-- merge-body -->
</div><!-- /.modal-body -->
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">{!! Lang::get('lang.close') !!}</button>
<input type="submit" id="merge-btn" class="btn btn-primary pull-right" value="{!! Lang::get('lang.merge') !!}"></input>
<div class="modal-footer justify-content-between">
<button type="button" class="btn btn-default" data-dismiss="modal" id="dismis2">{!! Lang::get('lang.close') !!}</button>
<input type="submit" id="merge-btn" class="btn btn-primary" value="{!! Lang::get('lang.merge') !!}"></input>
{!! Form::close() !!}
</div><!-- /.modal-footer -->
</div><!-- /.modal-content -->
@@ -86,8 +87,9 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" id="assign-close" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">{!! Lang::get('lang.assign-ticket') !!} </h4>
<button type="button" class="close" data-dismiss="modal" id="assign-close" aria-label="Close"><span aria-hidden="true">&times;</span>
</button>
</div><!-- /.modal-header-->
<div class ="modal-body">
<div class="row">
@@ -127,9 +129,9 @@
</div>
</div><!-- mereg-body-form -->
</div><!-- merge-body -->
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">{!! Lang::get('lang.close') !!}</button>
<input type="submit" id="merge-btn" class="btn btn-primary pull-right" value="{!! Lang::get('lang.assign') !!}"></input>
<div class="modal-footer justify-content-between">
<button type="button" class="btn btn-default" data-dismiss="modal" id="dismis2">{!! Lang::get('lang.close') !!}</button>
<input type="submit" id="merge-btn" class="btn btn-primary" value="{!! Lang::get('lang.assign') !!}"></input>
{!! Form::close() !!}
</div><!-- /.modal-footer -->
</div><!-- /.modal-content -->

View File

@@ -12,11 +12,11 @@ var filterClick = 0;
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
$(".far", this).removeClass("fa-check-square").addClass('fa-square');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
$(".far", this).removeClass("fa-square").addClass('fa-check-square');
}
$(this).data("clicks", !clicks);
});
@@ -52,18 +52,22 @@ var filterClick = 0;
$(".closemodal, .no").click(function () {
$("#myModal").css("display", "none");
$('#myModal').modal('toggle');
});
$(".closemodal, .no").click(function () {
$("#myModal").css("display", "none");
$('#myModal').modal('toggle');
});
$('.yes').click(function () {
var values = getValues();
if (values == "") {
$("#myModal").css("display", "none");
$('#myModal').modal('toggle');
} else {
$("#myModal").css("display", "none");
$('#myModal').modal('toggle');
if (c_status != 'hard-delete') {
var url = '{{url("select_all")}}/';
$.ajax({
@@ -77,6 +81,8 @@ var filterClick = 0;
beforeSend: function() {
$('.loader1').css('display','block');
$('.loader').css('display','block');
$('#refresh').css('display','none');
$('#loader1').css('display','block');
$('#d1').prop('disabled', true);
$("#hidespin").hide();
$("#spin").show();
@@ -86,6 +92,8 @@ var filterClick = 0;
success: function(response) {
$('.loader1').css('display','none');
$('.loader').css('display','none');
$('#refresh').css('display','block');
$('#loader1').css('display','none');
$('#d1').prop('disabled', false);
$("#hide2").show();
$("#show2").hide();
@@ -146,6 +154,7 @@ var filterClick = 0;
}
$('#custom-alert-body').html(msg);
$("#myModal").css("display", "block");
$('#myModal').modal('toggle');
}
$('#modalpopup').on('submit', function(e){

View File

@@ -1,13 +1,17 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
class="nav-link active"
@stop
@section('ticket-bar')
active
@stop
@section('ticket')
class="active"
@stop
<?php
$inputs = \Input::get('show');
$activepage = $inputs[0];
@@ -21,47 +25,47 @@ if (\Input::has('assigned'))
@if($activepage == 'trash')
@section('trash')
class="active"
class="nav-link active"
@stop
@elseif ($activepage == 'mytickets')
@section('myticket')
class="active"
class="nav-link active"
@stop
@elseif ($activepage == 'followup')
@section('followup')
class="active"
class="nav-link active"
@stop
@elseif($activepage == 'inbox')
@section('inbox')
class="active"
class="nav-link active"
@stop
@elseif($activepage == 'overdue')
@section('overdue')
class="active"
class="nav-link active"
@stop
@elseif($activepage == 'closed')
@section('closed')
class="active"
class="nav-link active"
@stop
@elseif($activepage == 'approval')
@section('approval')
class="active"
class="nav-link active"
@stop
@elseif($activepage == 'Agent')
@section('answered')
class="active"
class="nav-link active"
@stop
@elseif($activepage == 'Client')
@section('open')
class="active"
class="nav-link active"
@stop
@elseif($activepage == 0)
@section('unassigned')
class="active"
class="nav-link active"
@stop
@else
@section('assigned')
class="active"
class="nav-link active"
@stop
@endif
@@ -95,9 +99,9 @@ if (\Input::has('assigned'))
@stop
@section('content')
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">
<div class="card card-light">
<div class="card-header">
<h3 class="card-title">
@if($activepage == 'trash')
{{Lang::get('lang.trash')}}
@elseif ($activepage == 'mytickets')
@@ -129,10 +133,10 @@ if (\Input::has('assigned'))
</h3>
</div><!-- /.box-header -->
<div class="box-body ">
<div class="card-body ">
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"> </i>
<i class="fas fa-check-circle"> </i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@@ -140,46 +144,69 @@ if (\Input::has('assigned'))
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!}! </b>
<i class="fas fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!}! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="alert alert-success alert-dismissable" style="display: none;">
<i class="fa fa-check-circle"> </i> <span class="success-message"></span>
<i class="fas fa-check-circle"> </i> <span class="success-message"></span>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
<div class="alert alert-danger alert-dismissable" style="display: none;">
<i class="fa fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!}!</b> <span class="error-message"></span>
<i class="fas fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!}!</b> <span class="error-message"></span>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
<!--<div class="mailbox-controls">-->
<!-- Check all button -->
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
<?php $inputs = Input::all(); ?>
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets">
<i class="fas fa-cogs"> </i> {!! Lang::get('lang.merge') !!}
</button>
<?php $inputs = Input::all(); ?>
<div class="btn-group">
<?php $statuses = Finder::getCustomedStatus(); ?>
<button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" id="d1"><i class="fa fa-exchange" style="color:teal;" id="hidespin"> </i><i class="fa fa-spinner fa-spin" style="color:teal; display:none;" id="spin"></i>
<?php $statuses = Finder::getCustomedStatus(); ?>
<button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" id="d1">
<i class="fas fa-exchange-alt" style="color:teal;" id="hidespin"> </i>
<i class="fas fa-spinner fa-spin" style="color:teal; display:none;" id="spin"></i>
{!! Lang::get('lang.change_status') !!} <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<div class="dropdown-menu">
@foreach($statuses as $ticket_status)
<li onclick="changeStatus({!! $ticket_status -> id !!}, '{!! $ticket_status->name !!}')"><a href="#"><i class="{!! $ticket_status->icon !!}" style="color:{!! $ticket_status->icon_color !!};"> </i>{!! $ticket_status->name !!}</a></li>
<a href="javascript:;" class="dropdown-item" onclick="changeStatus({!! $ticket_status -> id !!}, '{!! $ticket_status->name !!}')"
data-toggle="modal" data-target="#myModal">
{!! $ticket_status->name !!}
</a>
@endforeach
</ul>
</div>
</div>
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;">
<i class="fas fa-hand-point-right"> </i> {!! Lang::get('lang.assign') !!}
</button>
@if($activepage == 'trash')
<button form="modalpopup" class="btn btn-sm btn-danger" id="hard-delete" name="submit" type="submit"><i class="fa fa-trash"></i>&nbsp;{{Lang::get('lang.clean-up')}}</button>
<button form="modalpopup" class="btn btn-sm btn-danger" id="hard-delete" name="submit" type="submit">
<i class="fas fa-trash"></i>&nbsp;{{Lang::get('lang.clean-up')}}
</button>
@endif
<p><p/>
<div class="row">
<div class="col-md-5">
</div>
<div class="col-md-6" id="loader1" style="display:none;">
<img src="{{asset("lb-faveo/media/images/gifloader.gif")}}"><br/><br/><br/>
</div>
</div>
<div class="mailbox-messages" id="refresh">
<!--datatable-->
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}
{!!$table->render('vendor.Chumper.template')!!}

View File

@@ -1,17 +1,21 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
class="nav-link active"
@stop
@section('user-bar')
active
class="nav-link active"
@stop
@section('user')
class="active"
@stop
@section('user-directory')
class="nav-link active"
@stop
<!-- header -->
@section('PageHeader')
<h1>{!! Lang::get('lang.create_user') !!}</h1>
@@ -21,64 +25,66 @@ class="active"
@section('content')
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<i class="fas fa-ban"></i>
<b>{!! Lang::get('lang.alert') !!}!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
@if(Session::has('errors'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>{!! Lang::get('lang.alert') !!}!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<br/>
@if($errors->first('first_name'))
<li class="error-message-padding">{!! $errors->first('first_name', ':message') !!}</li>
@endif
@if($errors->first('last_name'))
<li class="error-message-padding">{!! $errors->first('last_name', ':message') !!}</li>
@endif
@if($errors->first('user_name'))
<li class="error-message-padding">{!! $errors->first('user_name', ':message') !!}</li>
@endif
@if($errors->first('email'))
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
@endif
@if($errors->first('country_code'))
<li class="error-message-padding">{!! $errors->first('country_code', ':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
<!-- open a form -->
{!! Form::open(['action'=>'Agent\helpdesk\UserController@store','method'=>'post']) !!}
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">
<div class="card card-light">
<div class="card-header">
<h3 class="card-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>{!! Lang::get('lang.alert') !!}!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<br/>
@if($errors->first('first_name'))
<li class="error-message-padding">{!! $errors->first('first_name', ':message') !!}</li>
@endif
@if($errors->first('last_name'))
<li class="error-message-padding">{!! $errors->first('last_name', ':message') !!}</li>
@endif
@if($errors->first('user_name'))
<li class="error-message-padding">{!! $errors->first('user_name', ':message') !!}</li>
@endif
@if($errors->first('email'))
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
@endif
@if($errors->first('country_code'))
<li class="error-message-padding">{!! $errors->first('country_code', ':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
<div class="card-body">
<div class="row">
<!-- First name : first name : Required -->
<div class="col-xs-6 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
<div class="col-sm-6 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}<span class="text-red"> *</span>
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
</div>
<!-- Last name : last name : Required -->
<div class="col-xs-6 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
<div class="col-sm-6 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
</div>
@@ -86,7 +92,7 @@ class="active"
</div>
<div class="row">
<!-- Email Address : Email : Required -->
<div class="col-xs-6 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
<div class="col-sm-6 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email')) !!}
@if ($email_mandatory->status == 1 || $email_mandatory->status == '1')
<span class="text-red"> *</span>
@@ -94,20 +100,20 @@ class="active"
{!! Form::email('email',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-6 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
<div class="col-sm-6 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}<span class="text-red"> *</span>
{!! Form::text('user_name',null,['class' => 'form-control']) !!}
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group {{ $errors->has('organization') ? 'has-error' : '' }}">
<div class="col-sm-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']) !!}
</div>
</div>
<div class="row">
<div class="col-xs-1 form-group {{ $errors->has('country_code') ? 'has-error' : '' }}">
<div class="col-sm-1 form-group {{ $errors->has('country_code') ? 'has-error' : '' }}">
{!! Form::label('country_code',Lang::get('lang.country-code')) !!}
@if ($email_mandatory->status == 0 || $settings->status == 1)
<span class="text-red"> *</span>
@@ -123,21 +129,21 @@ class="active"
@endif
{!! Form::input('number', 'mobile',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
<div class="col-sm-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-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
<div class="col-sm-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']) !!}
</div>
<div class="col-md-3 form-group {{ $errors->has('active') ? 'has-error' : '' }}">
{!! Form::label('active',Lang::get('lang.status')) !!}
<div class="row">
<div class="col-xs-4">
<div class="col-sm-4">
{!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
</div>
<div class="col-xs-6">
<div class="col-sm-6">
{!! Form::radio('active','0') !!} {{Lang::get('lang.inactive')}}
</div>
</div>
@@ -149,25 +155,28 @@ class="active"
{!! Form::textarea('internal_note',null,['class' => 'form-control', 'size' => '30x5']) !!}
</div>
<!-- Send email to user about registration password -->
<div class="form-group">
<div>
<input type="checkbox" name="send_email" checked> &nbsp;<label> {{ Lang::get('lang.send_password_via_email')}}</label>
</div>
</div>
<div class="box-footer">
{!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
<div class="card-footer">
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
</div>
</div>
<script>
$(function () {
$("textarea").wysihtml5();
$('input[type="checkbox"]').iCheck({
checkboxClass: 'icheckbox_flat-blue'
});
$('input[type="radio"]').iCheck({
radioClass: 'iradio_flat-blue'
});
$("textarea").summernote({
height: 300,
tabsize: 2,
toolbar: [
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']]
]
});
});
</script>
@stop

View File

@@ -27,7 +27,7 @@ class="nav-link active"
@section('content')
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<i class="fas fa-ban"></i>
<b>{!! Lang::get('lang.alert') !!}!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
@@ -180,14 +180,6 @@ class="nav-link active"
['height', ['height']]
]
});
$('input[type="checkbox"]').iCheck({
checkboxClass: 'icheckbox_flat-blue'
});
$('input[type="radio"]').iCheck({
radioClass: 'iradio_flat-blue'
});
});
</script>
@stop

View File

@@ -98,7 +98,7 @@ class="nav-link active"
<div class="card-body ">
<div>
<center>
<img src="{{ $users->profile_pic }}" class="img-circle" alt="User Image" style="border:3px solid #CBCBDA;padding:3px;">
<img src="{{ $users->profile_pic }}" class="img-circle" alt="User Image" style="border:3px solid #CBCBDA;padding:3px;width: 100px;height:100px;">
@if($users->first_name || $users->last_name)
<?php $name_of_user = $users->first_name.' '.$users->last_name; ?>
@else
@@ -111,11 +111,11 @@ class="nav-link active"
<ul class="list-group list-group-unbordered mb-3 mt-3">
@if($users->user_name)
<li class="list-group-item mb-0">
<b>{{Lang::get('lang.user_name')}}</b> <a class="float-right">{{str_limit($users->user_name,10) }}</a>
<b>{{Lang::get('lang.user_name')}}</b> <a class="float-right" title="{{$users->user_name}}">{{str_limit($users->user_name,10) }}</a>
</li>
@endif
<li class="list-group-item mb-0">
<b>{{Lang::get('lang.email')}}</b> <a class="float-right"> {{str_limit($users->email,10) }}</a>
<b>{{Lang::get('lang.email')}}</b> <a class="float-right" title="{{$users->email}}"> {{str_limit($users->email,10) }}</a>
</li>
@if($users->is_delete != '1')
@@ -193,25 +193,26 @@ class="nav-link active"
@if($users->country_code)
<li class="list-group-item mb-0">
<b>{{Lang::get('lang.country_code')}}</b> <a class="float-right"> {{$users->country_code}}</a>
<b>{{Lang::get('lang.country_code')}}</b> <a class="float-right" title="{{$users->country_code}}">
{{str_limit($users->country_code,10) }}</a>
</li>
@endif
@if($users->ext)
<li class="list-group-item mb-0">
<b>{{Lang::get('lang.ext')}}</b> <a class="float-right"> {{$users->ext}}</a>
<b>{{Lang::get('lang.ext')}}</b> <a class="float-right" title="{{$users->ext}}"> {{str_limit($users->ext,10)}}</a>
</li>
@endif
@if($users->mobile)
<li class="list-group-item mb-0">
<b>{{Lang::get('lang.mobile')}}</b> <a class="float-right"> {{$users->mobile}}</a>
<b>{{Lang::get('lang.mobile')}}</b> <a class="float-right" title="{{$users->mobile}}"> {{str_limit($users->mobile,10)}}</a>
</li>
@endif
@if($users->phone_number)
<li class="list-group-item mb-0">
<b>{{Lang::get('lang.phone')}}</b> <a class="float-right"> {{$users->phone_number}}</a>
<b>{{Lang::get('lang.phone')}}</b><a class="float-right" title="{{$users->phone_number}}">{{str_limit($users->phone_number,10)}}</a>
</li>
@endif

View File

@@ -59,6 +59,10 @@
.table { display: block;width: 100%;overflow-x: auto; }
td{ word-break: break-all !important; }
.table { width: 100% !important;display: table !important; }
.list-group-item{ margin-bottom: auto !important; }
</style>
</head>
@@ -487,7 +491,7 @@
</nav>
</div>
<div class="tab-pane" id="tab_ticket">
<div @yield('ticket') class="tab-pane" id="tab_ticket">
<nav class="navbar navbar-expand navbar-dark navbar-lightblue">
@@ -725,7 +729,8 @@
headers: { 'X-CSRF-Token' : $('meta[name=_token]').attr('content') }
});</script>
<script type="text/javascript">
function clickDashboard(e) {
function clickDashboard(e) {
if (e.ctrlKey === true) {
window.open('{{URL::route("dashboard")}}', '_blank');
} else {
@@ -772,17 +777,6 @@
}
</script>
<script>
$(function() {
$('input[type="checkbox"]').iCheck({
checkboxClass: 'icheckbox_flat-blue'
});
$('input[type="radio"]:not(.not-apply)').iCheck({
radioClass: 'iradio_flat-blue'
});
});
</script>
<?php Event::fire('show.calendar.script', array()); ?>
<?php Event::fire('load-calendar-scripts', array()); ?>

View File

@@ -35,7 +35,6 @@ $path = public_path();
"oLanguage": {
"sLengthMenu": "_MENU_ Records per page",
"sSearch" : "Search: ",
"sProcessing": '<img id="blur-bg" class="backgroundfadein" style="top:40%;left:50%; width: 50px; height:50 px; display: block; position: fixed;" src="{!! asset("lb-faveo/media/images/gifloader3.gif") !!}">'
},
"stateLoadParams": function (settings, data) {
if ('{{$load_old_state}}') {