update for version 1.0.1

This commit is contained in:
sujitprasad
2015-10-23 14:15:29 +05:30
parent 82b878e93b
commit 3d425dc380
8348 changed files with 10020 additions and 4171 deletions

View File

@@ -0,0 +1,97 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('staffs')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="row">
<div class="col-md-3">
<!-- Profile Image -->
<div class="box box-primary">
<div class="box-body box-profile">
@if(Auth::user()->profile_pic)
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{ $agent->profile_pic }}"class="profile-user-img img-responsive img-circle" alt="User Image"/>
@else
<img src="{{ Gravatar::src($agent->email) }}" class="profile-user-img img-responsive img-circle" alt="User Image">
@endif
<h3 class="profile-username text-center">{!! $agent->user_name !!}</h3>
<p class="text-muted text-center">Software Engineer</p>
<ul class="list-group list-group-unbordered">
<li class="list-group-item">
<b>Followers</b> <a class="pull-right">1,322</a>
</li>
<li class="list-group-item">
<b>Following</b> <a class="pull-right">543</a>
</li>
<li class="list-group-item">
<b>Friends</b> <a class="pull-right">13,287</a>
</li>
</ul>
<a href="#" class="btn btn-primary btn-block"><b>Follow</b></a>
</div><!-- /.box-body -->
</div><!-- /.box -->
<!-- About Me Box -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">About Me</h3>
</div><!-- /.box-header -->
<div class="box-body">
<strong><i class="fa fa-book margin-r-5"></i> Education</strong>
<p class="text-muted">
B.S. in Computer Science from the University of Tennessee at Knoxville
</p>
<hr>
</div><!-- /.box-body -->
</div><!-- /.box -->
</div><!-- /.col -->
<div class="col-md-9">
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#activity" data-toggle="tab">Activity</a></li>
<li><a href="#timeline" data-toggle="tab">Timeline</a></li>
<li><a href="#settings" data-toggle="tab">Settings</a></li>
</ul>
<div class="tab-content">
<div class="active tab-pane" id="activity">
<!-- Post -->
</div><!-- /.tab-pane -->
<div class="tab-pane" id="timeline">
</div><!-- /.tab-pane -->
<div class="tab-pane" id="settings">
</div><!-- /.tab-pane -->
</div><!-- /.tab-content -->
</div><!-- /.nav-tabs-custom -->
</div><!-- /.col -->
</div>
@stop
@section('FooterInclude')
@stop

View File

@@ -0,0 +1,217 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('staffs')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(array('action' => 'Admin\helpdesk\AgentController@store' , 'method' => 'post') )!!}
<div class="box box-primary">
<div class="content-header">
<h4>Create {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
<div class="row">
<!-- username -->
<div class="col-xs-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}
{!! $errors->first('user_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('user_name',null,['class' => 'form-control']) !!}
</div>
<!-- firstname -->
<div class="col-xs-4 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
</div>
<!-- lastname -->
<div class="col-xs-4 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
</div>
</div>
<div class="row">
<!-- email address -->
<div class="col-xs-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email_address')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::email('email',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
<label for="ext">EXT</label>
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ext',null,['class' => 'form-control']) !!}
</div>
<!-- phone -->
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
</div>
<!-- Mobile -->
<div class="col-xs-4 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
</div>
</div>
<div>
<h4>{{Lang::get('lang.agent_signature')}}</h4>
</div>
<div class="">
{!! Form::textarea('agent_sign',null,['class' => 'form-control','size' => '30x5']) !!}
</div>
<div>
<h4>{{Lang::get('lang.account_status_setting')}}</h4>
</div>
<div class="row">
<div class="col-xs-6">
<!-- Role -->
<div class="form-group {{ $errors->has('role') ? 'has-error' : '' }}">
{!! Form::label('role',Lang::get('lang.role')) !!}
{!! $errors->first('role', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('role','admin',true) !!}{{Lang::get('lang.admin')}}
</div>
<div class="col-xs-3">
{!! Form::radio('role','agent',null) !!}{{Lang::get('lang.agent')}}
</div>
</div>
</div>
<!-- account type -->
<div class="form-group {{ $errors->has('account_type') ? 'has-error' : '' }}">
{!! Form::label('account_type',Lang::get('lang.account_type')) !!}
{!! $errors->first('account_type', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('account_type','1',true) !!}{{Lang::get('lang.active')}}
</div>
<div class="col-xs-3">
{!! Form::radio('account_type','0',null) !!}{{Lang::get('lang.locked')}}
</div>
</div>
</div>
</div>
<div class="col-xs-6">
</div>
</div>
<div class="row">
<!-- assigned group -->
<div class="col-xs-4 form-group {{ $errors->has('assign_group') ? 'has-error' : '' }}">
{!! Form::label('assign_group',Lang::get('lang.assigned_group')) !!}
{!! $errors->first('assign_group', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('assign_group',[''=>'Select a Group','Groups'=>$groups->lists('name','name')],null,['class' => 'form-control select']) !!}
</div>
<!-- primary dept -->
<div class="col-xs-4 form-group {{ $errors->has('primary_dpt') ? 'has-error' : '' }}">
{!! Form::label('primary_dpt',Lang::get('lang.primary_department')) !!}
{!! $errors->first('primary_dpt', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('primary_dpt', [''=>'Select a Department','Departments'=>$departments->lists('name','name')],null,['class' => 'form-control select']) !!}
</div>
<!-- timezone -->
<div class="col-xs-4 form-group {{ $errors->has('agent_tzone') ? 'has-error' : '' }}">
{!! Form::label('agent_tzone',Lang::get('lang.agent_time_zone')) !!}
{!! $errors->first('agent_tzone', '<spam class="help-block">:message</spam>') !!}
{!! Form::select('agent_tzone', [''=>'Select a Time Zone', 'Time Zones'=>$timezones->lists('name','name')],null,['class' => 'form-control select']) !!}
</div>
</div>
<!-- Assign team -->
<div class="{{ $errors->has('team_id') ? 'has-error' : '' }}">
<h4>{{Lang::get('lang.assigned_team')}}</h4>
{!! $errors->first('team_id', '<spam class="help-block">Assign Team is Required</spam>') !!}
</div>
@while (list($key, $val) = each($teams))
<div class="form-group ">
<input type="checkbox" name="team_id[]" value="<?php echo $val;?>" > <?php echo $key;?><br/>
</div>
@endwhile
</div>
@stop
@section('FooterInclude')
@stop
<!-- /content -->

View File

@@ -0,0 +1,247 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('staffs')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
<!-- <h3> -->
<!-- {{Lang::get('lang.agent')}} -->
<!-- <small>Add</small> -->
<!-- </h3> -->
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($user, ['url' => 'agents/'.$user->id,'method' => 'PATCH'] )!!}
<!-- <section class="content"> -->
<div class="box box-primary">
<div class="content-header">
<h4>Edit {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
<div class="row">
<!-- username -->
<div class="col-xs-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}
{!! $errors->first('user_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('user_name',null,['disabled' => 'disabled','class' => 'form-control']) !!}
</div>
<!-- firstname -->
<div class="col-xs-4 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
</div>
<!-- Lastname -->
<div class="col-xs-4 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
</div>
</div>
<div class="row">
<!-- Email -->
<div class="col-xs-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email_address')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::email('email',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
<label for="ext">EXT</label>
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ext',null,['class' => 'form-control']) !!}
</div>
<!-- phone -->
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
{!! $errors->first('phone_number', '<spam class="help-block">Invalid Phone Number</spam>') !!}
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
</div>
<!-- Mobile -->
<div class="col-xs-4 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
{!! $errors->first('mobile', '<spam class="help-block">Invalid Mobile Number</spam>') !!}
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Agent signature -->
<div>
<h4>{{Lang::get('lang.agent_signature')}}</h4>
</div>
<div class="">
{!! Form::textarea('agent_sign',null,['class' => 'form-control','size' => '30x5']) !!}
</div>
<div>
<h4>{{Lang::get('lang.account_status_setting')}}</h4>
</div>
<div class="row">
<div class="col-xs-6">
<!-- role -->
<div class="form-group {{ $errors->has('role') ? 'has-error' : '' }}">
{!! Form::label('role',Lang::get('lang.role')) !!}
{!! $errors->first('role', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('role','admin',true) !!}{{Lang::get('lang.admin')}}
</div>
<div class="col-xs-3">
{!! Form::radio('role','agent',null) !!}{{Lang::get('lang.agent')}}
</div>
</div>
</div>
<!-- acccount type -->
<div class="form-group {{ $errors->has('account_type') ? 'has-error' : '' }}">
{!! Form::label('account_type',Lang::get('lang.account_type')) !!}
{!! $errors->first('account_type', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('account_type','1',true) !!}{{Lang::get('lang.active')}}
</div>
<div class="col-xs-3">
{!! Form::radio('account_type','0',null) !!}{{Lang::get('lang.locked')}}
</div>
</div>
</div>
</div>
<!-- day light saving -->
{{-- <div class="col-xs-6"> --}}
{{-- <div> --}}
{{-- <div class="row"> --}}
{{-- {!! Form::label('',Lang::get('lang.day_light_saving')) !!} --}}
{{-- <div class="col-xs-2"> --}}
{{-- {!! Form::checkbox('daylight_save',1,null,['class' => 'checkbox']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- limit access -->
{{-- <div > --}}
{{-- <div class="row"> --}}
{{-- {!! Form::label('limit_access',Lang::get('lang.limit_access')) !!} --}}
{{-- <div class="col-xs-2"> --}}
{{-- {!! Form::checkbox('limit_access',1,null,['class' => 'checkbox']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- directory listing -->
{{-- <div> --}}
{{-- <div class="row"> --}}
{{-- {!! Form::label('directory_listing',Lang::get('lang.directory_listing')) !!} --}}
{{-- <div class="col-xs-2"> --}}
{{-- {!! Form::checkbox('directory_listing',1,null,['class' => 'checkbox']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- vocation mode -->
{{-- <div> --}}
{{-- <div class="row"> --}}
{{-- {!! Form::label('vocation_mode',Lang::get('lang.vocation_mode')) !!} --}}
{{-- <div class="col-xs-2"> --}}
{{-- {!! Form::checkbox('vocation_mode',1,null,null,['class' => 'checkbox']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- </div> --}}
</div>
<div class="row">
<!-- assigned group -->
<div class="col-xs-4 form-group {{ $errors->has('assign_group') ? 'has-error' : '' }}">
{!! Form::label('assign_group',Lang::get('lang.assigned_group')) !!}
{!! $errors->first('assign_group', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('assign_group', [''=>'Select a Group','Groups'=>$groups->lists('name','name')],null,['class' => 'form-control select']) !!}
</div>
<!-- primary department -->
<div class="col-xs-4 form-group {{ $errors->has('primary_dpt') ? 'has-error' : '' }}">
{!! Form::label('primary_dpt',Lang::get('lang.primary_department')) !!}
{!! $errors->first('primary_dpt', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('primary_dpt', $departments->lists('name','name'),null,['class' => 'form-control select']) !!}
</div>
<!-- agent timezone -->
<div class="col-xs-4 form-group {{ $errors->has('agent_tzone') ? 'has-error' : '' }}">
{!! Form::label('agent_tzone',Lang::get('lang.agent_time_zone')) !!}
{!! $errors->first('agent_tzone', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('agent_tzone', $timezones->lists('name','name'),null,['class' => 'form-control select']) !!}
</div>
</div>
<!-- team -->
<div class="{{ $errors->has('team_id') ? 'has-error' : '' }}">
<h4>{{Lang::get('lang.assigned_team')}}</h4>
{!! $errors->first('team_id', '<spam class="help-block">Assign Team is Required</spam>') !!}
</div>
@while (list($key, $val) = each($teams))
<div class="form-group ">
<input type="checkbox" name="team_id[]" value="<?php echo $val;?> " <?php if (in_array($val, $assign)) {
echo ('checked');
} ?> > &nbsp;<?php echo " ".$key;?><br/>
</div>
@endwhile
</div>
@stop
@section('FooterInclude')
@stop
<!-- /content -->

View File

@@ -0,0 +1,117 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('staffs')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">Staffs</h2><a href="{{route('agents.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_agent')}}</a></div>
<div class="box-body table-responsive no-padding">
<?php
$user = App\User::where('role','!=','user')->orderBy('id', 'ASC')->paginate(20);
?>
<!-- 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>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- Agent table -->
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th width="100px">{{Lang::get('lang.name')}}</th>
<th width="100px">{{Lang::get('lang.user_name')}}</th>
<th width="100px">{{Lang::get('lang.role')}}</th>
<th width="100px">{{Lang::get('lang.status')}}</th>
<th width="100px">{{Lang::get('lang.group')}}</th>
<th width="100px">{{Lang::get('lang.department')}}</th>
<th width="100px">{{Lang::get('lang.created')}}</th>
{{-- <th width="100px">{{Lang::get('lang.lastlogin')}}</th> --}}
<th width="100px">{{Lang::get('lang.action')}}</th>
</tr>
@foreach($user as $use)
@if($use->role == 'admin' || $use->role == 'agent')
<tr>
<td><a href="{{route('agents.edit', $use->id)}}"> {!! $use->first_name !!} {!! " ". $use->last_name !!}</a></td>
<td><a href="{{route('agents.edit', $use->id)}}"> {!! $use->user_name !!}</td>
<?php
if($use->role == 'admin')
{
echo '<td><button class="btn btn-success btn-xs">Admin</button></td>';
}
elseif ($use->role == 'agent') {
echo '<td><button class="btn btn-primary btn-xs">Agent</button></td>';
}
?>
<td>
@if($use->account_type=='1')
<span style="color:green">{{'Active'}}</span>
@else
<span style="color:red">{{'Inactive'}}</span>
@endif
<td>{{$use->assign_group }}</td>
<td>{{$use->primary_dpt }}</td>
<td>{{ UTC::usertimezone($use->created_at) }}</td>
{{-- <td>{{$use->Lastlogin_at}}</td> --}}
<td>
{!! Form::open(['route'=>['agents.destroy', $use->id],'method'=>'DELETE']) !!}
<a href="{{route('agents.edit', $use->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
</td>
</tr>
@endif
@endforeach
</table>
</div>
<div class="box-footer"></div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,104 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('departments')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(array('action' => 'Admin\helpdesk\DepartmentController@store' , 'method' => 'post') )!!}
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Create</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<div class="box-body">
<div class="row">
<!-- name -->
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
<!-- account status -->
<div class="col-xs-6 form-group {{ $errors->has('account_status') ? 'has-error' : '' }}">
{!! Form::label('type',Lang::get('lang.type')) !!}
{!! $errors->first('account_status', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-2">
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.public')}}
</div>
<div class="col-xs-3">
{!! Form::radio('type','0',null) !!}{{Lang::get('lang.private')}}
</div>
</div>
</div>
</div>
<div class="row">
<!-- slaplan -->
<div class="col-xs-6 form-group {{ $errors->has('sla') ? 'has-error' : '' }}">
{!! Form::label('sla',Lang::get('lang.SLA_plan')) !!}
{!! $errors->first('sla', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('sla', ['SLA Plans'=>$slas->lists('grace_period','grace_period')],null,['class' => 'form-control select']) !!}
</div>
<!-- manager -->
<div class="col-xs-6 form-group {{ $errors->has('manager') ? 'has-error' : '' }}">
{!! Form::label('manager',Lang::get('lang.manager')) !!}
{!! $errors->first('manager', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('manager',[''=>'Select a Manager','Managers'=>$user->lists('user_name','user_name')],null,['class' => 'form-control select']) !!}
</div>
</div>
{!! Form::close() !!}
</div>
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,99 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('departments')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!!Form::model($departments, ['url'=>'departments/'.$departments->id , 'method'=> 'PATCH'])!!}
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Edit</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<div class="box-body">
<div class="row">
<!-- name -->
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['disabled'=>'disabled','class' => 'form-control']) !!}
</div>
<!-- account status -->
<div class="col-xs-6 form-group {{ $errors->has('account_status') ? 'has-error' : '' }}">
{!! Form::label('type',Lang::get('lang.type')) !!}
{!! $errors->first('account_status', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-2">
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.public')}}
</div>
<div class="col-xs-3">
{!! Form::radio('type','0',null) !!}{{Lang::get('lang.private')}}
</div>
</div>
</div>
</div>
<div class="row">
<!-- sla -->
<div class="col-xs-6 form-group {{ $errors->has('sla') ? 'has-error' : '' }}">
{!! Form::label('sla',Lang::get('lang.SLA_plan')) !!}
{!! $errors->first('sla', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('sla', ['SLA Plans'=>$slas->lists('grace_period','grace_period')],null,['class' => 'form-control select']) !!}
</div>
<!-- manager -->
<div class="col-xs-6 form-group {{ $errors->has('manager') ? 'has-error' : '' }}">
{!! Form::label('manager',Lang::get('lang.manager')) !!}
{!! $errors->first('manager', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('manager',[''=>'Select a Manager','Managers'=>$user->lists('user_name','user_name')],null,['class' => 'form-control select']) !!}
</div>
</div>
{!!Form::close()!!}
</div>
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,103 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('departments')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">Departments</h2><a href="{{route('departments.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_department')}}</a></div>
<div class="box-body table-responsive no-padding">
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- table -->
<table class="table table-hover" style="overflow:hidden;">
<tr>
<tr>
<th>{{Lang::get('lang.name')}}</th>
<th>{{Lang::get('lang.type')}}</th>
<th>{{Lang::get('lang.department_manager')}}</th>
<th>{{Lang::get('lang.action')}}</th>
</tr>
@foreach($departments as $department)
<tr>
<td><a href="{{route('departments.edit', $department->id)}}"> {{$department -> name }}</a></td>
<td>
@if($department->type=='1')
<span style="color:green">{{'Public'}}</span>
@else
<span style="color:red">{{'Private'}}</span>
@endif
<td>{{$department->manager}}</td>
<td>
{!! Form::open(['route'=>['departments.destroy', $department->id],'method'=>'DELETE']) !!}
<a href="{{route('departments.edit', $department->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</td>
</tr>
</tr>
</table>
</div>
</div>
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,152 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('groups')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(array('action' => 'Admin\helpdesk\GroupController@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">
<div class="row">
<!-- name -->
<div class="col-xs-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
<!-- group status -->
<div class="col-xs-6 form-group {{ $errors->has('group_status') ? 'has-error' : '' }}">
{!! Form::label('group_status',Lang::get('lang.status')) !!}
{!! $errors->first('group_status', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-2">
{!! Form::radio('group_status','1',true) !!}{{Lang::get('lang.enable')}}
</div>
<div class="col-xs-3">
{!! Form::radio('group_status','0',null) !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
</div>
<!-- can create ticket -->
<div class="row">
{!! Form::label('can_create_ticket',Lang::get('lang.can_create_ticket')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_create_ticket',1,null,['class' => 'checkbox']) !!}
</div>
</div>
<!-- can_edit_ticket -->
<div class="row">
{!! Form::label('can_edit_ticket',Lang::get('lang.can_edit_ticket')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_edit_ticket',1,null,['class' => 'checkbox']) !!}
</div>
</div>
<!-- can post ticket -->
<div class="row">
{!! Form::label('can_post_ticket',Lang::get('lang.can_post_ticket')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_post_ticket',1,null,['class' => 'checkbox']) !!}
</div>
</div>
<!-- can_close_ticket -->
<div class="row">
{!! Form::label('can_close_ticket',Lang::get('lang.can_close_ticket')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_close_ticket',1,null,['class' => 'checkbox']) !!}
</div>
</div>
<!-- can delete ticket -->
<div class="row">
{!! Form::label('can_delete_ticket',Lang::get('lang.can_delete_ticket')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_delete_ticket',1,null,['class' => 'checkbox']) !!}
</div>
</div>
<!-- can assign ticket -->
<div class="row">
{!! Form::label('can_assign_ticket',Lang::get('lang.can_assign_ticket')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_assign_ticket',1,null,['class' => 'checkbox']) !!}
</div>
</div>
<!-- can ban email -->
<div class="row">
{!! Form::label('can_ban_email',Lang::get('lang.can_ban_emails')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_ban_email',1,null,['class' => 'checkbox']) !!}
</div>
</div>
</div>
</div>
{!!Form::close()!!}
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,154 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('groups')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!!Form::model($groups, ['url'=>'groups/'.$groups->id , 'method'=> 'PATCH'])!!}
<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">
<div class="row">
<!-- name -->
<div class="col-xs-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['disabled'=>'disabled','class' => 'form-control']) !!}
</div>
<!-- group status -->
<div class="col-xs-6 form-group {{ $errors->has('group_status') ? 'has-error' : '' }}">
{!! Form::label('group_status',Lang::get('lang.status')) !!}
{!! $errors->first('group_status', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-2">
{!! Form::radio('group_status','1',true) !!}{{Lang::get('lang.enable')}}
</div>
<div class="col-xs-3">
{!! Form::radio('group_status','0',null) !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
</div>
<!-- can create ticket -->
<div class="row">
{!! Form::label('can_create_ticket',Lang::get('lang.can_create_ticket')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_create_ticket',1,null,['class' => 'checkbox']) !!}
</div>
</div>
<!-- can_edit_ticket -->
<div class="row">
{!! Form::label('can_edit_ticket',Lang::get('lang.can_edit_ticket')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_edit_ticket',1,null,['class' => 'checkbox']) !!}
</div>
</div>
<!-- can post ticket -->
<div class="row">
{!! Form::label('can_post_ticket',Lang::get('lang.can_post_ticket')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_post_ticket',1,null,['class' => 'checkbox']) !!}
</div>
</div>
<!-- can_close_ticket -->
<div class="row">
{!! Form::label('can_close_ticket',Lang::get('lang.can_close_ticket')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_close_ticket',1,null,['class' => 'checkbox']) !!}
</div>
</div>
<!-- can delete ticket -->
<div class="row">
{!! Form::label('can_delete_ticket',Lang::get('lang.can_delete_ticket')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_delete_ticket',1,null,['class' => 'checkbox']) !!}
</div>
</div>
<!-- can assign ticket -->
<div class="row">
{!! Form::label('can_assign_ticket',Lang::get('lang.can_assign_ticket')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_assign_ticket',1,null,['class' => 'checkbox']) !!}
</div>
</div>
<!-- can ban email -->
<div class="row">
{!! Form::label('can_ban_email',Lang::get('lang.can_ban_emails')) !!}
<div class="col-xs-1">
{!! Form::checkbox('can_ban_email',1,null,['class' => 'checkbox']) !!}
</div>
</div>
</div>
</div>
{!!Form::close()!!}
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,104 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('groups')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">Groups</h2><a href="{{route('groups.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_group')}}</a></div>
<div class="box-body table-responsive no-padding">
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- Table -->
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th>{{Lang::get('lang.group_name')}}</th>
<th>{{Lang::get('lang.status')}}</th>
<th>{{Lang::get('lang.action')}}</th>
</tr>
@foreach($groups as $group)
<tr>
<td><a href="{{route('groups.edit', $group->id)}}"> {{$group -> name }}</a></td>
<td>
@if($group->group_status=='1')
<span style="color:green">{{'Active'}}</span>
@else
<span style="color:red">{{'Inactive'}}</span>
@endif
<td>
{!! Form::open(['route'=>['groups.destroy', $group->id],'method'=>'DELETE']) !!}
<a href="{{route('groups.edit', $group->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</td>
</tr>
</tr>
</table>
</div>
</div>
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,103 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('teams')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(array('action' => 'Admin\helpdesk\TeamController@store' , 'method' => 'post') )!!}
<div class="box box-primary">
<div class="content-header">
<h4>Create {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
<div class="row">
<!-- name -->
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
<!-- team lead -->
<div class="col-xs-6 form-group {{ $errors->has('team_lead') ? 'has-error' : '' }}">
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
{!! $errors->first('team_lead', '<spam class="help-block">:message</spam>') !!}
<?php $user = App\User::where('role','admin')->orWhere('role','agent')->get(); ?>
{!! Form::select('team_lead',[''=>'Select a Team Leader','Members'=>$user->lists('user_name','id')],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- status -->
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
{!! Form::label('status',Lang::get('lang.status')) !!}
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-1">
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}
</div>
<div class="col-xs-2">
{!! Form::radio('status','0',null) !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
<!-- admin notes -->
<div class="form-group">
{!! Form::label('admin_notes',Lang::get('lang.admin_notes')) !!}
{!! Form::textarea('admin_notes',null,['class' => 'form-control','size' => '30x5']) !!}
</div>
{!!Form::close()!!}
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,102 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('teams')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!!Form::model($teams, ['url'=>'teams/'.$teams->id , 'method'=> 'PATCH'])!!}
<div class="box box-primary">
<div class="content-header">
<h4>Create {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
<div class="row">
<!-- name -->
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
<!-- team lead -->
<div class="col-xs-6 form-group {{ $errors->has('team_lead') ? 'has-error' : '' }}">
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
{!! $errors->first('team_lead', '<spam class="help-block">:message</spam>') !!}
<?php $user = App\User::where('role','admin')->orWhere('role','agent')->get(); ?>
{!! Form::select('team_lead',[''=>'Select a Team Leader','Members'=>$user->lists('user_name','id')],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- status -->
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
{!! Form::label('status',Lang::get('lang.status')) !!}
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-1">
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}
</div>
<div class="col-xs-2">
{!! Form::radio('status','0',null) !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
<!-- admin notes -->
<div class="form-group">
{!! Form::label('admin_notes',Lang::get('lang.admin_notes')) !!}
{!! Form::textarea('admin_notes',null,['class' => 'form-control','size' => '30x5']) !!}
</div>
{!!Form::close()!!}
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,105 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
class="active"
@stop
@section('staffs-bar')
active
@stop
@section('teams')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.teams')}}</h2><a href="{{route('teams.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_team')}}</a></div>
<div class="box-body table-responsive no-padding">
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th>{{Lang::get('lang.name')}}</th>
<th>{{Lang::get('lang.status')}}</th>
<th>{{Lang::get('lang.team_members')}}</th>
<th>{{Lang::get('lang.team_lead')}}</th>
<th>{{Lang::get('lang.action')}}</th>
</tr>
@foreach($teams as $team)
<tr>
<td><a href="{{route('teams.edit', $team->id)}}"> {{$team -> name }}</a></td>
<td>
@if($team->status=='1')
<span style="color:green">{{'Active'}}</span>
@else
<span style="color:red">{{'Inactive'}}</span>
@endif
<td>{{count($assign_team_agent->where('team_id',$team->id))}}</td>
<td>{{$team->team_lead}}</td>
<td>
{!! Form::open(['route'=>['teams.destroy', $team->id],'method'=>'DELETE']) !!}
<!-- To pop up a confirm Message -->
<a href="{{route('teams.edit', $team->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,27 @@
@extends('themes.default1.admin.layout.admin')
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
<h3>
Dashboard
<!-- <small>Add</small> -->
</h3>
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,106 @@
@extends('themes.default1.admin.layout.admin')
@section('Emails')
class="active"
@stop
@section('emails-bar')
active
@stop
@section('ban')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
{!! Form::open(['action' => 'Admin\helpdesk\BanlistController@store','method' => 'POST']) !!}
@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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{{Lang::get('lang.ban_email')}}</h3>
<div class="pull-right">
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}</div>
</div>
<!-- Ban Status : Radio form : Required -->
<div class="box-body table-responsive"style="overflow:hidden;">
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('ban_status') ? 'has-error' : '' }}">
{!! Form::label('ban_status',Lang::get('lang.ban_status')) !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('ban_status',1) !!}{{Lang::get('lang.active')}}
</div>
<div class="col-xs-3">
{!! Form::radio('ban_status',0) !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
<!-- email Address : Text form : Required -->
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email_address')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('email',null,['class' => 'form-control']) !!}
</div>
<!-- intrnal 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>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,86 @@
@extends('themes.default1.admin.layout.admin')
@section('Emails')
class="active"
@stop
@section('emails-bar')
active
@stop
@section('ban')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
{!! Form::model($bans,['url'=>'banlist/'.$bans->id,'method'=>'PATCH']) !!}
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{{Lang::get('lang.ban_email')}}</h3>
<div class="pull-right">
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}</div>
</div>
<!-- Ban Status : Radio form : Required -->
<div class="box-body table-responsive"style="overflow:hidden;">
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('ban_status') ? 'has-error' : '' }}">
{!! Form::label('ban_status',Lang::get('lang.ban_status')) !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('ban',1) !!}{{Lang::get('lang.active')}}
</div>
<div class="col-xs-3">
{!! Form::radio('ban',0) !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
<!-- email Address : Text form : Required -->
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email_address')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('email',null,['disabled'=>'disabled','class' => 'form-control']) !!}
</div>
<!-- intrnal 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>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,96 @@
@extends('themes.default1.admin.layout.admin')
@section('Emails')
class="active"
@stop
@section('emails-bar')
active
@stop
@section('ban')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.banlists')}}</h2><a href="{{route('banlist.create')}}" class="pull-right btn btn-primary">{{Lang::get('lang.ban_email')}}</a>
</div>
<div class="box-body table-responsive no-padding">
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th width="100px">{{Lang::get('lang.email_address')}}</th>
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
<th width="100px">{{Lang::get('lang.action')}}</th>
</tr>
<!-- Foreach @var bans as @var ban -->
@foreach($bans as $ban)
<tr>
<!-- Email Address with Link to Edit page along Id -->
<td><a href="{{route('banlist.edit',$ban->id)}}">{!! $ban->email !!}</a></td>
<!-- Last Updated -->
<td> {!! UTC::usertimezone($ban->updated_at) !!} </td>
<!-- Deleting Fields -->
<td>
{!! Form::open(['route'=>['banlist.destroy', $ban->id],'method'=>'DELETE']) !!}
<a href="{{route('banlist.edit',$ban->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
</td>
@endforeach
</tr>
<!-- Set a link to Create Page -->
</table>
</div>
</div>
</div>
</div>
@stop

View File

@@ -0,0 +1,299 @@
@extends('themes.default1.admin.layout.admin')
@section('Emails')
class="active"
@stop
@section('emails-bar')
active
@stop
@section('emails')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!!Form::open(['action'=>'Admin\helpdesk\EmailsController@store','method'=>'POST'])!!}
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">{{Lang::get('lang.create')}}</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<div class="box-body">
<div class="row">
<!-- email address -->
<div class="col-xs-6 form-group {{ $errors->has('email_address') ? 'has-error' : '' }}">
{!! Form::label('email_address',Lang::get('lang.email_address')) !!}
{!! $errors->first('email_address', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('email_address',null,['class' => 'form-control']) !!}
</div>
<!-- Email name -->
<div class="col-xs-6 form-group {{ $errors->has('email_name') ? 'has-error' : '' }}">
{!! Form::label('email_name',Lang::get('lang.email_name')) !!}
{!! $errors->first('email_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('email_name',null,['class' => 'form-control']) !!}
</div>
</div>
<div class="row">
<!-- department -->
<div class="col-xs-4 form-group {{ $errors->has('department') ? 'has-error' : '' }}">
{!! Form::label('department',Lang::get('lang.department')) !!}
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('department', [''=>'Select a Department','departments'=>$departments->lists('name','id')],null,['class' => 'form-control select']) !!}
</div>
<!-- Priority -->
<div class="col-xs-4 form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
{!! Form::label('priority',Lang::get('lang.priority')) !!}
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('priority', [''=>'Select a Priority','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control select']) !!}
</div>
<!-- Help topic -->
<div class="col-xs-4 form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
{!! Form::label('help_topic',Lang::get('lang.help_topic')) !!}
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('help_topic', [''=>'Select a Helptopic','Help Topics'=>$helps->lists('topic','topic')],null,['class' => 'form-control select']) !!}
</div>
</div>
<!-- Auto response -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::label('',Lang::get('lang.auto_response')) !!} --}}
{{-- <div class="col-xs-1"> --}}
{{-- {!! Form::checkbox('auto_response',1,null,['class' => 'checkbox']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<hr>
<div class="row">
<div class="col-md-6 form-group">
<h4>Reuired Authentication</h4>
</div>
</div>
<div class="row">
<!-- Username -->
<div class="col-xs-6 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
{!! Form::label('user_name',Lang::get('lang.email_address')) !!}
{!! $errors->first('user_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('user_name',null,['class' => 'form-control']) !!}
</div>
<!-- password -->
<div class="col-xs-6 form-group {{ $errors->has('password') ? 'has-error' : '' }}">
{!! Form::label('password',Lang::get('lang.password')) !!}
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
{!! Form::password('password',['class' => 'form-control']) !!}
</div>
</div>
<hr>
<div class="row">
<div class="col-md-6 form-group">
<h4>Fetching Email via IMAP or POP</h4>
</div>
</div>
<div class="row">
<div class="form-group">
<!-- status -->
<div class="col-xs-1 form-group">
{!! Form::label('fetching_status',Lang::get('lang.status')) !!}
</div>
<div class="col-xs-2 form-group">
{!! Form::radio('fetching_status','1',true) !!}{{Lang::get('lang.enable')}}
</div>
<div class="col-xs-2 form-group">
{!! Form::radio('fetching_status','0',null) !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
<div class="row">
<div class="col-xs-4 form-group {{ $errors->has('fetching_host') ? 'has-error' : '' }}">
{!! Form::label('fetching_host',Lang::get('lang.host_name')) !!}
{!! $errors->first('fetching_host', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('fetching_host',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-4 form-group {{ $errors->has('fetching_port') ? 'has-error' : '' }}">
{!! Form::label('fetching_port',Lang::get('lang.port_number')) !!}
{!! $errors->first('fetching_port', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('fetching_port',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-4 form-group {{ $errors->has('mailbox_protocol') ? 'has-error' : '' }}">
{!! Form::label('mailbox_protocol',Lang::get('lang.mail_box_protocol')) !!}
{!! $errors->first('mailbox_protocol', '<spam class="help-block">:message</spam>') !!}
<select class="form-control" name="mailbox_protocol">
<option value="/imap/ssl">IMAP+SSL</option>
<option value="/imap/tls">IMAP+TLS</option>
<option value="/imap">IMAP</option>
</select>
</div>
<!-- imap config -->
{{-- <div class="col-md-6 form-group {{ $errors->has('imap_config') ? 'has-error' : '' }}">
{!! Form::label('imap_config',Lang::get('lang.imap_config')) !!}
{!! $errors->first('imap_config', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('imap_config',null,['class' => 'form-control']) !!}
</div> --}}
</div>
{{-- <div class="row"> --}}
{{-- <div class="col-md-6 form-group"> --}}
{{-- <h4>Sending Email via SMTP</h4> --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- <div class="row"> --}}
<!-- status -->
{{-- <div class="form-group"> --}}
{{-- <div class="col-xs-1 form-group"> --}}
{{-- {!! Form::label('sending_status',Lang::get('lang.status')) !!} --}}
{{-- </div> --}}
{{-- <div class="col-xs-2 form-group"> --}}
{{-- {!! Form::radio('sending_status','1',true) !!}{{Lang::get('lang.enable')}} --}}
{{-- </div> --}}
{{-- <div class="col-xs-2 form-group"> --}}
{{-- {!! Form::radio('sending_status','0',null) !!}{{Lang::get('lang.disabled')}} --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- <div class="row"> --}}
<!-- sending port -->
{{-- <div class="col-xs-6 form-group {{ $errors->has('sending_port') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('sending_port',Lang::get('lang.port_number')) !!} --}}
{{-- {!! $errors->first('sending_port', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!! Form::text('sending_port',null,['class' => 'form-control']) !!} --}}
{{-- </div> --}}
<!-- sending hoost -->
{{-- <div class="col-xs-6 form-group {{ $errors->has('sending_host') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('sending_host',Lang::get('lang.host_name')) !!} --}}
{{-- {!! $errors->first('sending_host', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!! Form::text('sending_host',null,['class' => 'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<div class="row">
<!-- authentication required -->
{{-- <div class="form-group"> --}}
{{-- <div class="col-xs-2 form-group"> --}}
{{-- {!! Form::label('authentication',Lang::get('lang.authentication_required')) !!} --}}
{{-- </div> --}}
{{-- <div class="col-xs-2 form-group"> --}}
{{-- {!! Form::radio('authentication','1',true) !!}{{Lang::get('lang.enable')}} --}}
{{-- </div> --}}
{{-- <div class="col-xs-2 form-group"> --}}
{{-- {!! Form::radio('authentication','0',null) !!}{{Lang::get('lang.disabled')}} --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- <div class="form-group"> --}}
<!-- header snoofing -->
{{-- <div class="col-xs-2"> --}}
{{-- {!! Form::label('',Lang::get('lang.header_spoofing')) !!} --}}
{{-- {!! Form::checkbox('header_spoofing',1,null,['class' => 'checkbox']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
</div>
<!-- Internal notes -->
<div class="form-group">
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '30x5']) !!}
</div>
{!!Form::close()!!}
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,212 @@
@extends('themes.default1.admin.layout.admin')
@section('Emails')
class="active"
@stop
@section('emails-bar')
active
@stop
@section('emails')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!!Form::model($emails,['url'=>'emails/'.$emails->id,'method'=>'PATCH'])!!}
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">{{Lang::get('lang.create')}}</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<div class="box-body">
<div class="row">
<!-- email address -->
<div class="col-xs-6 form-group {{ $errors->has('email_address') ? 'has-error' : '' }}">
{!! Form::label('email_address',Lang::get('lang.email_address')) !!}
{!! $errors->first('email_address', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('email_address',null,['disabled'=>'disabled','class' => 'form-control']) !!}
</div>
<!-- email name -->
<div class="col-xs-6 form-group {{ $errors->has('email_name') ? 'has-error' : '' }}">
{!! Form::label('email_name',Lang::get('lang.email_name')) !!}
{!! $errors->first('email_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('email_name',null,['class' => 'form-control']) !!}
</div>
</div>
<div class="row">
<!-- department -->
<div class="col-xs-4 form-group {{ $errors->has('department') ? 'has-error' : '' }}">
{!! Form::label('department',Lang::get('lang.department')) !!}
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('department', [''=>'Select a Department','departments'=>$departments->lists('name','id')],null,['class' => 'form-control select']) !!}
</div>
<!-- priority -->
<div class="col-xs-4 form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
{!! Form::label('priority',Lang::get('lang.priority')) !!}
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('priority', [''=>'Select a Priority','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control select']) !!}
</div>
<!-- help topic -->
<div class="col-xs-4 form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
{!! Form::label('help_topic',Lang::get('lang.help_topic')) !!}
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('help_topic', [''=>'Select a Helptopic','Help Topics'=>$helps->lists('topic','topic')],null,['class' => 'form-control select']) !!}
</div>
</div>
<!-- auto response -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::label('',Lang::get('lang.auto_response')) !!} --}}
{{-- <div class="col-xs-1"> --}}
{{-- {!! Form::checkbox('auto_response',1,null,['class' => 'checkbox']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<hr>
<div class="row">
<div class="col-md-6 form-group">
<h4>Reuired Authentication</h4>
</div>
</div>
<div class="row">
<!-- user name -->
<div class="col-xs-6 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
{!! Form::label('user_name',Lang::get('lang.email_address')) !!}
{!! $errors->first('user_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('user_name',null,['class' => 'form-control']) !!}
</div>
<!-- password -->
<div class="col-xs-6 form-group {{ $errors->has('password') ? 'has-error' : '' }}">
{!! Form::label('password',Lang::get('lang.password')) !!}
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
<input type="password" name="password" value="<?php echo Crypt::decrypt($emails->password); ?>" class="form-control" >
</div>
</div>
<hr>
<div class="row">
<div class="col-md-6 form-group">
<h4>Fetching Email via IMAP</h4>
</div>
</div>
<div class="row">
<div class="form-group">
<!-- status -->
<div class="col-xs-1 form-group">
{!! Form::label('fetching_status',Lang::get('lang.status')) !!}
</div>
<div class="col-xs-2 form-group">
{!! Form::radio('fetching_status','1',true) !!}{{Lang::get('lang.enable')}}
</div>
<div class="col-xs-2 form-group">
{!! Form::radio('fetching_status','0',null) !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
<div class="row">
<div class="col-xs-4 form-group">
{!! Form::label('fetching_host',Lang::get('lang.host_name')) !!}
{!! Form::text('fetching_host',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-4 form-group">
{!! Form::label('fetching_port',Lang::get('lang.port_number')) !!}
{!! Form::text('fetching_port',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-4 form-group {{ $errors->has('mailbox_protocol') ? 'has-error' : '' }}">
{!! Form::label('mailbox_protocol',Lang::get('lang.mail_box_protocol')) !!}
{!! $errors->first('mailbox_protocol', '<spam class="help-block">:message</spam>') !!}
<select class="form-control" name="mailbox_protocol">
<option value="/imap/ssl" <?php if($emails->mailbox_protocol == '/imap/ssl'){ echo 'selected="selected"'; } ?>>IMAP+SSL</option>
<option value="/imap/tls" <?php if($emails->mailbox_protocol == '/imap/tls'){ echo 'selected="selected"'; } ?> >IMAP+TLS</option>
<option value="/imap" <?php if($emails->mailbox_protocol == '/imap'){ echo 'selected="selected"'; } ?> >IMAP</option>
</select>
</div>
<!-- imap config -->
</div>
<!-- internal notes -->
<div class="form-group">
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '30x5']) !!}
</div>
{!!Form::close()!!}
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,100 @@
@extends('themes.default1.admin.layout.admin')
@section('Emails')
class="active"
@stop
@section('emails-bar')
active
@stop
@section('emails')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">Incoming Emails</h2><a href="{{route('emails.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_email')}}</a></div>
<div class="box-body table-responsive no-padding">
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- table -->
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th width="100px">{{Lang::get('lang.email')}}</th>
<th width="100px">{{Lang::get('lang.priority')}}</th>
<th width="100px">{{Lang::get('lang.department')}}</th>
<th width="100px">{{Lang::get('lang.created')}}</th>
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
<th width="100px">{{Lang::get('lang.action')}}</th>
</tr>
@foreach($emails as $email)
<tr>
<td><a href="{{route('emails.edit', $email->id)}}"> {{$email -> email_address }}</a></td>
<td>{{ ucfirst($email->priority) }}</td>
<td>{{ $email->department }}</td>
<td>{{ UTC::usertimezone($email->created_at) }}</td>
<td>{{ UTC::usertimezone($email->updated_at) }}</td>
<td>
{!! Form::open(['route'=>['emails.destroy', $email->id],'method'=>'DELETE']) !!}
<a href="{{route('emails.edit', $email->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</table>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,107 @@
@extends('themes.default1.admin.layout.admin')
@section('Emails')
class="active"
@stop
@section('emails-bar')
active
@stop
@section('smtp')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
@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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
{!! Form::model($settings,['url'=>'post-smtp','method'=>'PATCH']) !!}
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">Outgoing Email</h3>
<div class="pull-right">
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
</div>
</div>
<!-- Ban Status : Radio form : Required -->
<div class="box-body table-responsive"style="overflow:hidden;">
<div class="row">
<!-- email Address : Text form : Required -->
<div class="col-md-3 form-group {{ $errors->has('driver') ? 'has-error' : '' }}">
{!! Form::label('driver',Lang::get('lang.driver')) !!}
{!! $errors->first('driver', '<spam class="help-block">:message</spam>') !!}
<select name="driver" class="form-control">
<option> select </option>
<option <?php if($settings->driver == "smtp"){ echo "selected='selected'"; } ?> value="smtp">smtp</option>
<option <?php if($settings->driver == "mail"){ echo "selected='selected'"; } ?> value="mail">mail</option>
</select>
</div>
<div class="col-md-3 form-group {{ $errors->has('host') ? 'has-error' : '' }}">
{!! Form::label('host',Lang::get('lang.host')) !!}
{!! $errors->first('host', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('host',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-3 form-group {{ $errors->has('port') ? 'has-error' : '' }}">
{!! Form::label('port',Lang::get('lang.port')) !!}
{!! $errors->first('port', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('port',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-3 form-group {{ $errors->has('encryption') ? 'has-error' : '' }}">
{!! Form::label('encryption',Lang::get('lang.encryption')) !!}
{!! $errors->first('encryption', '<spam class="help-block">:message</spam>') !!}
<select name="encryption" class="form-control">
<option> select </option>
<option <?php if($settings->encryption == "ssl"){ echo "selected='selected'"; } ?> value="ssl">SSL</option>
<option <?php if($settings->encryption == "tls"){ echo "selected='selected'"; } ?> value="tls">TLS</option>
</select>
</div>
<div class="col-md-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
<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::text('email',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-4 form-group {{ $errors->has('password') ? 'has-error' : '' }}">
{!! Form::label('password',Lang::get('lang.password')) !!}
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
<input type="password" name="password" value="<?php if($settings->password){ echo Crypt::decrypt($settings->password); } ?>" class="form-control">
</div>
</div>
</div>
</div>
@stop

View File

@@ -0,0 +1 @@
Your Email connection Checking Success !!

View File

@@ -0,0 +1,113 @@
@extends('themes.default1.admin.layout.admin')
@section('Emails')
class="active"
@stop
@section('emails-bar')
active
@stop
@section('template')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
{!! Form::open(['action' => 'Admin\helpdesk\TemplateController@store','method' => 'post']) !!}
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-body">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.create')}}</h2>
<div class="pull-right">
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}</div>
</div>
<div class="box-body table-responsive no-padding"style="overflow:hidden">
<div class="row">
<!-- Status : Radio form : Required -->
<div class="col-md-6 form-group {{ $errors->has('ban_status') ? 'has-error' : ''}}">
<div class="row col-xs-3">
{!! Form::label('status',Lang::get('lang.status')) !!}
</div>
<div class="row">
<div class="col-xs-3">
{!! Form::radio('ban_status','active',true) !!}{{Lang::get('lang.active')}}
</div>
<div class="col-xs-3">
{!! Form::radio('ban_status','disabled') !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
</div>
<!-- Name : Text form : Required -->
<div class="row">
<div class="col-md-4">
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Form for template set to clone From template table : Drop down : required -->
<div class="col-md-4">
<div class="form-group {{ $errors->has('template_set_to_clone') ? 'has-error' : '' }}">
{!! Form::label('template_set_to_clone',Lang::get('lang.template_set_to_clone')) !!}
{!! $errors->first('template_set_to_clone', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('template_set_to_clone', [''=>'Select a Template','Templates'=>$templates->lists('name','name')],1,['class' => 'form-control']) !!}
</div>
</div>
<!-- Language field to Set the language in the template -->
<div class="col-md-4">
<div class="form-group {{ $errors->has('language') ? 'has-error' : '' }}">
{!! Form::label('language',Lang::get('lang.language')) !!}
{!! $errors->first('language', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('language', [''=>'Select a Language','Languages'=>$languages->lists('name','name')],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- intrnal Notes : Textarea : -->
<div class="col-md-12">
<div class="form-group">
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
</div>
</div>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,115 @@
@extends('themes.default1.admin.layout.admin')
@section('Emails')
class="active"
@stop
@section('emails-bar')
active
@stop
@section('template')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
{!! Form::model($templates,['url' => 'template/'.$templates->id,'method' => 'PATCH']) !!}
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-body">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.create')}}</h2>
<div class="pull-right">
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}</div>
</div>
<div class="box-body table-responsive no-padding"style="overflow:hidden">
<div class="row">
<!-- Status : Radio form : Required -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
<div class="row col-xs-3">
{!! Form::label('status',Lang::get('lang.status')) !!}
</div>
<div class="row">
<div class="col-xs-3">
{!! Form::radio('ban_status','active',true) !!}{{Lang::get('lang.active')}}
</div>
<div class="col-xs-3">
{!! Form::radio('ban_status','disabled') !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
</div>
</div>
<!-- Name : Text form : Required -->
<div class="row">
<div class="col-md-4">
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['disabled'=>'disabled','class' => 'form-control']) !!}
</div>
</div>
<!-- Form for template set to clone From template table : Drop down : required -->
<div class="col-md-4">
<div class="form-group {{ $errors->has('template_set_to_clone') ? 'has-error' : '' }}">
{!! Form::label('template_set_to_clone',Lang::get('lang.template_set_to_clone')) !!}
{!! $errors->first('template_set_to_clone', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('template_set_to_clone', [''=>'Select a Template','Templates'=>$templates->lists('name','name')],1,['class' => 'form-control']) !!}
</div>
</div>
<!-- Language field to Set the language in the template -->
<div class="col-md-4">
<div class="form-group {{ $errors->has('language') ? 'has-error' : '' }}">
{!! Form::label('language',Lang::get('lang.language')) !!}
{!! $errors->first('language', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('language', [''=>'Select a Language','Languages'=>$languages->lists('name','name')],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- intrnal Notes : Textarea : -->
<div class="col-md-12">
<div class="form-group">
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
</div>
</div>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,78 @@
@extends('themes.default1.admin.layout.admin')
@section('Emails')
class="active"
@stop
@section('emails-bar')
active
@stop
@section('diagno')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
{!! Form::open(['method'=>'post' , 'action'=>'Admin\helpdesk\TemplateController@postDiagno']) !!}
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">{{Lang::get('lang.diagnostics')}}</h4> {!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<div class="box-body">
<!-- To : define To Address : Text form : Required -->
<div class="form-group {{ $errors->has('to') ? 'has-error' : '' }}">
{!! Form::label('to',Lang::get('lang.to')) !!}
{!! $errors->first('to', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('to',null,['class' => 'form-control']) !!}
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,116 @@
@extends('themes.default1.admin.layout.admin')
@section('Emails')
class="active"
@stop
@section('emails-bar')
active
@stop
@section('template')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.templates')}}</h2><a href="{{route('template.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_template')}}</a></div>
<div class="box-body table-responsive no-padding">
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th width="100px">{{Lang::get('lang.name')}}</th>
<th width="100px">{{Lang::get('lang.status')}}</th>
<th width="100px">{{Lang::get('lang.in_use')}}</th>
<th width="100px">{{Lang::get('lang.created')}}</th>
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
<th width="100px">{{Lang::get('lang.action')}}</th>
</tr>
<!-- Foreach @var templates as @var template -->
@foreach($templates as $template)
<tr>
<!-- Template Name with Link to Edit page along Id -->
<td><a href="{{route('template.edit',$template->id)}}">{!! $template->name !!}</a></td>
<!-- template Status : if status==1 active -->
<td>
@if($template->status=='1')
<p style="color:green">Active</p>
@else
<p style="color:red">Disable</p>
@endif
</td>
<!-- To show Whether a template in use or not:: TODO -->
<td></td>
<!-- Date Added -->
<td>{!! UTC::usertimezone($template->created_at) !!}</td>
<!-- Last Updated -->
<td> {!! UTC::usertimezone($template->updated_at) !!} </td>
<!-- Deleting Fields -->
<td>
{!! Form::open(['route'=>['template.destroy', $template->id],'method'=>'DELETE']) !!}
<a href="{{route('template.edit',$template->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
</td>
@endforeach
</tr>
<!-- Set a link to Create Page -->
</table>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,40 @@
@extends('themes.default1.layouts.login')
@section('body')
<div class="login-box-body">
<p class="login-box-msg">Sign in to start your session</p>
<form action="../../index2.html" method="post">
<div class="form-group has-feedback">
<!-- email -->
<input type="text" class="form-control" placeholder="Email"/>
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<!-- password -->
<input type="password" class="form-control" placeholder="Password"/>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="row">
<div class="col-xs-8">
<div class="checkbox icheck">
<label>
<input type="checkbox"> Remember Me
</label>
</div>
</div><!-- /.col -->
<div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block btn-flat">Sign In</button>
</div><!-- /.col -->
</div>
</form>
<div class="social-auth-links text-center">
<p>- OR -</p>
<a href="#" class="btn btn-block btn-social btn-facebook btn-flat"><i class="fa fa-facebook"></i> Sign in using Facebook</a>
<a href="#" class="btn btn-block btn-social btn-google-plus btn-flat"><i class="fa fa-google-plus"></i> Sign in using Google+</a>
</div><!-- /.social-auth-links -->
<a href="#">I forgot my password</a><br>
<a href="register.html" class="text-center">Register a new membership</a>
</div>
@stop

View File

@@ -0,0 +1,113 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('form')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(['action' => 'Admin\helpdesk\FormController@store','method' => 'post']) !!}
<div class="row">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-body">
<div class="box-header">
<h2 class="box-title"style="margin-left:-10px">{{Lang::get('lang.create')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
<!-- title: text -->
<div class="box-body table-responsive no-padding"style="overflow:hidden">
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title',Lang::get('lang.title')) !!}
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('title',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- declare table head Label -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('label') ? 'has-error' : '' }}">
{!! Form::label('label',Lang::get('lang.label')) !!}
{!! $errors->first('label', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('label',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- declare table head type -->
<div class="col-md-4">
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
{!! Form::label('type',Lang::get('lang.type')) !!}
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('type', [''=>'Select a Type','types'=>$type->lists('type','id')] ,null,['class' => 'form-control'] ) !!}
</div>
</div>
<!-- declare table head Vissibility -->
<div class="col-md-4">
<div class="form-group {{ $errors->has('visibility') ? 'has-error' : '' }}">
{!! Form::label('visibility',Lang::get('lang.visibility')) !!}
{!! $errors->first('visibility', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('visibility', [''=>'Select a Visibility','visibilities' =>$visibility->lists('visibility','id')],null,['class' => 'form-control'] ) !!}
</div>
</div>
<!-- declare table head variable -->
<div class="col-md-4">
<div class="form-group">
{!! Form::label('variable',Lang::get('lang.variable')) !!}
{!! Form::text('variable',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- instruction: textarea -->
<div class="col-md-6">
<div class="form-group">
{!! Form::label('instruction',Lang::get('lang.instruction')) !!}
{!! Form::textarea('instruction',null,['class' => 'form-control','size' => '10x5']) !!}
</div>
</div>
<!-- /table -->
<!-- txt area -->
<div class="col-md-6">
<div class="form-group">
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,112 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('form')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($forms,['url' => 'form/'.$forms->id,'method' => 'PATCH']) !!}
<div class="row">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-body">
<div class="box-header">
<h2 class="box-title"style="margin-left:-10px">{{Lang::get('lang.create')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
<!-- title: text -->
<div class="box-body table-responsive no-padding"style="overflow:hidden">
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title',Lang::get('lang.title')) !!}
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('title',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- declare table head Label -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('label') ? 'has-error' : '' }}">
{!! Form::label('label',Lang::get('lang.label')) !!}
{!! $errors->first('label', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('label',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- declare table head type -->
<div class="col-md-4">
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
{!! Form::label('type',Lang::get('lang.type')) !!}
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('type', [''=>'Select a Type','types'=>$type->lists('type','id')] ,null,['class' => 'form-control'] ) !!}
</div>
</div>
<!-- declare table head Vissibility -->
<div class="col-md-4">
<div class="form-group {{ $errors->has('visibility') ? 'has-error' : '' }}">
{!! Form::label('visibility',Lang::get('lang.visibility')) !!}
{!! $errors->first('visibility', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('visibility', [''=>'Select a Visibility','visibilities' =>$visibility->lists('visibility','id')],null,['class' => 'form-control'] ) !!}
</div>
</div>
<!-- declare table head variable -->
<div class="col-md-4">
<div class="form-group">
{!! Form::label('variable',Lang::get('lang.variable')) !!}
{!! Form::text('variable',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- instruction: textarea -->
<div class="col-md-6">
<div class="form-group">
{!! Form::label('instruction',Lang::get('lang.instruction')) !!}
{!! Form::textarea('instruction',null,['class' => 'form-control','size' => '10x5']) !!}
</div>
</div>
<!-- /table -->
<!-- txt area -->
<div class="col-md-6">
<div class="form-group">
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,145 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('forms')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
@if(Session::has('fails'))
<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>
{{Session::get('fails')}}
</div>
@endif
<!-- -->
<div class="box">
<div class="box-header">
<h3 class="box-title">Instructions</h3>
<div class="callout callout-default" style="font-style: oblique;">Select field type you want to add to the form below and click on 'Type' dropdown. Don't forget to set field options if type is select,checkbox or radio..Separate each option by a coma. After you finish creating the form, you can save the form by clicking Save Form button.</div>
</div>
<hr style="margin-top:0px;margin-bottom:0px;">
<div class="box-header">
<h3 class="box-title">Form Properties</h3>
</div>
{!! Form::open(['route'=>'forms.store']) !!}
<div class="form-group">
<div class="row">
<div class="col-md-4">
</div></div></div>
<div class="form-group">
<div class="row" style="margin-top: 10px;">
<div class="col-md-4">
<h4 style="text-align: center">Form Name:</h4>
</div>
<div class="col-md-4">
<input type="text" name="formname" class="form-control">
</div>
</div></div>
<hr style="margin-top:0px;margin-bottom:0px;">
<div class="form-group">
<div class="box-header">
<h3 class="box-title">Adding Fields</h3>
</div>
<div class="callout callout-default col-md-4"> Click <b>'Add Fields'</b> button to add Fields</div>
<div class="col-md-4">
<button type="button" class="btn btn-primary addField" value="Show Div" onclick="showDiv()" ><i class="fa fa-plus"></i>&nbsp; Add Fields</button>
</div>
<div class="row">
</div>
<hr>
<div class="box-body" id="welcomeDiv" style="display:none;">
<table id="example2" class="table table-bordered table-striped">
<thead>
<th>Label</th>
<th>Name</th>
<th>Type</th>
<th>Values(Selected Fields)</th>
<th>Required</th>
<th>Action</th>
</thead>
<tbody class="inputField">
<tr></tr>
</tbody>
</table>
</div>
<div class="box-footer">
<input type="submit" class="btn btn-primary" value="Save Form">
</div>
{!! Form::close() !!}
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
function showDiv() {
document.getElementById('welcomeDiv').style.display = "block";
}
$(document).ready(function() {
var max_fields = 10;
var wrapper = $(".inputField");
var add_button = $(".addField");
var x = 1;
$(add_button).click(function(e)
{
e.preventDefault();
if(x < max_fields){
x++;
$(wrapper).append('<tr><td><input type="text" name="label[]"></td><td><input type="text" name="name[]"></td><td><select name="type[]"><option>text</option><option>email</option><option>password</option><option>textarea</option><option>select</option><option>radio</option><option>checkbox</option><option>submit</option></select></td><td><textarea name="value[]"></textarea></td><td>Yes&nbsp;&nbsp;<input type=radio name="required['+x+'][]" value=1 checked>&nbsp;&nbsp;No&nbsp;&nbsp;<input type=radio name="required['+x+'][]" value=0></td><td><button type="button" class="remove_field btn btn-danger"><i class="fa fa-trash-o"></i>&nbsp Remove</button></td></tr>');
}
});
$(wrapper).on("click",".remove_field", function(e)
{
e.preventDefault(); $(this).closest('tr').remove(); x--;
});
});
</script>
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,104 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('forms')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- -->
<div class="box">
<div class="box-header">
<div class="box-title">
Forms
</div>
<a href="{!! url('forms/create') !!}" class="pull-right"><button class="btn btn-primary">Create Form</button></a>
</div>
<div class="box-body">
<table id="example2" class="table table-bordered table-striped">
<thead>
<tr>
<th>Form Name</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$forms =App\Model\helpdesk\Form\Forms::all();
?>
@foreach($forms as $form)
<tr>
<td>{!! $form->formname !!}</td>
<td>{!! link_to_route('forms.show','View This Form',[$form->id],['id'=>'View','class'=>'btn btn-primary btn-sm']) !!}
<button class="btn btn-danger btn-sm" data-toggle="modal" data-target="#{{$form->id}}delete">Delete Form</button>
<div class="modal fade" id="{{$form->id}}delete">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Delete</h4>
</div>
<div class="modal-body">
<p>Are you sure you want to Delete ?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
{!! link_to_route('forms.delete','Delete',[$form->id],['id'=>'delete','class'=>'btn btn-danger btn-sm']) !!}
</div>
</div>
</div>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@stop
<!-- /content -->

View File

@@ -0,0 +1,90 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('forms')
class="active"
@stop
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
@if(Session::has('fails'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Fail.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- -->
<div class="box">
<div class="box-header">
<?php $id = App\Model\helpdesk\Form\Forms::where('id',$id)->first(); ?>
<h3 class="box-title">Form Name : {!! $id->formname !!}</h3>
</div>
<div class="box-body">
<?php
$i=$id->id;
$values = App\Model\helpdesk\Form\Fields::where('forms_id', '=', $i)->get();
foreach($values as $value) {
if($value->type == "select") {
$data = $value->value;
$value = explode(',', $data);
echo '<select class="form-control">';
foreach($value as $option) {
echo '<option>'.$option.'</option>';
}
echo '</select></br></br>';
} elseif ($value->type == "radio" ) {
$type2 = $value->value;
$val = explode(',', $type2);
echo '<label class="radio-inline">'.$value->label.'</label>&nbsp&nbsp&nbsp<input type="'.$value->type.'" name="'.$value->name.'">&nbsp;&nbsp;'.$val[0].'
&nbsp&nbsp&nbsp<input type="'.$value->type.'" name="'.$value->name.'">&nbsp;&nbsp;'.$val[1].'</br></br>';
} elseif($value->type == "textarea" ) {
$type3 = $value->value;
$v = explode(',', $type3);
echo '<label>'.$value->label.'</label></br><textarea rows="'.$v[0].'" cols="'.$v[1].'"></textarea></br></br>';
} elseif($value->type == "checkbox" ) {
$type4 = $value->value;
$check = explode(',', $type4);
echo '<label class="radio-inline">'.$value->label.'&nbsp&nbsp&nbsp<input type="'.$value->type.'" name="'.$value->name.'">&nbsp&nbsp'.$check[0].'</label>
<label class="radio-inline"><input type="'.$value->type.'" name="'.$value->name.'">&nbsp&nbsp'.$check[1].'</label></br></br>';
} else {
echo '<label>'.$value->label.'</label><input type="'.$value->type.'" class="form-control" name="'.$value->name.'" /></br></br>';
}
}
?>
</div>
</div>
@stop

View File

@@ -0,0 +1,183 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('help')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(['action' => 'Admin\helpdesk\HelptopicController@store', 'method' => 'post']) !!}
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-body">
<div class="form-group">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.create')}}</h2><div class="pull-right">
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
</div>
</div>
<div class="box-body table-responsive no-padding" style="overflow:hidden">
<!-- status radio: required: Active|Dissable -->
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('ticket_status') ? 'has-error' : '' }}">
{!! Form::label('ticket_status',Lang::get('lang.status')) !!}&nbsp;&nbsp;
{!! $errors->first('ticket_status', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('ticket_status','1',true) !!}{{Lang::get('lang.active')}}&nbsp;&nbsp;&nbsp;
{!! Form::radio('ticket_status','0') !!}{{Lang::get('lang.disabled')}}
</div>
</div>
<!-- Type : Radio : required : Public|private -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
{!! Form::label('type',Lang::get('lang.type')) !!}&nbsp;&nbsp;
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.public')}}&nbsp;&nbsp;&nbsp;
{!! Form::radio('type','0') !!}{{Lang::get('lang.private')}}
</div>
</div>
<!-- Topic text form Required -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('topic') ? 'has-error' : '' }}">
{!! Form::label('topic',Lang::get('lang.topic')) !!}
{!! $errors->first('topic', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('topic',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Parent Topic: Drop down: value from helptopic table -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('parent_topic') ? 'has-error' : '' }}">
{!! Form::label('parent_topic',Lang::get('lang.parent_topic')) !!}
{!! $errors->first('parent_topic', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('parent_topic', [''=>'Select a Parent Topic','Help Topics'=>$topics->lists('topic','topic')],1,['class' => 'form-control']) !!}
</div>
</div>
<!-- Custom Form: Drop down: value from form table -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('custom_form') ? 'has-error' : '' }}">
{!! Form::label('custom_form',Lang::get('lang.custom')) !!}
{!! $errors->first('custom_form', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('custom_form', [''=>'Select a Form','Custom Forms'=>$forms->lists('formname','name')],1,['class' => 'form-control']) !!}
</div>
</div>
<!-- Department: Drop down: value Department form table -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('department') ? 'has-error' : '' }}">
{!! Form::label('department',Lang::get('lang.department')) !!}
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('department', [''=>'Select a Department','Departments'=>$departments->lists('name','id')],1,['class' => 'form-control']) !!}
</div>
</div>
</div>
<!-- Priority: Drop down: value from Priority table -->
<div class="row">
<div class="col-md-4">
<div class="form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
{!! Form::label('priority',Lang::get('lang.priority')) !!}
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('priority', [''=>'Select a Proirity','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- SLA Plan: Drop down: value SLA Plan table-->
<div class="col-md-4">
<div class="form-group {{ $errors->has('sla_plan') ? 'has-error' : '' }}">
{!! Form::label('sla_plan',Lang::get('lang.SLA_plan')) !!}
{!! $errors->first('sla_plan', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('sla_plan', [''=>'Select a SLA Plan','SLA Plans'=>$slas->lists('name','name')],1,['class' => 'form-control']) !!}
</div>
</div>
<!-- Auto-assign To: Drop Down: value from Agent table -->
<div class="col-md-4">
<div class="form-group {{ $errors->has('auto_assign') ? 'has-error' : '' }}">
{!! Form::label('auto_assign',Lang::get('lang.auto_assign')) !!}
{!! $errors->first('auto_assign', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('auto_assign', [''=>'Select an Agent','Agents'=>$agents->lists('user_name','user_name')],null,['class' => 'form-control']) !!}
</div>
</div>
</div>
<!-- Auto-response: checkbox : Disable new ticket auto-response -->
<div class="row">
<!-- intrnal Notes : Textarea : -->
<div class="col-md-12">
<div class="form-group">
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
</div>
</div>
</div>
<!-- Submit button -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- close form -->
{!! Form::close() !!}
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,163 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('help')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($topics,['url' => 'helptopic/'.$topics->id, 'method' => 'PATCH']) !!}
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.edit')}}</h2><div class="pull-right">
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
</div>
<div class="box-body">
<!-- status radio: required: Active|Dissable -->
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('ticket_status') ? 'has-error' : '' }}">
{!! Form::label('ticket_status',Lang::get('lang.status')) !!}&nbsp;&nbsp;
{!! $errors->first('ticket_status', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('ticket_status','1',true) !!}{{Lang::get('lang.active')}}&nbsp;&nbsp;&nbsp;
{!! Form::radio('ticket_status','0') !!}{{Lang::get('lang.disabled')}}
</div>
</div>
<!-- Type : Radio : required : Public|private -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
{!! Form::label('type',Lang::get('lang.type')) !!}&nbsp;&nbsp;
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.public')}}&nbsp;&nbsp;&nbsp;
{!! Form::radio('type','0') !!}{{Lang::get('lang.private')}}
</div>
</div>
<!-- Topic text form Required -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('topic') ? 'has-error' : '' }}">
{!! Form::label('topic',Lang::get('lang.topic')) !!}
{!! $errors->first('topic', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('topic',null,['disabled'=>'disabled','class' => 'form-control']) !!}
</div>
</div>
<!-- Parent Topic: Drop down: value from helptopic table -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('parent_topic') ? 'has-error' : '' }}">
{!! Form::label('parent_topic',Lang::get('lang.parent_topic')) !!}
{!! $errors->first('parent_topic', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('parent_topic', [''=>'Select a Parent Topic','Help Topics'=>$topics->lists('topic','id')],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Custom Form: Drop down: value from form table -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('custom_form') ? 'has-error' : '' }}">
{!! Form::label('custom_form',Lang::get('lang.custom')) !!}
{!! $errors->first('custom_form', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('custom_form', [''=>'Select a Form','Custom Forms'=>$forms->lists('formname','id')],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Department: Drop down: value Department form table -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('department') ? 'has-error' : '' }}">
{!! Form::label('department',Lang::get('lang.department')) !!}
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('department', [''=>'Select a Department','Departments'=>$departments->lists('name','id')],null,['class' => 'form-control']) !!}
</div>
</div>
</div>
<!-- Priority: Drop down: value from Priority table -->
<div class="row">
<div class="col-md-4">
<div class="form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
{!! Form::label('priority',Lang::get('lang.priority')) !!}
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('priority', [''=>'Select a Proirity','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- SLA Plan: Drop down: value SLA Plan table-->
<div class="col-md-4">
<div class="form-group {{ $errors->has('sla_plan') ? 'has-error' : '' }}">
{!! Form::label('sla_plan',Lang::get('lang.SLA_plan')) !!}
{!! $errors->first('sla_plan', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('sla_plan', [''=>'Select a SLA Plan','SLA Plans'=>$slas->lists('name','id')],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Auto-assign To: Drop Down: value from Agent table -->
<div class="col-md-4">
<div class="form-group {{ $errors->has('auto_assign') ? 'has-error' : '' }}">
{!! Form::label('auto_assign',Lang::get('lang.auto_assign')) !!}
{!! $errors->first('auto_assign', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('auto_assign', [''=>'Select an Agent','Agents'=>$agents->lists('user_name','user_name')],null,['class' => 'form-control']) !!}
</div>
</div>
</div>
<!-- Auto-response: checkbox : Disable new ticket auto-response -->
<div class="row">
<div class="col-md-12">
<!-- intrnal Notes : Textarea : -->
<div class="form-group">
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
</div>
</div>
<!-- Submit button -->
</div>
</div>
</div>
</div>
</div>
<!-- close form -->
{!! Form::close() !!}
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,142 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('help')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="box box-primary">
<div class="form-group">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.help_topic')}}</h2><a href="{{route('helptopic.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_help_topic')}}</a></div>
<div class="box-body table-responsive no-padding">
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th width="100px">{{Lang::get('lang.topic')}}</th>
<th width="100px">{{Lang::get('lang.status')}}</th>
<th width="100px">{{Lang::get('lang.type')}}</th>
<th width="100px">{{Lang::get('lang.priority')}}</th>
<th width="100px">{{Lang::get('lang.department')}}</th>
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
<th width="100px">{{Lang::get('lang.action')}}</th>
</tr>
<!-- Foreach @var$topics as @var topic -->
@foreach($topics as $topic)
<tr style="padding-bottom:-30px">
<!-- topic Name with Link to Edit page along Id -->
<td><a href="{{route('helptopic.edit',$topic->id)}}">{!! $topic->topic !!}</a></td>
<!-- topic Status : if status==1 active -->
<td>
@if($topic->ticket_status=='1')
<span style="color:green">Active</span>
@else
<span style="color:red">Disable</span>
@endif
</td>
<!-- Type -->
<td>
@if($topic->type=='1')
<span style="color:green">Public</span>
@else
<span style="color:red">Private</span>
@endif
</td>
<!-- Priority -->
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id','=',$topic->priority)->first(); ?>
<td>{!! $priority->priority_desc !!}</td>
<!-- Department -->
<?php $dept = App\Model\helpdesk\Agent\Department::where('id', '=', $topic->department)->first(); ?>
<td>{!! $dept->name !!}</td>
<!-- Last Updated -->
<td> {!! UTC::usertimezone($topic->updated_at) !!} </td>
<!-- Deleting Fields -->
<td>
{!! Form::open(['route'=>['helptopic.destroy', $topic->id],'method'=>'DELETE']) !!}
<a href="{{route('helptopic.edit',$topic->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-trash" style="color:black;"> </i> Edit</a>
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
</div>
{!! Form::close() !!}
</td>
@endforeach
</tr>
<!-- Set a link to Create Page -->
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,110 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('sla')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(['action' => 'Admin\helpdesk\SlaController@store', 'method' => 'post']) !!}
<div class="row">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-body">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.create')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
<!-- Name text form Required -->
<div class="box-body table-responsive no-padding"style="overflow:hidden;">
<!-- <table class="table table-hover" style="overflow:hidden;"> -->
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Grace Period text form Required -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('grace_period') ? 'has-error' : '' }}">
{!! Form::label('grace_period',Lang::get('lang.grace_period')) !!}
{!! $errors->first('grace_period', '<spam class="help-block">:message</spam>') !!}
{!! Form::select('grace_period',['10'=>'10 Hours','15'=>'15 Hours','20'=>'20 hours','24'=>'One Day'],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- status radio: required: Active|Dissable -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
{!! Form::label('status',Lang::get('lang.status')) !!}&nbsp;
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}&nbsp;&nbsp;
{!! Form::radio('status','0') !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
<!-- Admin Note : Textarea : -->
<div class="row">
<div class="col-md-12">
<div class="form-group">
{!! Form::label('admin_note',Lang::get('lang.admin_notes')) !!}
{!! Form::textarea('admin_note',null,['class' => 'form-control','size' => '30x5']) !!}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- close form -->
{!! Form::close() !!}
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,110 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('sla')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($slas,['url' => 'sla/'.$slas->id, 'method' => 'PATCH']) !!}
<div class="row">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-body">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.edit')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
<!-- Name text form Required -->
<div class="box-body table-responsive no-padding"style="overflow:hidden;">
<!-- <table class="table table-hover" style="overflow:hidden;"> -->
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Grace Period text form Required -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('grace_period') ? 'has-error' : '' }}">
{!! Form::label('grace_period',Lang::get('lang.grace_period')) !!}
{!! $errors->first('grace_period', '<spam class="help-block">:message</spam>') !!}
{!! Form::select('grace_period',['10'=>'10 Hours','15'=>'15 Hours','20'=>'20 hours','24'=>'One Day'],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- status radio: required: Active|Dissable -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
{!! Form::label('status',Lang::get('lang.status')) !!}&nbsp;
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}&nbsp;&nbsp;
{!! Form::radio('status','0') !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
<!-- Admin Note : Textarea : -->
<div class="row">
<div class="col-md-12">
<div class="form-group">
{!! Form::label('admin_note',Lang::get('lang.admin_notes')) !!}
{!! Form::textarea('admin_note',null,['class' => 'form-control','size' => '30x5']) !!}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- close form -->
{!! Form::close() !!}
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,121 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('sla')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.SLA_plan')}}</h2><a href="{{route('sla.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_SLA')}}</a></div>
<div class="box-body table-responsive no-padding">
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th width="100px">{{Lang::get('lang.name')}}</th>
<th width="100px">{{Lang::get('lang.status')}}</th>
<th width="100px">{{Lang::get('lang.grace_period')}}</th>
<th width="100px">{{Lang::get('lang.created')}}</th>
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
<th width="100px">{{Lang::get('lang.action')}}</th>
</tr>
<!-- Foreach @var$slas as @var sla -->
@foreach($slas as $sla)
<tr>
<!-- sla Name with Link to Edit page along Id -->
<td><a href="{{route('sla.edit',$sla->id)}}">{!! $sla->name !!}</a></td>
<!-- sla Status : if status==1 active -->
<td>
@if($sla->status=='1')
<span style="color:green">Active</span>
@else
<span style="color:red">Disable</span>
@endif
</td>
<!-- To show the sla's Time Period -->
<td>{!! $sla->grace_period !!}</td>
<!-- Created Date -->
<td>{!! UTC::usertimezone($sla->created_at) !!}</td>
<!-- Last Updated -->
<td> {!! UTC::usertimezone($sla->updated_at) !!} </td>
<!-- Deleting Fields -->
<td>
{!! Form::open(['route'=>['sla.destroy', $sla->id],'method'=>'DELETE']) !!}
<a href="{{route('sla.edit',$sla->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
</td>
@endforeach
</tr>
<!-- Set a link to Create Page -->
</table>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,187 @@
@extends('themes.default1.admin.layout.admin')
@section('content')
<div class="row">
<div class="col-md-6">
{!! Form::model($user,['url'=>'admin-profile' , 'method' => 'PATCH','files'=>true]) !!}
<div class="box box-primary">
<div class="content-header">
<h4>Profile {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- fail message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- first name -->
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
</div>
<!-- last name -->
<div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
</div>
<!-- gender -->
<div class="form-group">
{!! Form::label('gender',Lang::get('lang.gender')) !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('gender','1',true) !!}{{Lang::get('lang.male')}}
</div>
<div class="col-xs-3">
{!! Form::radio('gender','0') !!}{{Lang::get('lang.female')}}
</div>
</div>
</div>
<div class="form-group">
{!! Form::label('email',Lang::get('lang.email_address')) !!}
<div>
{{$user->email}}
</div>
</div>
<!-- company -->
<div class="form-group {{ $errors->has('company') ? 'has-error' : '' }}">
{!! Form::label('company',Lang::get('lang.company')) !!}
{!! $errors->first('company', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('company',null,['class' => 'form-control']) !!}
</div>
<div class="row">
<!-- phone extension -->
<div class="col-xs-3 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
{!! Form::label('ext',Lang::get('lang.ext')) !!}
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ext',null,['class' => 'form-control']) !!}
</div>
<!-- phone number -->
<div class="col-xs-9 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- mobile -->
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
</div>
<!-- profile pic -->
<div class="form-group {{ $errors->has('profile_pic') ? 'has-error' : '' }}">
{!! Form::label('profile_pic',Lang::get('lang.profile_pic')) !!}
{!! $errors->first('profile_pic', '<spam class="help-block">:message</spam>') !!}
{!! Form::file('profile_pic') !!}
</div>
{!! Form::token() !!}
{!! Form::close() !!}
</div>
</div>
</div>
<div class="col-md-6">
{!! Form::model($user,['url'=>'admin-profile-password/'.$user->id , 'method' => 'PATCH']) !!}
<div class="box box-primary">
<div class="content-header">
<h4>Change Password {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- fail message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- old password -->
<div class="form-group has-feedback {{ $errors->has('old_password') ? 'has-error' : '' }}">
{!! Form::label('old_password',Lang::get('lang.old_password')) !!}
{!! Form::password('old_password',['placeholder'=>'Password','class' => 'form-control']) !!}
{!! $errors->first('old_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<!-- new password -->
<div class="form-group has-feedback {{ $errors->has('new_password') ? 'has-error' : '' }}">
{!! Form::label('new_password',Lang::get('lang.new_password')) !!}
{!! Form::password('new_password',['placeholder'=>'New Password','class' => 'form-control']) !!}
{!! $errors->first('new_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<!-- confirm password -->
<div class="form-group has-feedback {{ $errors->has('confirm_password') ? 'has-error' : '' }}">
{!! Form::label('confirm_password',Lang::get('lang.confirm_password')) !!}
{!! Form::password('confirm_password',['placeholder'=>'Confirm Password','class' => 'form-control']) !!}
{!! $errors->first('confirm_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
</div>
</div>
</div>
</div>
{!! Form::close() !!}
@stop

View File

@@ -0,0 +1,55 @@
@extends('themes.default1.admin.layout.admin')
@section('content')
<div class="box box-primary">
<div class="content-header">
<h4>Profile</h4>
</div>
<div class="box-body">
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- fail message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="row">
<div class="col-md-3">
<img src="{{asset("dist/img/user8-128x128.jpg")}}" width="250px; "/>
</div>
<div class="col-md-6">
<a href="{{url('agent-profile-edit')}}"><i class="fa fa-fw fa-edit"> </i></a>
<h3><b>User Information</b></h3>
<h2>{{ $user->user_name }}</h2>
<h4>{{ $user->primary_dpt }}</h4>
<h4>{{ $user->assign_group }}</h4>
<h4>{{ $user->ext }}{{ $user->phone_number }}</h4>
<h3><b>Contact Information</b></h3>
<h4>{{ $user->mobile }}</h4>
<h4>{{ $user->company }}</h4>
<h4>{{ $user->agent_tzone }}</h4>
<h4>{{ $user->role }}</h4>
</div>
</div>
</div>
</div>
@stop

View File

@@ -0,0 +1 @@
<pre>{{$e}}</pre>

View File

@@ -0,0 +1,8 @@
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

View File

@@ -0,0 +1,203 @@
@extends('themes.default1.admin.layout.admin')
@section('Settings')
class="active"
@stop
@section('settings-bar')
active
@stop
@section('access')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($accesses,['url' => 'postaccess/'.$accesses->id, 'method' => 'PATCH']) !!}
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{{Lang::get('lang.access')}}</h3> <div class="pull-right">
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
</div>
</div>
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- Password Expiration Policy: DROPDOWN -->
<div class="box-body table-responsive"style="overflow:hidden;">
<div class="row">
<div class="col-md-4">
<div class="form-group">
{!! Form::label('password_expire',Lang::get('lang.expiration_policy')) !!}
{!!Form::select('password_expire',['1 month','2 month','3 month'],null,['class' => 'form-control select']) !!}
</div>
</div>
<!-- Reset Token Expiration: TEXT- minutes -->
<div class="col-md-4">
<div class="form-group">
{!! Form::label('reset_ticket_expire',Lang::get('lang.reset_token_expiration')) !!}
{!! Form::text('reset_ticket_expire',$accesses->reset_ticket_expire,['class' => 'form-control']) !!}
</div>
</div>
<!-- Agent Excessive Logins: TEXT failed login attempt(s) allowed before a lock-out is enforced
TEXT minutes locked out -->
<!-- ************************* TODO ************************** -->
<!-- Agent Session Timeout: TEXT - minutes (0 to disable). -->
<div class="col-md-4">
<div class="form-group">
{!! Form::label('agent_session',Lang::get('lang.agent_session_timeout')) !!}
{!! Form::text('agent_session',$accesses->agent_session,['class' => 'form-control']) !!}
</div>
</div>
</div>
<!-- Allow Password Resets: CHECKBOX -->
<div class="row">
<div class="col-md-4">
<div class="form-group">
{!! Form::label('password_reset',Lang::get('lang.allow_password_resets')) !!}
{!! Form::checkbox('password_reset',1) !!}
</div>
</div>
</div>
<!-- Registration Method: DROPDOWN -->
<div class="row">
<div class="col-md-6">
<div class="form-group">
{!! Form::label('reg_method',Lang::get('lang.registration_method')) !!}
{!!Form::select('reg_method',['public','private','dissabled'],null,['class' => 'form-control select']) !!}
</div>
</div>
<!-- User Excessive Logins: TEXT failed login attempt(s) allowed before a lock-out is enforced
TEXT minutes locked out -->
<!--************************************* TODO ****************************************** -->
<!-- User Session Timeout: TEXT -->
<div class="col-md-6">
<div class="form-group">
{!! Form::label('user_session',Lang::get('lang.user_session_timeout')) !!}
{!! Form::text('user_session',$accesses->user_session,['class' => 'form-control']) !!}
</div>
</div>
</div>
<!-- Bind Agent Session to IP: CHECKBOX -->
<div class="row">
<div class="col-md-4">
<div class="form-group">
{!! Form::checkbox('bind_agent_ip',1,true) !!} &nbsp;
{!! Form::label('bind_agent_ip',Lang::get('lang.bind_agent_session_IP')) !!}
</div>
</div>
</div>
<!-- Registration Required: CHECKBOX- Require registration and login to create tickets -->
<div class="row">
<div class="col-md-4">
<div class="form-group">
{!! Form::checkbox('reg_require',1,true,['class' => 'form-control']) !!}&nbsp;
{!! Form::label('reg_require',Lang::get('lang.registration_required')) !!}
</div>
</div>
</div>
<!-- Client Quick Access: CHECKBOX -->
<div class="row">
<div class="col-md-4">
<div class="form-group">
{!! Form::checkbox('quick_access',1,true) !!}&nbsp;
{!! Form::label('quick_access',Lang::get('lang.client_quick_access')) !!}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,363 @@
@extends('themes.default1.admin.layout.admin')
@section('Settings')
class="active"
@stop
@section('settings-bar')
active
@stop
@section('alert')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($alerts,['url' => 'postalert/'.$alerts->id, 'method' => 'PATCH']) !!}
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">{{Lang::get('lang.alert_notices')}}</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>' btn btn-primary pull-right'])!!}
</div>
</div>
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="row">
<!-- left column -->
<div class="col-md-6">
<!-- general form elements -->
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{{Lang::get('lang.new_ticket_alert')}}</h3>
<div class="pull-right">
</div>
</div><!-- /.box-header -->
<!-- form start -->
<hr style="margin-top: 0;margin-bottom: 0;">
<div class="box-body">
<div class="form-group">
<!-- Status: Enable Disable -->
{!! Form::label('ticket_status',Lang::get('lang.status').":") !!}&nbsp;&nbsp;
{!! Form::radio('ticket_status',1) !!} {!! Lang::get('lang.enable') !!} &nbsp;&nbsp; {!! Form::radio('ticket_status',0) !!} {!! Lang::get('lang.disable') !!}
</div>
<div class="form-group">
<!-- Admin Email -->
{!! Form::checkbox('ticket_admin_email',1) !!}
{!! Form::label('ticket_admin_email',Lang::get('lang.admin_email_2')) !!}
</div>
<!-- Department Manager -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('ticket_department_manager',1) !!} --}}
{{-- {!! Form::label('ticket_department_manager',Lang::get('lang.department_manager')) !!} --}}
{{-- </div> --}}
<!-- Department Members -->
<div class="form-group">
{!! Form::checkbox('ticket_department_member',1) !!}
{!! Form::label('ticket_department_member',Lang::get('lang.department_members')) !!}
</div>
<!-- Organization Account Manager -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('ticket_organization_accmanager',1) !!} --}}
{{-- {!! Form::label('ticket_organization_accmanager',Lang::get('lang.organization_account_manager')) !!} --}}
{{-- </div> --}}
</div><!-- /.box-body -->
</div><!-- /.box -->
{{-- <div class ="box box-primary"> --}}
{{-- <div class="box-header"> --}}
{{-- <h3 class="box-title">{{Lang::get('lang.new_message_alert')}}</h3> --}}
{{-- <div class="pull-right"> --}}
{{-- </div> --}}
{{-- </div>/.box-header --}}
<!-- form start -->
{{-- <hr style="margin-top: 0;margin-bottom: 0;"> --}}
{{-- <div class="box-body"> --}}
<!-- Status: Enable Disable -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::label('message_status',Lang::get('lang.status').":") !!}&nbsp;&nbsp; --}}
{{-- {!! Form::radio('message_status',1) !!} {!! Lang::get('lang.enable') !!} &nbsp;&nbsp; {!! Form::radio('message_status',0) !!} {!! Lang::get('lang.disable') !!} --}}
{{-- </div> --}}
<!-- Last Respondent -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('message_last_responder',1) !!} --}}
{{-- {!! Form::label('message_last_responder',Lang::get('lang.last_respondent')) !!} --}}
{{-- </div> --}}
<!-- Assigned Agent / Team -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('message_assigned_agent',1) !!} --}}
{{-- {!! Form::label('message_assigned_agent',Lang::get('lang.assigned_agent_team')) !!} --}}
{{-- </div> --}}
<!-- Department Manager -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('message_department_manager',1) !!} --}}
{{-- {!! Form::label('message_department_manager',Lang::get('lang.department_manager')) !!} --}}
{{-- </div> --}}
<!-- Organization Account Manager -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('message_organization_accmanager',1) !!} --}}
{{-- {!! Form::label('message_organization_accmanager',Lang::get('lang.organization_account_manager')) !!} --}}
{{-- </div> --}}
{{-- </div>/.box-body --}}
{{-- </div>/.box --}}
{{-- <div class="box box-primary"> --}}
{{-- <div class="box-header"> --}}
{{-- <h3 class="box-title">{{Lang::get('lang.new_internal_note_alert')}}</h3> --}}
{{-- <div class="pull-right"> --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- form start -->
{{-- <hr style="margin-top: 0;margin-bottom: 0;"> --}}
{{-- <div class="box-body"> --}}
<!-- Status: Enable Disable -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::label('transfer_status',Lang::get('lang.status').":") !!} --}}
{{-- {!! Form::radio('transfer_status',1) !!} {!! Lang::get('lang.enable') !!} &nbsp;&nbsp; {!! Form::radio('transfer_status',0) !!} {!! Lang::get('lang.disable') !!} --}}
{{-- </div> --}}
<!-- Assigned Agent / Team -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('transfer_assigned_agent',1) !!} --}}
{{-- {!! Form::label('transfer_assigned_agent',Lang::get('lang.ticket_assignment_alert')) !!} --}}
{{-- </div> --}}
<!-- Department Manager -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('transfer_department_manager',1) !!} --}}
{{-- {!! Form::label('transfer_department_manager',Lang::get('lang.department_manager')) !!} --}}
{{-- </div> --}}
<!-- Department Members -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('transfer_department_member',1) !!} --}}
{{-- {!! Form::label('transfer_department_member',Lang::get('lang.department_members')) !!} --}}
{{-- </div> --}}
{{-- </div>/.box-body --}}
{{-- </div>/.box --}}
{{-- <div class="box box-primary"> --}}
{{-- <div class="box-header"> --}}
{{-- <h3 class="box-title">{{Lang::get('lang.system_alerts')}}</h3> --}}
{{-- <div class="pull-right"> --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- /.box-header -->
<!-- form start -->
{{-- <hr style="margin-top: 0;margin-bottom: 0;"> --}}
{{-- <div class="box-body"> --}}
<!-- System Errors (enabled by default) -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('system_error',1) !!} --}}
{{-- {!! Form::label('system_error',Lang::get('lang.system_errors')) !!} --}}
{{-- </div> --}}
<!-- SQL errors -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('sql_error',1) !!} --}}
{{-- {!! Form::label('sql_error',Lang::get('lang.SQL_errors')) !!} --}}
{{-- </div> --}}
<!-- Excessive failed login attempts -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('excessive_failure',1) !!} --}}
{{-- {!! Form::label('excessive_failure',Lang::get('lang.excessive_failed_login_attempts')) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- /.box-body -->
{{-- </div> --}}
<!-- /.box -->
</div><!--/.col (left) -->
<div class="col-md-6">
<!-- general form elements -->
{{-- <div class="box box-primary"> --}}
{{-- <div class="box-header"> --}}
{{-- <h3 class="box-title">{{Lang::get('lang.overdue_ticket_alert')}}</h3> --}}
{{-- <div class="pull-right"> --}}
{{-- </div> --}}
{{-- </div>/.box-header --}}
<!-- form start -->
{{-- <hr style="margin-top: 0;margin-bottom: 0;"> --}}
{{-- <div class="box-body"> --}}
{{-- <div class="form-group"> --}}
{{-- {!! Form::label('overdue_status',Lang::get('lang.status').":") !!} --}}
{{-- {!! Form::radio('overdue_status',1) !!} {!! Lang::get('lang.enable') !!} &nbsp;&nbsp; {!! Form::radio('overdue_status',0) !!} {!! Lang::get('lang.disable') !!} --}}
{{-- </div> --}}
<!-- Assigned Agent / Team -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('overdue_assigned_agent',1) !!} --}}
{{-- {!! Form::label('overdue_assigned_agent',Lang::get('lang.assigned_agent_team')) !!} --}}
{{-- </div> --}}
<!-- Department Manager -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('overdue_department_manager',1) !!} --}}
{{-- {!! Form::label('overdue_department_manager',Lang::get('lang.department_manager')) !!} --}}
{{-- </div> --}}
<!-- Department Members -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('overdue_department_member',1) !!} --}}
{{-- {!! Form::label('overdue_department_member',Lang::get('lang.department_members')) !!} --}}
{{-- </div> --}}
{{-- </div>/.box-body --}}
{{-- </div>/.box --}}
{{-- <div class="box box-primary"> --}}
{{-- <div class="box-header"> --}}
{{-- <h3 class="box-title">{{Lang::get('lang.ticket_transfer_alert')}}</h3> --}}
{{-- <div class="pull-right"> --}}
{{-- </div> --}}
{{-- </div>/.box-header --}}
<!-- form start -->
{{-- <hr style="margin-top: 0;margin-bottom: 0;"> --}}
{{-- <div class="box-body"> --}}
{{-- <div class="form-group"> --}}
<!-- Status: Enable Disable -->
{{-- {!! Form::label('internal_status',Lang::get('lang.status').":") !!} --}}
{{-- {!! Form::radio('internal_status',1) !!} {!! Lang::get('lang.enable') !!} &nbsp;&nbsp; {!! Form::radio('internal_status',0) !!} {!! Lang::get('lang.disable') !!} --}}
{{-- </div>/ --}}
<!-- Last Respondent -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('internal_last_responder',1) !!} --}}
{{-- {!! Form::label('internal_last_responder',Lang::get('lang.last_respondent')) !!} --}}
{{-- </div> --}}
<!-- Assigned Agent / Team -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('internal_assigned_agent',1) !!} --}}
{{-- {!! Form::label('internal_assigned_agent',Lang::get('lang.assigned_agent_team')) !!} --}}
{{-- </div> --}}
<!-- Department Manager -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('internal_department_manager',1) !!} --}}
{{-- {!! Form::label('internal_department_manager',Lang::get('lang.department_manager')) !!} --}}
{{-- </div> --}}
{{-- </div>/.box-body --}}
{{-- </div>/.box --}}
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{{Lang::get('lang.ticket_assignment_alert')}}</h3>
<div class="pull-right">
</div>
</div><!-- /.box-header -->
<!-- form start -->
<hr style="margin-top: 0;margin-bottom: 0;">
<div class="box-body">
<!-- Status: Enable Disable -->
<div class="form-group">
{!! Form::label('assignment_status',Lang::get('lang.status').":") !!}
{!! Form::radio('assignment_status',1) !!} {!! Lang::get('lang.enable') !!} &nbsp;&nbsp; {!! Form::radio('assignment_status',0) !!} {!! Lang::get('lang.disable') !!}
</div>
<!-- Assigned Agent / Team -->
<div class="form-group">
{!! Form::checkbox('assignment_assigned_agent',1) !!}
{!! Form::label('assignment_assigned_agent',Lang::get('lang.agent')) !!}
</div>
<!-- Team Lead -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('assignment_team_leader',1) !!} --}}
{{-- {!! Form::label('assignment_team_leader',Lang::get('lang.team_lead')) !!} --}}
{{-- </div> --}}
<!-- Team Members -->
<div class="form-group">
{!! Form::checkbox('assignment_team_member',1) !!}
{!! Form::label('assignment_team_member',Lang::get('lang.team_members')) !!}
</div>
</div><!-- /.box-body -->
</div><!-- /.box -->
</div><!--/.col (left) -->
</section>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,26 @@
@extends('themes.default1.admin.layout.admin')
@section('content')
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">Check for Update</h3>
</div>
@if(Session::has('info'))
<div class="alert alert-info alert-dismissable">
<i class="fa fa-info-circle"></i>
<b>Info!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('info')}}
</div>
@endif
<div class="box-body">
Click to check Update
<a href="{!! URL::route('version-check') !!}" class="btn btn-primary">Check</a>
</div>
<div class="box-footer">
</div>
</div>
@stop

View File

@@ -0,0 +1,167 @@
@extends('themes.default1.admin.layout.admin')
@section('Settings')
class="active"
@stop
@section('settings-bar')
active
@stop
@section('company')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($companys,['url' => 'postcompany/'.$companys->id, 'method' => 'PATCH','files'=>true]) !!}
<!-- <div class="form-group {{ $errors->has('company_name') ? 'has-error' : '' }}"> -->
<!-- table -->
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">{{Lang::get('lang.company')}}</h4>{!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- Name text form Required -->
<div class="box-body">
<div class="row">
{{-- <div class="row"> --}}
<div class="col-md-4">
<!-- comapny name -->
<div class="form-group {{ $errors->has('company_name') ? 'has-error' : '' }}">
{!! Form::label('company_name',Lang::get('lang.name')) !!}
{!! $errors->first('company_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('company_name',$companys->company_name,['class' => 'form-control']) !!}
</div>
</div>
<div class="col-md-4">
<!-- website -->
<div class="form-group {{ $errors->has('website') ? 'has-error' : '' }}">
{!! Form::label('website',Lang::get('lang.website')) !!}
{!! $errors->first('website', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('website',$companys->website,['class' => 'form-control']) !!}
</div>
</div>
<div class="col-md-4">
<!-- phone -->
<div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
{!! Form::label('phone',Lang::get('lang.phone')) !!}
{!! $errors->first('phone', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone',$companys->phone,['class' => 'form-control']) !!}
</div>
</div>
<div class="col-md-12">
<!-- comapny address -->
<div class="form-group {{ $errors->has('company_address') ? 'has-error' : '' }}">
{!! Form::label('address',Lang::get('lang.address')) !!}
{!! $errors->first('company_address', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('company_address',$companys->address,['class' => 'form-control','size' => '30x5']) !!}
</div>
</div>
{{-- <div class="col-md-4"> --}}
<!-- landing page -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::label('landing_page',Lang::get('lang.landing')) !!} --}}
{{-- {!!Form::select('landing_page', ['landing page'],null,['class' => 'form-control select']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- <div class="col-md-4"> --}}
<!-- offline page -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::label('offline_page',Lang::get('lang.offline')) !!} --}}
{{-- {!!FooterIncluderm::select('offline_page', ['offline page'],null,['class' => 'form-control select']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- <div class="col-md-4"> --}}
<!-- thank page -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::label('thank_page',Lang::get('lang.thank')) !!} --}}
{{-- {!! Form::select('thank_page', ['thank page'],null,['class' => 'form-control select']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<div class="col-md-2">
<!-- logo -->
{!! Form::label('logo',Lang::get('lang.logo')) !!}
<div class="btn bg-olive btn-file" style="color:blue"> Upload file
{!! Form::file('logo') !!}
</div>
</div>
@if($companys->logo != null)
<div class="col-md-2">
{!! Form::checkbox('use_logo') !!} <label> Use Logo</label>
</div>
@endif
</div>
</div>
</div>
@stop
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,189 @@
@extends('themes.default1.admin.layout.admin')
@section('Settings')
class="active"
@stop
@section('settings-bar')
active
@stop
@section('email')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($emails,['url' => 'postemail/'.$emails->id, 'method' => 'PATCH']) !!}
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{{Lang::get('lang.email')}}</h3> <div class="pull-right">
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
</div>
</div>
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body table-responsive"style="overflow:hidden;">
<div class="row">
<!-- Default Template Set: DROPDOWN value from template table : Required -->
{{-- <div class="col-md-3"> --}}
{{-- <div class="form-group {{ $errors->has('template') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('template',Lang::get('lang.default_template')) !!} --}}
{{-- {!! $errors->first('template', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!!Form::select('template', $templates->lists('name','name'),null,['class'=>'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Default System Email: DROPDOWN value from emails table : Required -->
{{-- <div class="col-md-3"> --}}
{{-- <div class="form-group {{ $errors->has('sys_email') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('sys_email',Lang::get('lang.default_system_email')) !!} --}}
{{-- {!! $errors->first('sys_email', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!!Form::select('sys_email', $emails1->lists('email_address','email_address'),null,['class'=>'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Default Alert Email: DROPDOWN value from emails table : Required -->
{{-- <div class="col-md-3"> --}}
{{-- <div class="form-group {{ $errors->has('alert_email') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('alert_email',Lang::get('lang.default_alert_email')) !!} --}}
{{-- {!! $errors->first('alert_email', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!!Form::select('alert_email', $emails1->lists('email_address','email_address'),null,['class'=>'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Default MTA: DROPDOWN : manual -->
{{-- <div class="col-md-3"> --}}
{{-- <div class="form-group"> --}}
{{-- {!! Form::label('alert_email',Lang::get('lang.default_MTA')) !!} --}}
{{-- {!!Form::select('alert_email',['use PHP Mail function'],null,['class'=>'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Email Fetching: CHECKBOX : Enable ,Fetch on auto-cron -->
<div class="col-md-6">
<div class="form-group">
{!! Form::label('email_fetching',Lang::get('lang.email_fetch')) !!}<br>
{!! Form::checkbox('email_fetching',1,true) !!}&nbsp;{{Lang::get('lang.fetch_auto-corn')}}
</div>
</div>
</div>
<!-- Accept All Emails: CHECKBOX: Accept email from unknown Users -->
<div class="row">
<div class="col-md-6">
<div class="form-group">
{!! Form::checkbox('all_emails',1,true) !!}&nbsp;{{Lang::get('lang.accept_all_email')}}
</div>
</div>
</div>
<!-- Admin's Email Address: Text : Required -->
<div class="row">
{{-- <div class="col-md-6"> --}}
{{-- <div class="form-group {{ $errors->has('admin_email') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('admin_email',Lang::get('lang.admin_email')) !!} --}}
{{-- {!! $errors->first('admin_email', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!! Form::text('admin_email',null,['class' => 'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Reply Separator Tag: text -->
{{-- <div class="col-md-6"> --}}
{{-- <div class="form-group {{ $errors->has('separator') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('separator',Lang::get('lang.reply_separator')) !!} --}}
{{-- {!! $errors->first('separator', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!! Form::text('separator',null,['class' => 'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
</div>
<!-- Accept Email Collaborators: CHECKBOX : Automatically add collaborators from email fields -->
<div class="row">
<div class="col-md-4">
<div class="form-group">
{!! Form::checkbox('email_collaborator',1) !!}&nbsp;{{Lang::get('lang.accept_email_collab')}}
</div>
</div>
</div>
<!-- Strip Quoted Reply: CHECKBOX -->
{{-- <div class="row"> --}}
{{-- <div class="col-md-4"> --}}
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('strip',1,['class' => 'form-control']) !!}&nbsp;{{Lang::get('lang.strip_quoted_reply')}} --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Attachments: CHECKBOX : Email attachments to the user -->
<div class="row">
<div class="col-md-4">
<div class="form-group">
{!! Form::checkbox('attachment',1) !!}&nbsp;{{Lang::get('lang.attachments')}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,110 @@
@extends('themes.default1.admin.layout.admin')
@section('Settings')
class="active"
@stop
@section('settings-bar')
active
@stop
@section('auto-response')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($responders,['url' => 'postresponder/'.$responders->id, 'method' => 'PATCH']) !!}
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{{Lang::get('lang.auto_responce')}}</h3> <div class="pull-right">
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
</div>
</div>
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- New Ticket: CHECKBOX Ticket Owner -->
<div class="box-body table-responsive"style="overflow:hidden;">
<div class="form-group">
{!! Form::checkbox('new_ticket',1) !!} &nbsp;
{!! Form::label('new_ticket',Lang::get('lang.new_ticket')) !!}
</div>
<!-- New Ticket by Agent: CHECKBOX Ticket Owner -->
<div class="form-group">
{!! Form::checkbox('agent_new_ticket',1) !!}&nbsp;
{!! Form::label('agent_new_ticket',Lang::get('lang.new_ticket_by_agent')) !!}
</div>
<!-- New Message:
Submitter: CHECKBOX Send receipt confirmation
Participants: CHECKBOX Send new activity notice -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::label('new_message',Lang::get('lang.new_message')) !!}<br> --}}
{{-- {!! Form::checkbox('submitter',1,true) !!}&nbsp;{{Lang::get('lang.submitter')}}&nbsp;{{Lang::get('lang.send_receipt_confirmation')}}&nbsp;&nbsp;&nbsp;<p><p> --}}
{{-- {!! Form::checkbox('participants',1) !!}&nbsp;{{Lang::get('lang.participants')}}&nbsp;{{Lang::get('lang.send_new_activity_notice')}} --}}
{{-- </div> --}}
<!-- Overlimit Notice: CHECKBOX Ticket Submitter -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('overlimit',1) !!}&nbsp; --}}
{{-- {!! Form::label('overlimit',Lang::get('lang.overlimit_notice')) !!} --}}
{{-- </div> --}}
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,248 @@
@extends('themes.default1.admin.layout.admin')
@section('Settings')
class="active"
@stop
@section('settings-bar')
active
@stop
@section('system')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($systems,['url' => 'postsystem/'.$systems->id, 'method' => 'PATCH' , 'id'=>'formID']) !!}
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{{Lang::get('lang.system')}}</h3> {!! Form::submit('Save',['onclick'=>'sendForm()','class'=>'btn btn-primary pull-right'])!!}
<!-- <input type="submit" value="sumit" onclick="sendForm();"> -->
</div>
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- Helpdesk Status: radio Online Offline -->
<div class="box-body">
<div class="row">
<div class="col-md-12">
<div class="form-group">
{!! Form::label('status',Lang::get('lang.status')) !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.online')}}
</div>
<div class="col-xs-3">
{!! Form::radio('status','0') !!}{{Lang::get('lang.offline')}}
</div>
</div>
</div>
</div>
<!-- Helpdesk Name/Title: text Required -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name/title')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',$systems->name,['class' => 'form-control']) !!}
</div>
</div>
<!-- Helpdesk URL: text Required -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('url') ? 'has-error' : '' }}">
{!! Form::label('url',Lang::get('lang.url')) !!}
{!! $errors->first('url', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('url',$systems->url,['class' => 'form-control']) !!}
</div>
</div>
<!-- Default Department: Dropdown From Department table: required -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('department') ? 'has-error' : '' }}">
{!! Form::label('department',Lang::get('lang.default_department')) !!}
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('department', [''=>'Select a Department','Department'=>$departments->lists('name','id')],null,['class'=>'form-control']) !!}
</div>
</div>
<!-- Default Time Zone: Drop down: timezones table : Required -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('time_zone') ? 'has-error' : '' }}">
{!! Form::label('time_zone',Lang::get('lang.timezone')) !!}
{!! $errors->first('time_zone', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('time_zone',[''=>'Select a Time Zone','Time Zones'=>$timezones->lists('name','name')],null,['class'=>'form-control']) !!}
</div>
</div>
<!-- Default Page Size: Drop down: Manual -->
{{-- <div class="col-md-3"> --}}
{{-- <div class="form-group"> --}}
{{-- {!! Form::label('page_size',Lang::get('lang.pagesize')) !!} --}}
{{-- {!!Form::select('page_size', ['5','10','15'],null,['class'=>'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Default Log Level: Drop down: Manual -->
{{-- <div class="col-md-3">
<div class="form-group">
{!! Form::label('log_level',Lang::get('lang.loglevel')) !!}
{!!Form::select('log_level', [''=>'Select a Log','Log Levels'=>$log->lists('level','level')],null,['class'=>'form-control']) !!}
</div>
</div> --}}
<!-- Purge Logs: Drop Down : Manual -->
{{-- <div class="col-md-3">
<div class="form-group">
{!! Form::label('purge_log',Lang::get('lang.purglog')) !!}</td></tr>
{!!Form::select('purge_log', ['5 months','10 months','15 months'],null,['class'=>'form-control']) !!}
</div>
</div> --}}
<!-- Default Name Formatting: Drop Down : Manual -->
{{-- <div class="col-md-3">
<div class="form-group">
{!! Form::label('name_format',Lang::get('lang.nameformat')) !!}
{!!Form::select('name_format', ['First Last','Last First'],null,['class'=>'form-control']) !!}
</div>
</div> --}}
<!-- Time Format: Required: text : eg - 14:07 AM -->
{{-- <div class="col-md-3"> --}}
{{-- <div class="form-group {{ $errors->has('time_farmat') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('time_format',Lang::get('lang.timeformat')) !!} --}}
{{-- {!! $errors->first('time_format', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!! Form::select('time_format',[''=>'Select a Time Format','Time Format'=>$time->lists('format','format')],null,['class' => 'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Date Format:text : Required : eg - 03/25/2015 -->
{{-- <div class="col-md-3"> --}}
{{-- <div class="form-group {{ $errors->has('date_format') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('date_format',Lang::get('lang.dateformat')) !!} --}}
{{-- {!! $errors->first('date_format', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!! Form::select('date_format',[''=>'Select a Date Format','Date Formats'=>$date->lists('format','format')],null,['class' => 'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Date and Time Format: text: required: eg - 03/25/2015 7:14 am -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('date_time_format') ? 'has-error' : '' }}">
{!! Form::label('date_time_format',Lang::get('lang.date_time')) !!}
{!! $errors->first('date_time_format', '<spam class="help-block">:message</spam>') !!}
{!! Form::select('date_time_format',[''=>'Select a date Time Format','Date Time Formats'=>$date_time->lists('format','format')],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Day, Date and Time Format: text: Required :eg - Wed, Mar 25 2015 7:14am -->
{{-- <div class="col-md-3"> --}}
{{-- <div class="form-group {{ $errors->has('day_date_time') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('day_date_time',Lang::get('lang.day_date_time')) !!} --}}
{{-- {!! $errors->first('day_date_time', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!! Form::text('day_date_time',$systems->day_date_time,['class' => 'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
</div>
<!-- Guest user page Content -->
<div class="row">
{{-- <div class="col-md-12"> --}}
{{-- <div class="form-group"> --}}
{{-- {!! Form::label('content',Lang::get('lang.content')) !!} --}}
{{-- {!! Form::textarea('content',null,['id'=>'content','class' => 'form-control','size' => '30x5']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
</div>
<script language="JavaScript" type="text/javascript">
CKEDITOR.replace( 'content',
{
filebrowserUploadUrl : '/uploader/upload.php'
});
CKEDITOR.replace( 'content', { toolbar : 'MyToolbar' } );
</script>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,224 @@
@extends('themes.default1.admin.layout.admin')
@section('Settings')
class="active"
@stop
@section('settings-bar')
active
@stop
@section('tickets')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($tickets,['url' => 'postticket/'.$tickets->id, 'method' => 'PATCH']) !!}
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{{Lang::get('lang.ticket')}}</h3> <div class="pull-right">
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
</div>
</div>
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body table-responsive"style="overflow:hidden;">
<div class="row">
{{-- <div class="col-md-6"> --}}
{{-- <div class="form-group"> --}}
<!-- Default Ticket Number Format: text e.g. 268330 -->
<!-- <div class="form-group {{ $errors->has('num_format') ? 'has-error' : '' }}"> -->
{{-- {!! Form::label('num_format',Lang::get('lang.default_ticket_number_format')) !!} --}}
{{-- {!! $errors->first('num_format', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!! Form::text('num_format',$tickets->num_format,['class' => 'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Default Ticket Number Sequence: dropdown : manual Manage -->
{{-- <div class="col-md-6"> --}}
{{-- <div class="form-group {{ $errors->has('num_sequence') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('num_sequence',Lang::get('lang.default_ticket_number_sequence')) !!} --}}
{{-- {!! $errors->first('num_sequence', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!!Form::select('num_sequence', ['random','general'],null,['class' => 'form-control select']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Default Status: Required : manual: Dropdowm -->
<div class="col-md-3">
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
{!! Form::label('status',Lang::get('lang.default_status')) !!}
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
<select class="form-control" id="status" name="status">
<option value="1" >Open</option>
</select>
</div>
</div>
<!-- Default Priority: Required : manual : Dropdowm -->
<div class="col-md-3">
<div class="form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
{!! Form::label('priority',Lang::get('lang.default_priority')) !!}
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('priority', [''=>'select a priority','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Default SLA: Required : manual : Dropdowm -->
<div class="col-md-3">
<div class="form-group {{ $errors->has('sla') ? 'has-error' : '' }}">
{!! Form::label('sla',Lang::get('lang.default_sla')) !!}
{!! $errors->first('sla', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('sla', $slas->lists('grace_period','id'),null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Default Help Topic: Dropdowm from Help topic table -->
<div class="col-md-3">
<div class="form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
{!! Form::label('help_topic',Lang::get('lang.default_help_topic')) !!}
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('help_topic', $topics->lists('topic','id'),null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Maximum Open Tickets: text-number per end user -->
{{-- <div class="col-md-6"> --}}
{{-- <div class="form-group {{ $errors->has('max_open_ticket') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('max_open_ticket',Lang::get('lang.maximum_open_tickets')) !!} --}}
{{-- {!! $errors->first('max_open_ticket', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!! Form::text('max_open_ticket',$tickets->max_open_ticket,['class' => 'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Agent Collision Avoidance Duration: text-number -minutes -->
{{-- <div class="col-md-6"> --}}
{{-- <div class="form-group {{ $errors->has('collision_avoid') ? 'has-error' : '' }}"> --}}
{{-- {!! Form::label('collision_avoid',Lang::get('lang.agent_collision_avoidance_duration')) !!} --}}
{{-- {!! $errors->first('collision_avoid', '<spam class="help-block">:message</spam>') !!} --}}
{{-- {!! Form::text('collision_avoid',$tickets->collision_avoid,['class' => 'form-control']) !!} --}}
{{-- </div> --}}
{{-- </div> --}}
<!-- Human Verification: checkbox Enable CAPTCHA on new web tickets. -->
{{-- <div class="col-md-6"> --}}
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('captcha',1,true) !!}&nbsp; --}}
{{-- {!! Form::label('captcha',Lang::get('lang.human_verification')) !!} --}}
{{-- </div> --}}
<!-- Claim on Response: checkbox -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('claim_response',1,true) !!}&nbsp; --}}
{{-- {!! Form::label('claim_response',Lang::get('lang.claim_on_response')) !!} --}}
{{-- </div> --}}
<!-- Assigned Tickets: checkbox- Exclude assigned tickets from open queue. -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('assigned_ticket',1,true) !!}&nbsp; --}}
{{-- {!! Form::label('assigned_ticket',Lang::get('lang.assigned_tickets')) !!} --}}
{{-- </div> --}}
<!-- Answered Tickets: checkbox- Exclude answered tickets from open queue. -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('answered_ticket',1,true) !!}&nbsp; --}}
{{-- {!! Form::label('answered_ticket',Lang::get('lang.answered_tickets')) !!} --}}
{{-- </div> --}}
<!-- Agent Identity Masking: checkbox- Hide agent's name on responses. -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('agent_mask',1,true) !!} &nbsp; --}}
{{-- {!! Form::label('agent_mask',Lang::get('lang.agent_identity_masking')) !!} --}}
{{-- </div> --}}
<!-- Enable HTML Ticket Thread: checkbox- Enable rich text in ticket thread and autoresponse emails. -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('html',1,true) !!}&nbsp; --}}
{{-- {!! Form::label('html',Lang::get('lang.enable_HTML_ticket_thread')) !!} --}}
{{-- </div> --}}
<!-- Allow Client Updates: checkbox -->
{{-- <div class="form-group"> --}}
{{-- {!! Form::checkbox('client_update',1,true) !!}&nbsp; --}}
{{-- {!! Form::label('client_update',Lang::get('lang.allow_client_updates')) !!} --}}
{{-- </div> --}}
<!-- EndUser Attachment Settings: Config -->
<!-- **** TODO ***** -->
<!-- Agent Maximum File Size: -->
<!-- **** TODO ***** -->
<!-- Submit button -->
</div>
</div>
</div>
</div>
</div>
</div>
@stop
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,60 @@
@extends('themes.default1.admin.layout.admin')
@section('Themes')
class="active"
@stop
@section('theme-bar')
active
@stop
@section('footer')
class="active"
@stop
@section('content')
<!-- open a form -->
{!! Form::model($footer,['url' => 'post-create-footer/'.$footer->id, 'method' => 'PATCH','files'=>true]) !!}
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Footer </h4>{!! Form::submit('save',['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- Name text form Required -->
<div class="box-body">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title','Title') !!}
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('title',null,['class' => 'form-control']) !!}
</div>
<div class="form-group {{ $errors->has('footer') ? 'has-error' : '' }}">
{!! Form::label('footer','Footer') !!}
{!! $errors->first('footer', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('footer',null,['class' => 'form-control','size' => '30x5','id'=>'footer']) !!}
</div>
</div>
<div class="box-footer">
</div>
</div>
@stop

View File

@@ -0,0 +1,62 @@
@extends('themes.default1.admin.layout.admin')
@section('Themes')
class="active"
@stop
@section('theme-bar')
active
@stop
@section('footer2')
class="active"
@stop
@section('content')
<!-- open a form -->
{!! Form::model($footer2,['url' => 'post-create-footer2/'.$footer2->id, 'method' => 'PATCH','files'=>true]) !!}
<!-- <div class="form-group {{ $errors->has('company_name') ? 'has-error' : '' }}"> -->
<!-- table -->
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Footer 2</h4> {!! Form::submit('save',['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- Name text form Required -->
<div class="box-body table-responsive"style="overflow:hidden;">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title','Title') !!}
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('title',null,['class' => 'form-control']) !!}
</div>
<div class="form-group {{ $errors->has('footer') ? 'has-error' : '' }}">
{!! Form::label('footer','Footer') !!}
{!! $errors->first('footer', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('footer',null,['class' => 'form-control','size' => '30x5','id'=>'footer']) !!}
</div>
</div>
<div class="box-footer">
</div>
</div>
</div>
@stop

View File

@@ -0,0 +1,56 @@
@extends('themes.default1.admin.layout.admin')
@section('Themes')
class="active"
@stop
@section('theme-bar')
active
@stop
@section('footer3')
class="active"
@stop
@section('content')
<!-- open a form -->
{!! Form::model($footer3,['url' => 'post-create-footer3/'.$footer3->id, 'method' => 'PATCH','files'=>true]) !!}
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Footer 3</h4>{!! Form::submit('save',['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
@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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- Name text form Required -->
<div class="box-body table-responsive">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title','Title') !!}
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('title',null,['class' => 'form-control']) !!}
</div>
<div class="form-group {{ $errors->has('footer') ? 'has-error' : '' }}">
{!! Form::label('footer','Footer') !!}
{!! $errors->first('footer', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('footer',null,['class' => 'form-control','size' => '30x5','id'=>'footer']) !!}
</div>
</div>
<div class="box-footer">
</div>
</div>
</div>
@stop

View File

@@ -0,0 +1,54 @@
@extends('themes.default1.admin.layout.admin')
@section('Themes')
class="active"
@stop
@section('theme-bar')
active
@stop
@section('footer4')
class="active"
@stop
@section('content')
<!-- open a form -->
{!! Form::model($footer4,['url'=>'post-create-footer4/'.$footer4->id, 'method'=>'PATCH','files'=>true]) !!}
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Footer 4</h4>{!! Form::submit('save',['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- Name text form Required -->
<div class="box-body">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title','Title') !!}
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('title',null,['class' => 'form-control']) !!}
</div>
<div class="form-group {{ $errors->has('footer') ? 'has-error' : '' }}">
{!! Form::label('footer','Footer') !!}
{!! $errors->first('footer', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('footer',null,['class' => 'form-control','size' => '30x5','id'=>'footer']) !!}
</div>
</div>
</div>
@stop

View File

@@ -0,0 +1,437 @@
!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Faveo | HELP DESK</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Bootstrap 3.3.2 -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- Font Awesome Icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons -->
<link href="http://code.ionicframework.com/ionicons/2.0.0/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- fullCalendar 2.2.5-->
<link href="plugins/fullcalendar/fullcalendar.min.css" rel="stylesheet" type="text/css" />
<link href="plugins/fullcalendar/fullcalendar.print.css" rel="stylesheet" type="text/css" media='print' />
<!-- Theme style -->
<link href="dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link href="dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
<!-- iCheck -->
<link href="plugins/iCheck/flat/blue.css" rel="stylesheet" type="text/css" />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<link rel="stylesheet" href="dist/css/tabby.css" type="text/css">
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body class="skin-blue">
<div class="wrapper">
<header class="main-header">
<a href="../../index2.html" class="logo"><b>Faveo</b> HELP DESK</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="tabs tabs-horizontal nav navbar-nav">
<li class="active"><a data-target="#tabA" href="#">Home</a></li>
<li><a data-target="#tabB" href="#">Staff</a></li>
<li><a data-target="#tabC" href="#">Department</a></li>
<li><a data-target="#tabD" href="#">Users</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="dist/img/user2-160x160.jpg" class="user-image" alt="User Image"/>
<span class="hidden-xs">Alexander Pierce</span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image" />
<p>
Alexander Pierce - Web Developer
<small>Member since Nov. 2012</small>
</p>
</li>
<!-- Menu Body -->
<li class="user-body">
<div class="col-xs-4 text-center">
<a href="#">Followers</a>
</div>
<div class="col-xs-4 text-center">
<a href="#">Sales</a>
</div>
<div class="col-xs-4 text-center">
<a href="#">Friends</a>
</div>
</li>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<a href="#" class="btn btn-default btn-flat">Profile</a>
</div>
<div class="pull-right">
<a href="#" class="btn btn-default btn-flat">Sign out</a>
</div>
</li>
</ul>
</li>
</ul>
<!-- <form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" id="navbar-search-input" placeholder="Search">
</div>
</form> -->
</div><!-- /.navbar-collapse -->
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<!-- search form -->
<form action="#" method="get" class="sidebar-form">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="Search..."/>
<span class="input-group-btn">
<button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
</span>
</div>
</form>
<!-- /.search form -->
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
<li class="header">TICKETS</li>
<li>
<a href="../widgets.html">
<i class="fa fa-envelope"></i> <span>Inbox</span> <small class="label pull-right bg-green">5</small>
</a>
</li>
<li>
<a href="../widgets.html">
<i class="fa fa-user"></i> <span>My Tickets</span> <small class="label pull-right bg-green">2</small>
</a>
</li>
<li>
<a href="../widgets.html">
<i class="fa fa-th"></i> <span>Unassigned</span> <small class="label pull-right bg-green">4</small>
</a>
</li>
<li>
<a href="../widgets.html">
<i class="fa fa-trash-o"></i> <span>Trash</span> <small class="label pull-right bg-green">89</small>
</a>
</li>
<li class="treeview">
<a href="#">
<i class="fa fa-folder-open"></i> <span>General</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li><a href=""><i class="fa fa-circle-o"></i>Open<small class="label pull-right bg-green">4</small></a></li>
<li><a href=""><i class="fa fa-circle-o"></i>Inprogress<small class="label pull-right bg-green">3</small></a></li>
<li><a href=""><i class="fa fa-circle-o"></i>Closed<small class="label pull-right bg-green">55</small></a></li>
</ul>
</li>
<li class="treeview">
<a href="#">
<i class="fa fa-folder-open"></i> <span>Support</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li><a href=""><i class="fa fa-circle-o"></i>Open<small class="label pull-right bg-green">1</small></a></li>
<li><a href=""><i class="fa fa-circle-o"></i>Inprogress<small class="label pull-right bg-green">6</small></a></li>
<li><a href=""><i class="fa fa-circle-o"></i>Closed<small class="label pull-right bg-green">88</small></a></li>
</ul>
</li>
<li class="header">LABELS</li>
<li><a href="#"><i class="fa fa-circle-o text-danger"></i> Important</a></li>
<li><a href="#"><i class="fa fa-circle-o text-warning"></i> Warning</a></li>
<li><a href="#"><i class="fa fa-circle-o text-info"></i> Information</a></li>
</ul>
</section>
<!-- /.sidebar -->
</aside>
<!-- Right side column. Contains the navbar and content of the page -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="tab-content" style="background-color: white;padding: 0 20px 0 20px">
<div class="collapse navbar-collapse" id="navbar-collapse">
<div class="tabs-content">
<div class="tabs-pane active" id="tabA">
<ul class="nav navbar-nav">
<li><a href="#">Link1</a></li>
<li><a href="#">Link2</a></li>
</ul>
</div>
<div class="tabs-pane" id="tabB">
<ul class="nav navbar-nav">
<li><a href="#">Link3</a></li>
<li><a href="#">Link4</a></li>
</ul>
</div>
<div class="tabs-pane" id="tabC">
<ul class="nav navbar-nav">
<li><a href="#">Link5</a></li>
<li><a href="#">Link6</a></li>
</ul>
</div>
<div class="tabs-pane" id="tabD">
<ul class="nav navbar-nav">
<li><a href="#">Link7</a></li>
<li><a href="#">Link8</a></li>
</ul>
</div>
</div>
</div>
</div>
<section class="content-header">
<h1>
Tickets
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li class="active">Mailbox</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Inbox </h3> <small> 5 new messages</small>
<div class="box-tools pull-right">
<div class="has-feedback">
<input type="text" class="form-control input-sm" placeholder="Search Mail"/>
<span class="glyphicon glyphicon-search form-control-feedback"></span>
</div>
</div><!-- /.box-tools -->
</div><!-- /.box-header -->
<div class="box-body no-padding">
<div class="mailbox-controls">
<!-- Check all button -->
<button class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></button>
<div class="btn-group">
<button class="btn btn-default btn-sm"><i class="fa fa-trash-o"></i></button>
<button class="btn btn-default btn-sm"><i class="fa fa-reply"></i></button>
<button class="btn btn-default btn-sm"><i class="fa fa-share"></i></button>
</div><!-- /.btn-group -->
<button class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
<div class="pull-right">
1-5 /5
<div class="btn-group">
<button class="btn btn-default btn-sm"><i class="fa fa-chevron-left"></i></button>
<button class="btn btn-default btn-sm"><i class="fa fa-chevron-right"></i></button>
</div><!-- /.btn-group -->
</div><!-- /.pull-right -->
</div>
<div class="table-responsive mailbox-messages">
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>
</th>
<th>
subject
</th>
<th>
Ticket ID
</th>
<th>
last Replier
</th>
<th>
Replies
</th>
<th>
Priority
</th>
<th>
Last Activity
</th>
<th>
Reply Due
</th>
</thead>
<tbody>
<tr>
<td><input type="checkbox" /></td>
<td class="mailbox-star"><a href="#"><i class="fa fa-star text-yellow"></i></a></td>
@foreach($threads as $thread)
<td class="mailbox-name"><a href="timeline.html">{{$thread->ticket_subject}}</a></td>
<td class="mailbox-Id">{{$thread->ticket_id}}</td>
@endforeach
<td class="mailbox-last-reply">client</td>
<td class="mailbox-replies">11</td>
<td class="mailbox-priority"><spam class="text-green">Low</spam></td>
<td class="mailbox-last-activity">11h 59m 23s</td>
<td class="mailbox-date">5h 23m 03s</td>
</tr>
<tr>
<td><input type="checkbox" /></td>
<td class="mailbox-star"><a href="#"><i class="fa fa-star text-yellow"></i></a></td>
<td class="mailbox-name"><a href="timeline.html">Testing</a></td>
<td class="mailbox-Id">#12345</td>
<td class="mailbox-last-reply">client</td>
<td class="mailbox-replies">11</td>
<td class="mailbox-priority"><spam class="text-yellow">Medium</spam></td>
<td class="mailbox-last-activity">11h 59m 23s</td>
<td class="mailbox-date">5h 23m 03s</td>
</tr>
<tr>
<td><input type="checkbox" /></td>
<td class="mailbox-star"><a href="#"><i class="fa fa-star text-yellow"></i></a></td>
<td class="mailbox-name"><a href="timeline.html">Testing</a></td>
<td class="mailbox-Id">#12345</td>
<td class="mailbox-last-reply">client</td>
<td class="mailbox-replies">11</td>
<td class="mailbox-priority"><spam class="text-red">High</spam></td>
<td class="mailbox-last-activity">11h 59m 23s</td>
<td class="mailbox-date">5h 23m 03s</td>
</tr>
<tr>
<td><input type="checkbox" /></td>
<td class="mailbox-star"><a href="#"><i class="fa fa-star text-yellow"></i></a></td>
<td class="mailbox-name"><a href="timeline.html">Testing</a></td>
<td class="mailbox-Id">#12345</td>
<td class="mailbox-last-reply">client</td>
<td class="mailbox-replies">11</td>
<td class="mailbox-priority"><spam class="text-yellow">Medium</spam></td>
<td class="mailbox-last-activity">11h 59m 23s</td>
<td class="mailbox-date">5h 23m 03s</td>
</tr>
<tr>
<td><input type="checkbox" /></td>
<td class="mailbox-star"><a href="#"><i class="fa fa-star text-yellow"></i></a></td>
<td class="mailbox-name"><a href="timeline.html">Testing</a></td>
<td class="mailbox-Id">#12345</td>
<td class="mailbox-last-reply">client</td>
<td class="mailbox-replies">11</td>
<td class="mailbox-priority"><spam class="text-red">High</spam></td>
<td class="mailbox-last-activity">11h 59m 23s</td>
<td class="mailbox-date">5h 23m 03s</td>
</tr>
</tbody>
</table><!-- /.table -->
</div><!-- /.mail-box-messages -->
</div><!-- /.box-body -->
<div class="box-footer no-padding">
<div class="mailbox-controls">
<!-- Check all button -->
<button class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></button>
<div class="btn-group">
<button class="btn btn-default btn-sm"><i class="fa fa-trash-o"></i></button>
<button class="btn btn-default btn-sm"><i class="fa fa-reply"></i></button>
<button class="btn btn-default btn-sm"><i class="fa fa-share"></i></button>
</div><!-- /.btn-group -->
<button class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
<div class="pull-right">
1-5/5
<div class="btn-group">
<button class="btn btn-default btn-sm"><i class="fa fa-chevron-left"></i></button>
<button class="btn btn-default btn-sm"><i class="fa fa-chevron-right"></i></button>
</div><!-- /.btn-group -->
</div><!-- /.pull-right -->
</div>
</div>
</div><!-- /. box -->
</div><!-- /.col -->
</div><!-- /.row -->
</section><!-- /.content -->
</div><!-- /.content-wrapper -->
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> 0.1
</div>
<strong>Copyright &copy; 2014-2015 <a href="http://www.ladybirdweb.com">Ladybird Web Solution</a>.</strong> All rights reserved.
</footer>
</div><!-- ./wrapper -->
<!-- jQuery 2.1.3 -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
<!-- Slimscroll -->
<script src="plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<!-- FastClick -->
<script src='plugins/fastclick/fastclick.min.js'></script>
<!-- AdminLTE App -->
<script src="dist/js/app.min.js" type="text/javascript"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js" type="text/javascript"></script>
<!-- iCheck -->
<script src="plugins/iCheck/icheck.min.js" type="text/javascript"></script>
<!-- Page Script -->
<script>
$(function() {
//Enable iCheck plugin for checkboxes
//iCheck for checkbox and radio inputs
$('input[type="checkbox"]').iCheck({
checkboxClass: 'icheckbox_flat-blue',
radioClass: 'iradio_flat-blue'
});
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
//Handle starring for glyphicon and font awesome
$(".mailbox-star").click(function(e) {
e.preventDefault();
//detect type
var $this = $(this).find("a > i");
var glyph = $this.hasClass("glyphicon");
var fa = $this.hasClass("fa");
//Switch states
if (glyph) {
$this.toggleClass("glyphicon-star");
$this.toggleClass("glyphicon-star-empty");
}
if (fa) {
$this.toggleClass("fa-star");
$this.toggleClass("fa-star-o");
}
});
});
</script>
<!-- // <script src="../plugins/jQuery/jQuery-2.1.3.min.js"></script> -->
<script src="dist/js/tabby.js"></script>
</body>
</html>

View File

@@ -0,0 +1,621 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Faveo | HELP DESK</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Bootstrap 3.3.2 -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- Font Awesome Icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons -->
<link href="http://code.ionicframework.com/ionicons/2.0.0/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link href="dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<link rel="stylesheet" href="dist/css/tabby.css" type="text/css">
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
<link href="dist/css/editor.css" type="text/css" rel="stylesheet"/>
<script src="dist/js/jquery-2.1.0.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<!-- <link href="../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" /> -->
</head>
<body class="skin-blue">
<div class="wrapper">
<header class="main-header">
<a href="../../index2.html" class="logo"><b>Faveo</b> HELP DESK</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="tabs tabs-horizontal nav navbar-nav">
<li class="active"><a data-target="#tabA" href="#">Home</a></li>
<li><a data-target="#tabB" href="#">Staff</a></li>
<li><a data-target="#tabC" href="#">Department</a></li>
<li><a data-target="#tabD" href="#">Users</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="dist/img/user2-160x160.jpg" class="user-image" alt="User Image"/>
<span class="hidden-xs">Alexander Pierce</span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image" />
<p>
Alexander Pierce - Web Developer
<small>Member since Nov. 2012</small>
</p>
</li>
<!-- Menu Body -->
<li class="user-body">
<div class="col-xs-6 text-center">
<a href="#">Department:Sales</a>
</div>
<div class="col-xs-6 text-center">
<a href="#">Level 1 Support</a>
</div>
</li>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<a href="#" class="btn btn-default btn-flat">Profile</a>
</div>
<div class="pull-right">
<a href="#" class="btn btn-default btn-flat">Sign out</a>
</div>
</li>
</ul>
</li>
</ul>
<!-- <form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" id="navbar-search-input" placeholder="Search">
</div>
</form> -->
</div><!-- /.navbar-collapse -->
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<!-- search form -->
<form action="#" method="get" class="sidebar-form">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="Search..."/>
<span class="input-group-btn">
<button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
</span>
</div>
</form>
<!-- /.search form -->
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
<li class="header">TICKET INFORMATION</li>
<li>
<a href="">
<span>TICKET ID</span>
</br><b>#123456</b>
</a>
</li>
<li>
<a href="">
<span>USER</span>
</br><i class="fa fa-user"> </i> <b>Username</b>
</a>
</li>
<li>
<a href="">
<span>ASSIGNED TO</span>
</br> <b>Name</b>
</a>
</li>
<li class="header">TICKETS</li>
<li>
<a href="ticket.html">
<i class="fa fa-envelope"></i> <span>Inbox</span> <small class="label pull-right bg-green">5</small>
</a>
</li>
<li>
<a href="../widgets.html">
<i class="fa fa-user"></i> <span>My Tickets</span> <small class="label pull-right bg-green">2</small>
</a>
</li>
<li>
<a href="../widgets.html">
<i class="fa fa-th"></i> <span>Unassigned</span> <small class="label pull-right bg-green">4</small>
</a>
</li>
<li>
<a href="../widgets.html">
<i class="fa fa-trash-o"></i> <span>Trash</span> <small class="label pull-right bg-green">89</small>
</a>
</li>
<li class="treeview">
<a href="#">
<i class="fa fa-folder-open"></i> <span>General</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li><a href=""><i class="fa fa-circle-o"></i>Open<small class="label pull-right bg-green">4</small></a></li>
<li><a href=""><i class="fa fa-circle-o"></i>Inprogress<small class="label pull-right bg-green">3</small></a></li>
<li><a href=""><i class="fa fa-circle-o"></i>Closed<small class="label pull-right bg-green">55</small></a></li>
</ul>
</li>
<li class="treeview">
<a href="#">
<i class="fa fa-folder-open"></i> <span>Support</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li><a href=""><i class="fa fa-circle-o"></i>Open<small class="label pull-right bg-green">1</small></a></li>
<li><a href=""><i class="fa fa-circle-o"></i>Inprogress<small class="label pull-right bg-green">6</small></a></li>
<li><a href=""><i class="fa fa-circle-o"></i>Closed<small class="label pull-right bg-green">88</small></a></li>
</ul>
</li>
<li class="header">LABELS</li>
<li><a href="#"><i class="fa fa-circle-o text-danger"></i> Important</a></li>
<li><a href="#"><i class="fa fa-circle-o text-warning"></i> Warning</a></li>
<li><a href="#"><i class="fa fa-circle-o text-info"></i> Information</a></li>
</ul>
</section>
<!-- /.sidebar --> </aside>
<!-- Right side column. Contains the navbar and content of the page -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="tab-content" style="background-color: white;padding: 0 20px 0 20px">
<div class="collapse navbar-collapse" id="navbar-collapse">
<div class="tabs-content">
<div class="tabs-pane active" id="tabA">
<ul class="nav navbar-nav">
<li><a href="#">Home</a></li>
<li><a href="#">My Preferences</a></li>
<li><a href="#">Notification</a></li>
<li><a href="#">Comments</a></li>
</ul>
</div>
<div class="tabs-pane" id="tabB">
<ul class="nav navbar-nav">
<li><a href="#">Manage Tickets</a></li>
<li><a href="#">Search</a></li>
<li><a href="#">New Ticket</a></li>
<li><a href="#">Views</a></li>
</ul>
</div>
<div class="tabs-pane" id="tabC">
<ul class="nav navbar-nav">
<li><a href="#">Link5</a></li>
<li><a href="#">Link6</a></li>
</ul>
</div>
<div class="tabs-pane" id="tabD">
<ul class="nav navbar-nav">
<li><a href="#">Link7</a></li>
<li><a href="#">Link8</a></li>
</ul>
</div>
</div>
</div>
</div>
<section class="content-header">
<h1>
Timeline
<small>example</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li><a href="#">UI</a></li>
<li class="active">Timeline</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<!-- Main content -->
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title"><i class="fa fa-user"> </i> Username </h3> ( organisation )
<div class="pull-right">
<button type="button" class="btn btn-default"><i class="fa fa-edit" style="color:green;"> </i> Edit</button>
<button type="button" class="btn btn-default"><i class="fa fa-print" style="color:blue;"> </i> Print</button>
<!-- </div> -->
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-exchange" style="color:teal;"> </i>
Change Status <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#"><i class="fa fa-check" style="color:green;"> </i>Closed</a></li>
<li><a href="#"><i class="fa fa-check-circle-o " style="color:green;"> </i> Resolved</a></li>
</ul>
</div>
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cogs" style="color:teal;"> </i>
More <span class="caret"></span>
</button>
<ul class="dropdown-menu pull-right">
<li><a href="#"><i class="fa fa-users" style="color:green;"> </i>Change Owner</a></li>
<li><a href="#"><i class="fa fa-edit" style="color:blue;"> </i>Manage Forms</a></li>
<li><a href="#"><i class="fa fa-trash" style="color:red;"> </i>Delete Ticket</a></li>
<li><a href="#"><i class="fa fa-ban" style="color:red;"> </i> Ban Email</a></li>
</ul>
</div>
</div>
</div>
<div class="box-body">
<div class="row">
<section class="content">
<div class="col-md-12">
<div class="callout callout-info">
<div class="row">
<div class="col-md-3">
<b>SLA Plan: </b> Default SLA Plan
</div>
<div class="col-md-3">
<b>Create Date: </b> 12/03/2015 1:40 Pm
</div>
<div class="col-md-3">
<b>Due Date: </b> 15/03/2015 1:05 pm
</div>
<div class="col-md-3">
<b>Last Response: </b> 15/03/2015 1:05 pm
</div>
</div>
</div>
</div>
<div class="col-md-6">
<table class="table table-hover">
<!-- <tr><th></th><th></th></tr> -->
<tr><td><b>Status:</b></td> <td>Open</td></tr>
<tr><td><b>Priority:</b></td> <td>High</td></tr>
<tr><td><b>Department:</b></td> <td>Support</td></tr>
<tr><td><b>Email:</b></td> <td>Email@email.com</td></tr>
</table>
<!-- </div> -->
</div>
<div class="col-md-6">
<!-- <div class="callout callout-success"> -->
<table class="table table-hover">
<!-- <tr><th></th><th></th></tr> -->
<tr><td><b>Phone:</b></td> <td>9999999999</td></tr>
<tr><td><b>Source:</b></td> <td>Email (IP address)</td></tr>
<tr><td><b>Help Topic:</b></td> <td>— Unassigned —</td></tr>
<tr><td><b>Last Message:</b></td> <td>Default SLA</td></tr>
</table>
</div>
<!-- </div> -->
</section>
</div>
</div>
</div>
<div class='row'>
<div class='col-xs-12'>
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#General" data-toggle="tab" style="color:green;"><i class="fa fa-reply-all"> </i> Reply</a></li>
<li><a href="#Reply" data-toggle="tab" style="color:orange;"><i class="fa fa-mail-forward" > </i> Forward</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="General">
<div class="form-group">
<button type="button" class="btn btn-default"><i class="fa fa-check-square-o" style="color:green;"> </i> Update</button>
<button type="button" class="btn btn-default"><i class="fa fa-hand-o-right" style="color:orange;"> </i> Assign</button>
<button type="button" class="btn btn-default"><i class="fa fa-file-text" style="color:blue;"> </i> Internal Notes</button>
<button type="button" class="btn btn-default"><i class="fa fa-arrows-alt" style="color:red;"> </i> Surrender</button>
</div>
<form>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>From</label>
</div>
<div class="col-md-10">
<input type="text" class="form-control" name="from" id="from" style="width:40%"/>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>To</label>
</div>
<div class="col-md-10">
<input type="text" class="form-control" name="to" id="to" style="width:55%"/>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>Response</label>
</div>
<div class="col-md-10">
<select class="form-control" style="width:55%" >
<option>Select a canned response</option>
<option>Original Message</option>
<option>Last Message</option>
</select>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>Reply Content</label>
</div>
<div class="col-md-10">
<textarea id="txtEditor"></textarea>
</div>
</div>
</div>
</form>
</div>
<div class="tab-pane" id="Reply" >
<div class="form-group">
<button type="button" class="btn btn-default"><i class="fa fa-mail-forward" style="color:green;"> </i> Send</button>
<button type="button" class="btn btn-default"><i class="fa fa-th-large" style="color:teal;"> </i> Option</button>
<button type="button" class="btn btn-default"><i class="fa fa-file-text" style="color:blue;"> </i> Internal Notes</button>
</div>
<form>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>From</label>
</div>
<div class="col-md-10">
<input type="text" class="form-control" name="from" id="from" style="width:40%" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>To</label>
</div>
<div class="col-md-10">
<input type="text" class="form-control" name="to" id="to" style="width:55%" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>Subject</label>
</div>
<div class="col-md-10">
<input type="text" class="form-control" name="from" id="from" style="width:100%" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>Response</label>
</div>
<div class="col-md-10">
<select class="form-control" style="width:55%" >
<option>Select a canned response</option>
<option>Original Message</option>
<option>Last Message</option>
</select>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>Reply Content</label>
</div>
<div class="col-md-10">
<textarea id="editor2" name="editor2" rows="5" cols="80">
</textarea>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- row -->
<div class="row">
<div class="col-md-12">
<!-- The time line -->
<ul class="timeline">
<!-- timeline time label -->
<li class="time-label">
<span class="bg-red">
10 Feb. 2014
</span>
<ul class="pagination pagination-sm no-margin pull-right">
<li><a href="#"><i class="fa fa-chevron-left"></i></a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#"><i class="fa fa-chevron-right"></i></a></li>
</ul>
</li>
<!-- /.timeline-label -->
<!-- timeline item -->
<li>
<i class="fa fa-user bg-aqua" title="Posted by Customer"></i>
<div class="timeline-item">
<span class="time"><i class="fa fa-clock-o"></i> 5 mins ago </span>
<h3 class="timeline-header"><a href="#">Customer Reply</a></h3>
<div class="timeline-body">
Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles,
weebly ning heekya handango imeem plugg dopplr jibjab, movity
jajah plickers sifteo edmodo ifttt zimbra. Babblely odeo kaboodle
quora plaxo ideeli hulu weebly balihoo...
</div>
<div class='timeline-footer'>
<a class="btn btn-primary btn-xs"> <i class="fa fa-file-o" style="color:#fff;"> </i> Read more</a>
<button type="button" class="btn btn-success btn-xs"><i class="fa fa-edit" style="color:#fff;"> </i> Edit</button>
<a class="btn btn-danger btn-xs"><i class="fa fa-trash" style="color:#fff;"> </i> Delete</a>
</div>
</div>
</li>
<li>
<i class="fa fa-envelope bg-blue" title="Posted by Customer"></i>
<div class="timeline-item">
<span class="time"><i class="fa fa-clock-o"></i> 12:05</span>
<h3 class="timeline-header"><a href="#">Reseller Club</a></h3>
<div class="timeline-body">
Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles,
weebly ning heekya handango imeem plugg dopplr jibjab, movity
jajah plickers sifteo edmodo ifttt zimbra. Babblely odeo kaboodle
quora plaxo ideeli hulu weebly balihoo...
</div>
<div class='timeline-footer'>
<a class="btn btn-primary btn-xs"> <i class="fa fa-file-o" style="color:#fff;"> </i> Read more</a>
<button type="button" class="btn btn-success btn-xs"><i class="fa fa-edit" style="color:#fff;"> </i> Edit</button>
<a class="btn btn-danger btn-xs"><i class="fa fa-trash" style="color:#fff;"> </i> Delete</a>
</div>
</div>
</li>
<!-- END timeline item -->
<!-- timeline item -->
<!-- END timeline item -->
<!-- timeline item -->
<li>
<i class="fa fa-group bg-yellow" title="Posted by Support Team"></i>
<div class="timeline-item">
<span class="time"><i class="fa fa-clock-o"></i> 27 mins ago</span>
<h3 class="timeline-header"><a href="#">Team Reply</a></h3>
<div class="timeline-body">
Take me to your leader!
Switzerland is small and neutral!
We are more like Germany, ambitious and misunderstood!
</div>
<div class='timeline-footer'>
<a class="btn btn-primary btn-xs"> <i class="fa fa-file-o" style="color:#fff;"> </i> Read more</a>
<button type="button" class="btn btn-success btn-xs"><i class="fa fa-edit" style="color:#fff;"> </i> Edit</button>
<a class="btn btn-danger btn-xs"><i class="fa fa-trash" style="color:#fff;"> </i> Delete</a>
</div>
</div>
</li>
<!-- END timeline item -->
<!-- timeline time label -->
<li class="time-label">
<span class="bg-green">
3 Jan. 2014
</span>
</li>
<!-- /.timeline-label -->
<!-- timeline item -->
<li>
<i class="fa fa-mail-reply-all bg-purple" title="Posted by System"></i>
<div class="timeline-item">
<span class="time"><i class="fa fa-clock-o"></i> 2 days ago</span>
<h3 class="timeline-header"><a href="#">System Reply</a></h3>
<div class="timeline-body">
this is a system reply
</div>
</div>
</li>
<li>
<i class="fa fa-clock-o bg-gray"></i>
<ul class="pagination pagination-sm no-margin pull-right">
<li><a href="#"><i class="fa fa-chevron-left"></i></a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#"><i class="fa fa-chevron-right"></i></a></li>
</ul>
</li>
</ul>
</div><!-- /.col -->
</div><!-- /.row -->
</div>
</div>
</section><!-- /.content -->
</div><!-- /.content-wrapper -->
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> 2.0
</div>
<strong>Copyright &copy; 2014-2015 <a href="http://www.ladybirdweb.com">Ladybird Web Solution</a>.</strong> All rights reserved.
</footer>
</div><!-- ./wrapper -->
<!-- jQuery 2.1.3 -->
<!-- // <script src="../plugins/jQuery/jQuery-2.1.3.min.js"></script> -->
<!-- Bootstrap 3.3.2 JS -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
<!-- FastClick -->
<script src='plugins/fastclick/fastclick.min.js'></script>
<!-- AdminLTE App -->
<script src="dist/js/app.min.js" type="text/javascript"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js" type="text/javascript"></script>
<script src="dist/js/tabby.js"></script>
<script src="../dist/js/editor.js"></script>
<!--[if lt IE 9]>
<script src="../js/froala_editor_ie8.min.js"></script>
<![endif]-->
<script type="text/javascript">
$(document).ready(function() {
$("#txtEditor").Editor();
});
</script>
</body>
</html>

View File

@@ -0,0 +1,387 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Faveo | HELP DESK</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Bootstrap 3.3.2 -->
<link href="{{asset("lb-faveo/downloads/bootstrap.min.css")}}" rel="stylesheet" type="text/css" />
<!-- Font Awesome Icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons -->
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<!-- fullCalendar 2.2.5-->
<link href="{{asset("lb-faveo/plugins/fullcalendar/fullcalendar.min.css")}}" rel="stylesheet" type="text/css" />
<link href="{{asset("lb-faveo/plugins/fullcalendar/fullcalendar.print.css")}}" rel="stylesheet" type="text/css" media='print' />
<!-- Theme style -->
<link href="{{asset("lb-faveo/dist/css/AdminLTE.css")}}" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link href="{{asset("lb-faveo/dist/css/skins/_all-skins.min.css")}}" rel="stylesheet" type="text/css" />
<!-- iCheck -->
<link href="{{asset("lb-faveo/plugins/iCheck/flat/blue.css")}}" rel="stylesheet" type="text/css" />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<link rel="stylesheet" href="{{asset("lb-faveo/dist/css/tabby.css")}}" type="text/css">
<link href="{{asset("lb-faveo/downloads/jquerysctipttop.css")}}" rel="stylesheet" type="text/css">
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<link rel="stylesheet" href="{{asset("lb-faveo/dist/css/editor.css")}}" type="text/css">
<link href="{{asset("lb-faveo/plugins/filebrowser/plugin.js")}}" rel="stylesheet" type="text/css" />
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
@yield('HeadInclude')
</head>
<body class="skin-yellow fixed">
<div class="wrapper">
<header class="main-header">
<a href="../../index2.html" class="logo"><b>Faveo </b>HELPDESK</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="tabs tabs-horizontal nav navbar-nav">
{{-- <li><a data-target="#tabA" href="#">Home</a></li> --}}
<li @yield('Staffs')><a data-target="#tabB" href="#">Staffs</a></li>
<li @yield('Emails')><a data-target="#tabC" href="#">Emails</a></li>
<li @yield('Manage')><a data-target="#tabD" href="#">Manage</a></li>
<li @yield('Settings')><a data-target="#tabE" href="#">Settings</a></li>
<li @yield('Themes')><a data-target="#tabF" href="#">Themes</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="{{url('user')}}">Agent Panel</a></li>
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
@if(Auth::user())
@if(Auth::user()->profile_pic)
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{Auth::user()->profile_pic}}"class="user-image" alt="User Image"/>
@else
<img src="{{ Gravatar::src(Auth::user()->email) }}" class="user-image" alt="User Image">
@endif
<span class="hidden-xs">{!! Auth::user()->first_name." ".Auth::user()->last_name !!}</span>
@endif
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header" style="background-color:#343F44;">
@if(Auth::user())
@if(Auth::user()->profile_pic)
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
@else
<img src="{{ Gravatar::src(Auth::user()->email) }}" class="img-circle" alt="User Image">
@endif
<p>
{!! Auth::user()->first_name !!}{!! " ". Auth::user()->last_name !!} - {{Auth::user()->role}}
<small></small>
</p>
@endif
</li>
<!-- Menu Footer-->
<li class="user-footer" style="background-color:#1a2226;">
<div class="pull-left">
<a href="{{url('admin-profile')}}" class="btn btn-info btn-sm"><b>Profile</b></a>
</div>
<div class="pull-right">
<a href="{{url('auth/logout')}}" class="btn btn-danger btn-sm"><b>Sign out</b></a>
</div>
</li>
</ul>
</li>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<div class="user-panel">
<div class = "row">
<div class="col-xs-3"></div>
<div class="col-xs-2" style="width:50%;">
<a href="{!! url('profile') !!}">
@if(Auth::user() && Auth::user()->profile_pic)
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
@else
<img src="{{ Gravatar::src(Auth::user()->email) }}" class="img-circle" alt="User Image">
@endif
</a>
</div>
</div>
<div class="info" style="text-align:center;">
@if(Auth::user())
<p>{!! Auth::user()->first_name !!}{!! " ". Auth::user()->last_name !!}</p>
@endif
@if(Auth::user() && Auth::user()->active==1)
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
@else
<a href="#"><i class="fa fa-circle"></i> Offline</a>
@endif
</div>
</div>
<!-- search form -->
{{-- <form action="#" method="get" class="sidebar-form"> --}}
{{-- <div class="input-group"> --}}
{{-- <input type="text" name="q" class="form-control" placeholder="Search..."/> --}}
{{-- <span class="input-group-btn"> --}}
{{-- <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button> --}}
{{-- </span> --}}
{{-- </div> --}}
{{-- </form> --}}
<!-- /.search form -->
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
<li class="header">TICKETS</li>
<?php
$inbox = App\Model\helpdesk\Ticket\Tickets::get();
$myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status','1')->get();
$unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '0')->where('status','1')->get();
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status','1')->get();
$i = count($tickets);
?>
<li>
<a href="{{ url('/ticket/open') }}">
<i class="fa fa-envelope"></i> <span>Inbox</span> <small class="label pull-right bg-green">
{!! $i !!}</small>
</a>
</li>
<li @yield('myticket')>
<a href="{{url('ticket/myticket')}}">
<i class="fa fa-user"></i> <span>My Tickets</span>
<small class="label pull-right bg-green">{{count($myticket) }}</small>
</a>
</li>
<li>
<a href="{{url('unassigned')}}">
<i class="fa fa-th"></i> <span>Unassigned</span>
<small class="label pull-right bg-green">{{count($unassigned)}}</small>
</a>
</li>
<li>
<a href="{{url('trash')}}">
<i class="fa fa-trash-o"></i> <span>Trash</span>
<?php $deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->get();?>
<small class="label pull-right bg-green">{{count($deleted)}}</small>
</a>
</li>
<li class="header">UPDATES</li>
<li>
<?php $update = App\Model\helpdesk\Utility\Version_Check::where('id','=',1)->first();
if($update->current_version == $update->new_version){?>
<a href="{!! URL::route('checkupdate') !!}" id="checkUpdate">
<span>No new Updates!</span><br/>
<br/>
<i class="fa fa-inbox"></i> <span>Check for Updates.</span>
<img id="gif-update" src="{{asset("lb-faveo/dist/img/gifloader.gif")}}" style="width:12%; height:12%; margin-bottom:5%;margin-left:10%;display:none">
<small class="label pull-right bg-green"></small>
</a>
<?php } elseif($update->current_version < $update->new_version) { ?>
<a>
<i class="fa fa-inbox"></i> <span>Version {!! $update->new_version !!} is Available</span>
<small class="label pull-right bg-green"></small>
</a>
<?php } ?>
</li>
</section>
<!-- /.sidebar -->
</aside>
<!-- Right side column. Contains the navbar and content of the page -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="tab-content" style="background-color: white;padding: 0 20px 0 20px">
<div class="collapse navbar-collapse" id="navbar-collapse">
<div class="tabs-content">
<div class="tabs-pane active" id="tabA">
<ul class="nav navbar-nav">
</ul>
</div>
<div class="tabs-pane @yield('staffs-bar')" id="tabB">
<ul class="nav navbar-nav">
<li id="bar" @yield('staffs')><a href="{{ url('agents') }}" >Staffs</a></li></a></li>
<li id="bar" @yield('departments')><a href="{{ url('departments') }}" >Departments</a></li></a></li>
<li id="bar" @yield('teams')><a href="{{ url('teams') }}" >Teams</a></li></a></li>
<li id="bar" @yield('groups')><a href="{{ url('groups') }}" >Groups</a></li></a></li>
</ul>
</div>
<div class="tabs-pane @yield('emails-bar')" id="tabC">
<ul class="nav navbar-nav">
<li id="bar" @yield('emails')><a href="{{ url('emails') }}" >Incoming Emails</a></li></a></li>
<li id="bar" @yield('smtp')><a href="{{ url('getsmtp') }}" >Outgoing Email</a></li>
<li id="bar" @yield('ban')><a href="{{ url('banlist') }}" >Ban Lists</a></li>
{{-- <li id="bar" @yield('template')><a href="{{ url('template') }}" >Template</a></li> --}}
<li id="bar" @yield('diagno')><a href="{{ url('getdiagno') }}" >Diagnostic</a></li>
</ul>
</div>
<div class="tabs-pane @yield('manage-bar')" id="tabD">
<ul class="nav navbar-nav">
<li id="bar" @yield('help')><a href="{{url('helptopic')}}">Help Topics</a></li>
<li id="bar" @yield('sla')><a href="{{url('sla')}}">SLA Plans</a></li>
<li id="bar" @yield('forms')><a href="{{url('forms')}}">Forms</a></li>
</ul>
</div>
<div class="tabs-pane @yield('settings-bar')" id="tabE">
<ul class="nav navbar-nav">
<li id="bar" @yield('company')><a href="{{url('getcompany')}}">Company</a></li>
<li id="bar" @yield('system')><a href="{{url('getsystem')}}">System</a></li>
<li id="bar" @yield('email')><a href="{{url('getemail')}}">Email</a></li>
<li id="bar" @yield('tickets')><a href="{{url('getticket')}}">Tickets</a></li>
{{-- <li id="bar" @yield('access')><a href="{{ // url('getaccess')}}">Access</a></li> --}}
<li id="bar" @yield('auto-response')><a href="{{url('getresponder')}}">Auto-Responce</a></li>
<li id="bar" @yield('alert')><a href="{{url('getalert')}}">Alert & Notice</a></li>
</ul>
</div>
<div class="tabs-pane @yield('theme-bar')" id="tabF">
<ul class="nav navbar-nav">
<li id="bar" @yield('footer')><a href="{{ url('create-footer') }}" >Footer</a></li></a></li>
<li id="bar" @yield('footer2')><a href="{{ url('create-footer2') }}" >Footer2</a></li></a></li>
<li id="bar" @yield('footer3')><a href="{{ url('create-footer3') }}" >Footer3</a></li></a></li>
<li id="bar" @yield('footer4')><a href="{{ url('create-footer4') }}" >Footer4</a></li></a></li>
</ul>
</div>
</div>
</div>
</div>
<section class="content-header">
@yield('PageHeader')
@yield('breadcrumbs')
</section>
<!-- Main content -->
<section class="content">
@yield('content')
</section><!-- /.content -->
<!-- /.content-wrapper -->
</div>
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> {!! Config::get('app.version') !!}
</div>
<?php
$company = App\Model\helpdesk\Settings\Company::where('id','=','1')->first();
?>
<strong>Copyright &copy; {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>.</strong> All rights reserved. Powered by <a href="http://www.faveohelpdesk.com/" target="blank">Faveo</a>
</footer>
</div><!-- ./wrapper -->
<!-- jQuery 2.1.3 -->
<script src="{{asset("lb-faveo/downloads/ajax-jquery.min.js")}}"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="{{asset("lb-faveo/downloads/bootstrap.min.js")}}" type="text/javascript"></script>
<!-- Slimscroll -->
<script src="{{asset("lb-faveo/plugins/slimScroll/jquery.slimscroll.min.js")}}" type="text/javascript"></script>
<!-- FastClick -->
<script src="{{asset("lb-faveo/plugins/fastclick/fastclick.min.js")}}"></script>
<!-- AdminLTE App -->
<script src="{{asset("lb-faveo/dist/js/app.min.js")}}" type="text/javascript"></script>
<!-- AdminLTE for demo purposes -->
{{-- // <script src="{{asset("dist/js/demo.js")}}" type="text/javascript"></script> --}}
<!-- iCheck -->
<script src="{{asset("lb-faveo/plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
<!-- Page Script -->
<script src="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js")}}" type="text/javascript"></script>
<script>
$(function () {
//Add text editor
$("textarea").wysihtml5();
});
// $(function(){
// $("#checkUpdate").on('click',function(){
// $.ajax({
// type: "GET",
// url: "{!! URL::route('version-check') !!}",
// beforeSend: function() {
// $("#gif-update").show();
// },
// success:function(response){
// alert(response);
// $("#gif-update").hide();
// }
// })
// return false;
// });
// });
$(function() {
//Enable iCheck plugin for checkboxes
//iCheck for checkbox and radio inputs
$('input[type="checkbox"]').iCheck({
checkboxClass: 'icheckbox_flat-blue',
radioClass: 'iradio_flat-blue'
});
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
//Handle starring for glyphicon and font awesome
$(".mailbox-star").click(function(e) {
e.preventDefault();
//detect type
var $this = $(this).find("a > i");
var glyph = $this.hasClass("glyphicon");
var fa = $this.hasClass("fa");
//Switch states
if (glyph) {
$this.toggleClass("glyphicon-star");
$this.toggleClass("glyphicon-star-empty");
}
if (fa) {
$this.toggleClass("fa-star");
$this.toggleClass("fa-star-o");
}
});
});
</script>
<!-- // <script src="../plugins/jQuery/jQuery-2.1.3.min.js"></script> -->
<script src="{{asset("lb-faveo/dist/js/tabby.js")}}"></script>
<!-- // <script src="{{asset("dist/js/editor.js")}}"></script> -->
<!-- CK Editor -->
<!-- // <script src="{{asset("//cdn.ckeditor.com/4.4.3/standard/ckeditor.js")}}"></script> -->
<script src="{{asset("lb-faveo/plugins/filebrowser/plugin.js")}}"></script>
@yield('FooterInclude')
</body>
</html>

View File

@@ -0,0 +1,56 @@
@extends('themes.default1.agent.layout.agent')
@section('Tools')
class="active"
@stop
@section('tools-bar')
active
@stop
@section('tools')
class="active"
@stop
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(['route'=>'canned.store','method' => 'patch']) !!}
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">Create </h3>
<div class="pull-right">{!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</div>
</div>
<div class="box-body">
<div class="row">
<!-- username -->
<div class="col-xs-6 form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title',Lang::get('lang.title')) !!}
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('title',null,['class' => 'form-control']) !!}
</div>
<!-- firstname -->
<div class="col-xs-12 form-group {{ $errors->has('message') ? 'has-error' : '' }}">
{!! Form::label('message',Lang::get('lang.message')) !!}
{!! $errors->first('message', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('message',null,['class' => 'form-control']) !!}
</div>
</div>
</div>
<script>
$(function () {
//Add text editor
$("textarea").wysihtml5();
});
</script>
@stop

View File

@@ -0,0 +1,56 @@
@extends('themes.default1.agent.layout.agent')
@section('Tools')
class="active"
@stop
@section('tools-bar')
active
@stop
@section('tools')
class="active"
@stop
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($canned, ['url' => 'canned/update/'.$canned->id,'method' => 'PATCH'] )!!}
<!-- <section class="content"> -->
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">Edit</h3>{!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<div class="box-body">
<div class="row">
<!-- username -->
<div class="col-xs-6 form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title',Lang::get('lang.title')) !!}
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('title',null,['class' => 'form-control']) !!}
</div>
<!-- firstname -->
<div class="col-xs-12 form-group {{ $errors->has('message') ? 'has-error' : '' }}">
{!! Form::label('message',Lang::get('lang.message')) !!}
{!! $errors->first('message', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('message',null,['class' => 'form-control']) !!}
</div>
</div>
<script>
$(function () {
//Add text editor
$("textarea").wysihtml5();
});
</script>
@stop

View File

@@ -0,0 +1,104 @@
@extends('themes.default1.agent.layout.agent')
@section('Tools')
class="active"
@stop
@section('tools-bar')
active
@stop
@section('tools')
class="active"
@stop
<!-- content -->
@section('content')
<div class="box box-primary">
<div class="box-header with-border">
<h2 class="box-title">Canned Response</h2><a href="{{route('canned.create')}}" class="btn btn-primary pull-right">Create Canned Response</a></div>
<div class="box-body table-responsive">
<?php
$Canneds = App\Model\helpdesk\Agent_panel\Canned::where('user_id', '=', Auth::user()->id)->paginate(20);
?>
<!-- check whether success or not -->
{{-- Success message --}}
@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>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- Agent table -->
<table class="table table-bordered table-hover" id="example1" >
<tr>
<th width="100px">{{Lang::get('lang.name')}}</th>
<th width="100px">{{Lang::get('lang.action')}}</th>
</tr>
@foreach($Canneds as $Canned)
<tr>
<td>{{$Canned->title }}</td>
<td>
{!! Form::open(['route'=>['canned.destroy', $Canned->id],'method'=>'DELETE']) !!}
<a data-toggle="modal" data-target="#view{!! $Canned->id !!}" href="#" class="btn btn-info btn-xs btn-flat">View</a>
<a href="{!! URL::route('canned.edit',$Canned->id) !!}" class="btn btn-primary btn-xs btn-flat">Edit</a>
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
</td>
</tr>
<!-- Surrender Modal -->
<div class="modal fade" id="view{!! $Canned->id !!}">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Surrender</h4>
</div>
<div class="modal-body">
<p><pre>{!! $Canned->message !!}</pre></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis6">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
@endforeach
</table>
</div>
</div>
<script>
$(function () {
$("#example1").DataTable();
$('#example2').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": true
});
});
</script>
@stop
<!-- /content -->

View File

@@ -0,0 +1,30 @@
@extends('themes.default1.agent.layout.agent')
@section('Tools')
class="active"
@stop
@section('tools-bar')
active
@stop
@section('tools')
class="active"
@stop
<!-- content -->
@section('content')
<!-- <section class="content"> -->
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">hi</h3>
</div>
<div class="box-body">
<pre>hello</pre>
</div>
@stop
<!-- /content -->

View File

@@ -0,0 +1,210 @@
@extends('themes.default1.agent.layout.agent')
@section('Dashboard')
class="active"
@stop
@section('dashboard-bar')
active
@stop
@section('dashboard')
class="active"
@stop
@section('content')
<div class="box box-info">
<?php
// $tickets = App\Model\Ticket\Tickets::where('created_at','>=',date('Y-m-d'))->get();
// echo count($tickets);
?>
<div class="box-header with-border">
<h3 class="box-title">Line Chart</h3>
<div class="box-tools pull-right">
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
<button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div>
</div>
<div class="box-body">
<div class="chart" >
<div id="legendDiv"></div>
<canvas class="chart-data" id="tickets-graph" width="1000" height="400"></canvas>
</div>
</div><!-- /.box-body -->
</div><!-- /.box -->
<hr/>
<div class="box">
<div class="box-header">
<h1>Statistics</h1>
</div>
<div class="box-body">
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th>Department</th>
<th>Opened</th>
<th>Resolved</th>
<th>Closed</th>
<th>Deleted</th>
</tr>
<?php $departments = App\Model\helpdesk\Agent\Department::all(); ?>
@foreach($departments as $department)
<?php
$open = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id)->where('status','=',1)->count();
$resolve = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id)->where('status','=',2)->count();
$close = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id)->where('status','=',3)->count();
$delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id)->where('status','=',5)->count();
?>
<tr>
<td>{!! $department->name !!}</td>
<td>{!! $open !!}</td>
<td>{!! $resolve !!}</td>
<td>{!! $close !!}</td>
<td>{!! $delete !!}</td>
</tr>
@endforeach
</table>
</div>
</div>
<script src="{{asset("lb-faveo/plugins/chartjs/Chart.min.js")}}" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$.getJSON("agen", function (result) {
var labels = [],data=[],data2=[];
for (var i = 0; i < result.length; i++) {
$var12 = result[i].month;
if($var12 == 1){
$var13 = "January";
}
if($var12 == 2){
$var13 = "Febuary";
}
if($var12 == 3){
$var13 = "March";
}
if($var12 == 4){
$var13 = "April";
}
if($var12 == 5){
$var13 = "May";
}
if($var12 == 6){
$var13 = "June";
}
if($var12 == 7){
$var13 = "July";
}
if($var12 == 8){
$var13 = "August";
}
if($var12 == 9){
$var13 = "September";
}
if($var12 == 10){
$var13 = "October";
}
if($var12 == 11){
$var13 = "November";
}
if($var12 == 12){
$var13 = "December";
}
labels.push($var13);
data.push(result[i].tickets);
// data2.push(result[i].monthNum);
}
var buyerData = {
labels : labels,
datasets : [
{
label : "Tickets" ,
fillColor : "rgba(240, 127, 110, 0.3)",
strokeColor : "#f56954",
pointColor : "#A62121",
pointStrokeColor : "#741F1F",
data : data
}
//,
// {
// label : "Closed Tickets",
// fillColor : "rgba(151,187,205,0.2)",
// strokeColor : "rgba(151,187,205,1)",
// pointColor : "rgba(151,187,205,1)",
// pointStrokeColor : "#fff",
// pointHighlightFill : "#fff",
// pointHighlightStroke : "rgba(151,187,205,1)",
// data : data2
// }
]
};
var myLineChart = new Chart(document.getElementById("tickets-graph").getContext("2d")).Line(buyerData, {
showScale: true,
//Boolean - Whether grid lines are shown across the chart
scaleShowGridLines: false,
//String - Colour of the grid lines
scaleGridLineColor: "rgba(0,0,0,.05)",
//Number - Width of the grid lines
scaleGridLineWidth: 1,
//Boolean - Whether to show horizontal lines (except X axis)
scaleShowHorizontalLines: true,
//Boolean - Whether to show vertical lines (except Y axis)
scaleShowVerticalLines: true,
//Boolean - Whether the line is curved between points
bezierCurve: false,
//Number - Tension of the bezier curve between points
bezierCurveTension: 0.3,
//Boolean - Whether to show a dot for each point
pointDot: true,
//Number - Radius of each point dot in pixels
pointDotRadius: 4,
//Number - Pixel width of point dot stroke
pointDotStrokeWidth: 1,
//Number - amount extra to add to the radius to cater for hit detection outside the drawn point
pointHitDetectionRadius: 20,
//Boolean - Whether to show a stroke for datasets
datasetStroke: true,
//Number - Pixel width of dataset stroke
datasetStrokeWidth: 1,
//Boolean - Whether to fill the dataset with a color
datasetFill: true,
//String - A legend template
//Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
maintainAspectRatio: false,
//Boolean - whether to make the chart responsive to window resizing
responsive: true,
legendTemplate : '<ul style="list-style-type: square;">'
+'<% for (var i=0; i<datasets.length; i++) { %>'
+'<li style="color: <%=datasets[i].pointColor%>;">'
+'<span style=\"background-color:<%=datasets[i].pointColor%>\"></span>'
+'<% if (datasets[i].label) { %><%= datasets[i].label %><% } %>'
+'</li>'
+'<% } %>'
+'</ul>'
});
document.getElementById("legendDiv").innerHTML = myLineChart.generateLegend();
});
});
</script>
@stop

View File

@@ -0,0 +1,233 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('inbox')
class="active"
@stop
@section('content')
<?php
$dept = App\Model\helpdesk\Agent\Department::where('name','=',$id)->first();
if(Auth::user()->role == 'agent') {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status','=','2')->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
} else {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status','=','2')->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
}
?>
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Inbox </h3> <small>{!! $tickets->total() !!} tickets</small>
</div><!-- /.box-header -->
@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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<h3 class="pull-right" style="margin-top:0;margin-bottom:0;"> {!! $tickets->count().'-'.$tickets->total(); !!}</h3>
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
@foreach ($tickets as $ticket)
<?php
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if($title)
if($title == null){
} else {
?>
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php } ?> >
<td ><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null)
{
$assigned = "Unassigned";
}
else
{
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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_desc}}</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>
</tr>
<?php } ?>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/inbox'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('open #refresh');
$("#show").show();
});
});
// check box get data
// jQuery(function($) {
// $("form input[id='check_all']").click(function() { // triggred check
// var inputs = $("form input[type='checkbox']"); // get the checkbox
// for(var i = 0; i < inputs.length; i++) { // count input tag in the form
// var type = inputs[i].getAttribute("type"); // get the type attribute
// if(type == "checkbox") {
// if(this.checked) {
// inputs[i].checked = true; // checked
// } else {
// inputs[i].checked = false; // unchecked
// }
// }
// }
// });
// $("form input[id='submit']").click(function() { // triggred submit
// var count_checked = $("[name='data[]']:checked").length; // count the checked
// if(count_checked == 0) {
// alert("Please select a product(s) to delete.");
// return false;
// }
// if(count_checked == 1) {
// return confirm("Are you sure you want to delete these product?");
// } else {
// return confirm("Are you sure you want to delete these products?");
// }
// });
// }); // jquery end
</script>
@stop

View File

@@ -0,0 +1,233 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('inbox')
class="active"
@stop
@section('content')
<?php
$dept = App\Model\helpdesk\Agent\Department::where('name','=',$id)->first();
if(Auth::user()->role == 'agent') {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status','=','1')->where('assigned_to','>', 0)->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
} else {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status','=','1')->where('assigned_to','>', 0)->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
}
?>
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Inbox </h3> <small>{!! $tickets->total() !!} tickets</small>
</div><!-- /.box-header -->
@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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<h3 class="pull-right" style="margin-top:0;margin-bottom:0;"> {!! $tickets->count().'-'.$tickets->total(); !!}</h3>
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
@foreach ($tickets as $ticket)
<?php
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if($title)
if($title == null){
} else {
?>
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php } ?> >
<td ><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null)
{
$assigned = "Unassigned";
}
else
{
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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_desc}}</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>
</tr>
<?php } ?>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/inbox'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('open #refresh');
$("#show").show();
});
});
// check box get data
// jQuery(function($) {
// $("form input[id='check_all']").click(function() { // triggred check
// var inputs = $("form input[type='checkbox']"); // get the checkbox
// for(var i = 0; i < inputs.length; i++) { // count input tag in the form
// var type = inputs[i].getAttribute("type"); // get the type attribute
// if(type == "checkbox") {
// if(this.checked) {
// inputs[i].checked = true; // checked
// } else {
// inputs[i].checked = false; // unchecked
// }
// }
// }
// });
// $("form input[id='submit']").click(function() { // triggred submit
// var count_checked = $("[name='data[]']:checked").length; // count the checked
// if(count_checked == 0) {
// alert("Please select a product(s) to delete.");
// return false;
// }
// if(count_checked == 1) {
// return confirm("Are you sure you want to delete these product?");
// } else {
// return confirm("Are you sure you want to delete these products?");
// }
// });
// }); // jquery end
</script>
@stop

View File

@@ -0,0 +1,232 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('inbox')
class="active"
@stop
@section('content')
<?php
$dept = App\Model\helpdesk\Agent\Department::where('name','=',$id)->first();
if(Auth::user()->role == 'agent') {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status','=','1')->where('assigned_to','=', 0)->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
} else {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status','=','1')->where('assigned_to','=', 0)->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
}
?>
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Inbox </h3> <small>{!! $tickets->total() !!} tickets</small>
</div><!-- /.box-header -->
@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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<h3 class="pull-right" style="margin-top:0;margin-bottom:0;"> {!! $tickets->count().'-'.$tickets->total(); !!}</h3>
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
@foreach ($tickets as $ticket)
<?php
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if($title)
if($title == null){
} else {
?>
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php } ?> >
<td ><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null)
{
$assigned = "Unassigned";
}
else
{
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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_desc}}</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>
</tr>
<?php } ?>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/inbox'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('open #refresh');
$("#show").show();
});
});
// check box get data
// jQuery(function($) {
// $("form input[id='check_all']").click(function() { // triggred check
// var inputs = $("form input[type='checkbox']"); // get the checkbox
// for(var i = 0; i < inputs.length; i++) { // count input tag in the form
// var type = inputs[i].getAttribute("type"); // get the type attribute
// if(type == "checkbox") {
// if(this.checked) {
// inputs[i].checked = true; // checked
// } else {
// inputs[i].checked = false; // unchecked
// }
// }
// }
// });
// $("form input[id='submit']").click(function() { // triggred submit
// var count_checked = $("[name='data[]']:checked").length; // count the checked
// if(count_checked == 0) {
// alert("Please select a product(s) to delete.");
// return false;
// }
// if(count_checked == 1) {
// return confirm("Are you sure you want to delete these product?");
// } else {
// return confirm("Are you sure you want to delete these products?");
// }
// });
// }); // jquery end
</script>
@stop

View File

@@ -0,0 +1,93 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
@stop
@section('user-bar')
active
@stop
@section('organizations')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(['action'=>'Agent\helpdesk\OrganizationController@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">
<!-- name : text : Required -->
<div class="row">
<div class="col-xs-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
<!-- phone : Text : -->
<div class="col-xs-4 form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
{!! Form::label('phone',Lang::get('lang.phone')) !!}
{!! $errors->first('phone', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone',null,['class' => 'form-control']) !!}
</div>
<!-- website : Text : -->
<div class="col-xs-4 form-group {{ $errors->has('website') ? 'has-error' : '' }}">
{!! Form::label('website',Lang::get('lang.website')) !!}
{!! $errors->first('website', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('website',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Internal Notes : Textarea -->
<div class="row">
<div class="col-xs-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">
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control']) !!}
</div>
</div>
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->
@stop
@section('FooterInclude')
@stop
<!-- /content -->

View File

@@ -0,0 +1,86 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
@stop
@section('user-bar')
active
@stop
@section('organizations')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($orgs,['url'=>'organizations/'.$orgs->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">
<!-- name : text : Required -->
<div class="row">
<div class="col-xs-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
<!-- phone : Text : -->
<div class="col-xs-4 form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
{!! Form::label('phone',Lang::get('lang.phone')) !!}
{!! $errors->first('phone', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone',null,['class' => 'form-control']) !!}
</div>
<!--website : Text : -->
<div class="col-xs-4 form-group {{ $errors->has('website') ? 'has-error' : '' }}">
{!! Form::label('website',Lang::get('lang.website')) !!}
{!! $errors->first('website', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('website',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Internal Notes : Textarea -->
<div class="row">
<div class="col-xs-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">
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control']) !!}
</div>
</div>
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->
@stop
@section('FooterInclude')
@stop
<!-- /content -->

View File

@@ -0,0 +1,91 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
@stop
@section('user-bar')
active
@stop
@section('organizations')
class="active"
@stop
<!-- content -->
@section('content')
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.organization')}}</h2><a href="{{route('organizations.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_organisations')}}</a></div>
<div class="box-body table-responsive no-padding">
<!-- 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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<?php
$orgs = App\Model\helpdesk\Agent_panel\Organization::orderBy('id', 'ASC')->paginate(20);
?>
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th width="100px">{{Lang::get('lang.name')}}</th>
<th width="100px">{{Lang::get('lang.phone')}}</th>
<th width="100px">{{Lang::get('lang.website')}}</th>
<th width="100px">{{Lang::get('lang.action')}}</th>
</tr>
@foreach($orgs as $org)
<tr>
<td><a href="{{route('organizations.show', $org->id)}}"> {{$org->name }}</a></td>
<td>{{ $org->phone }}</td>
<td>{{ $org->website }}</td>
<td>
{!! Form::open(['route'=>['organizations.destroy', $org->id],'method'=>'DELETE']) !!}
<div class="">
<a href="{{route('organizations.edit', $org->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
</div>
{!! Form::close() !!}
</td>
</tr>
@endforeach
</table>
<div class="pull-right">
<?php echo $orgs->setPath(url('/organizations'))->render();?>&nbsp;
</div>
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->
@stop
@section('FooterInclude')
@stop
<!-- /content -->

View File

@@ -0,0 +1,220 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
@stop
@section('user-bar')
active
@stop
@section('organizations')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
{{-- <div><h1 style="margin-top:-10px;margin-bottom:-10px;">Organization Profile</h1></div>
<a href="{{route('organizations.edit', $orgs->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
--}}
<div class="box-header" style="margin-top:-15px;margin-bottom:-15px;"><h3 class="box-title">Organization Profile</h3><a href="{{route('organizations.edit', $orgs->id)}}" class="btn btn-info btn-sm btn-flat pull-right"><i class="fa fa-edit" style="color:black;"> </i> Edit</a></div>
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="row">
<?php $org_hd = App\Model\helpdesk\Agent_panel\Organization::where('id','=',$orgs->id)->first(); ?>
<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>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
</div>
<div class="col-md-4">
<div class="box box-widget widget-user">
<!-- Add the bg color to the header using any of the bg-* classes -->
<div class="widget-user-header bg-aqua">
<h3 class="widget-user-username">{{$orgs->name}}</h3>
<h5 class="widget-user-desc">{!! $orgs->website !!}</h5>
</div>
<div class="box-footer no-padding">
<ul class="nav nav-stacked">
@if($orgs->phone)<li><a><b>Phone</b> <span class="pull-right"> {{$orgs->phone}}</span></a></li>@endif
@if($orgs->address)<li><a><b>Address</b> <br/> <center>{!! $orgs->address !!}</center></a></li>@endif
@if($orgs->internal_notes)<li><a><b>Internal Notes</b> <br/> <center>{!! $orgs->internal_notes !!}</center></a></li>@endif
</ul>
<button data-toggle="modal" data-target="#assign_head" id="button_select" class="btn btn-primary btn-flat btn-block">Select Department Manager</button>
</div>
</div>
<div id="refresh">
@if($org_hd->head > 0)
<?php $users = App\User::where('id','=',$org_hd->head)->first(); ?>
<div class="box box-widget widget-user-2">
<!-- Add the bg color to the header using any of the bg-* classes -->
<div class="widget-user-header bg-yellow">
<div class="widget-user-image">
<img class="img-circle" src="{{ Gravatar::src( $users->email) }}" alt="User Avatar">
</div><!-- /.widget-user-image -->
<h3 class="widget-user-username">{!! $users->user_name !!}</h3>
<h5 class="widget-user-desc">Organization's head</h5>
</div>
<div class="box-footer no-padding">
<ul class="nav nav-stacked">
<li><a href="#">E-mail <span class="pull-right">{!! $users->email !!}</span></a></li>
<li><a href="#">Phone <span class="pull-right">{!! $users->phone_number !!}</span></a></li>
</ul>
</div>
</div>
@endif
</div>
</div>
<div class="col-md-8">
<div class="box box-primary">
<?php
$user_orgs = App\Model\helpdesk\Agent_panel\User_org::where('org_id','=',$orgs->id)->paginate(5);
?>
<div class="box-header">
<h3 class="box-title">Users of {{$orgs->name}}</h3>
<div class="pull-right" style="margin-top:-25px;margin-bottom:-25px;">
<?php echo $user_orgs->setPath('../organizations/'.$orgs->id)->render(); ?>
</div>
</div>
<hr style="margin-top:0px;margin:bottom:0px;">
<div class="box-body">
<table class="table table-hover table-bordered">
<tbody><tr>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
<th>Status</th>
<th>Ban</th>
</tr>
@foreach($user_orgs as $user_org)
<?php
$user_detail = App\User::where('id','=',$user_org->user_id)->first();
?>
<tr>
<td>{!! $user_detail->user_name !!}</td>
<td>{!! $user_detail->email !!}</td>
<td>{!! $user_detail->phone_number !!}</td>
@if($user_detail->active == 1)
<td><span class="label label-success">Active</span></td>
@elseif($user_detail->active == 0)
<td><span class="label label-warning">Inactive</span></td>
@endif
<td>{!! $user_detail->ban !!}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div class="box-footer">
</div>
</div>
</div>
</div>
<!-- Organisation Assign Modal -->
<div class="modal fade" id="assign_head">
<div class="modal-dialog">
<div class="modal-content">
{!! Form::model($orgs->id, ['id'=>'org_head','method' => 'PATCH'] )!!}
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" id="dismiss" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Assign</h4>
</div>
<div id="assign_alert" class="alert alert-success alert-dismissable" style="display:none;">
<button id="assign_dismiss" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4><i class="icon fa fa-check"></i>Alert!</h4>
<div id="message-success1"></div>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-6" id="assign_loader" style="display:none;">
<img src="{{asset("lb-faveo/dist/img/gifloader.gif")}}"><br/><br/><br/>
</div>
</div>
<div id="assign_body">
<p>Please Select an Organization</p>
<select id="user" class="form-control" name="user">
<?php
$org_heads = App\Model\helpdesk\Agent_panel\User_org::where('org_id','=',$orgs->id)->get();
?>
<optgroup label="Select Organizations">
@foreach($org_heads as $org_head)
<?php $user_org_heads = App\User::where('id','=',$org_head->user_id)->first(); ?>
<option value="{{$user_org_heads->id}}">{!! $user_org_heads->user_name !!}</option>
@endforeach
</optgroup>
</select>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis4">Close</button>
<button type="submit" class="btn btn-success pull-right" id="submt2">Assign</button>
</div>
{!! Form::close()!!}
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script type="text/javascript">
// Assign a ticket
jQuery(document).ready(function($) {
// create org
$('#org_head').on('submit', function() {
$.ajax({
type: "POST",
url: "../head-org/{!! $orgs->id !!}",
dataType: "html",
data: $(this).serialize(),
beforeSend: function() {
$("#assign_body").hide();
$("#assign_loader").show();
},
success: function(response) {
$("#assign_loader").hide();
$("#assign_body").show();
if (response == 1) {
message = "Organization head added Successfully."
$("#dismiss").trigger("click");
$("#refresh").load("../organizations/{!! $orgs->id !!} #refresh");
// $("#refresh2").load("../thread/1 #refresh2");
// $("#show").show();
$("#alert-success").show();
$('#get-success').html(message);
setInterval(function(){$("#alert-success").hide(); },4000);
}
}
})
return false;
});
});
</script>
@stop
<!-- /content -->

View File

@@ -0,0 +1,211 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('answered')
class="active"
@stop
@section('content')
<?php
if(Auth::user()->role == 'agent')
{
$dept = App\Model\helpdesk\Agent\Department::where('name','=',Auth::user()->primary_dpt)->first();
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 1)->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
} else {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 1)->orderBy('id', 'DESC')->paginate(20);
}
?>
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Answered </h3> <small id="title_refresh">{!! $tickets->total() !!} tickets</small>
<div class="box-tools pull-right">
<div class="has-feedback">
</div>
</div>
</div><!-- /.box-header -->
@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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<h3 class="pull-right" style="margin-top:0;margin-bottom:0;"> <div id="count_refresh">{!! $tickets->count().'-'.$tickets->total(); !!}</div></h3>
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
@foreach ($tickets as $ticket)
<?php
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if($title)
if($title == null){
} else {
?>
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php } ?> >
<td ><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null)
{
$assigned = "Unassigned";
}
else
{
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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_desc}}</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>
</tr>
<?php } ?>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/answered'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('answered #refresh');
$('#title_refresh').load('answered #title_refresh');
$('#count_refresh').load('answered #count_refresh');
$("#show").show();
});
});
</script>
@stop

View File

@@ -0,0 +1,235 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('assigned')
class="active"
@stop
@section('content')
<?php
if(Auth::user()->role == 'agent') {
$dept = App\Model\helpdesk\Agent\Department::where('name','=',Auth::user()->primary_dpt)->first();
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('assigned_to', '>', 0)->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
} else {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('assigned_to', '>', 0)->orderBy('id', 'DESC')->paginate(20);
}
?>
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Assigned </h3> <small id="title_refresh"> {!! $tickets->total() !!} tickets</small>
</div><!-- /.box-header -->
@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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<h3 class="pull-right" style="margin-top:0;margin-bottom:0;"> <div id="count_refresh">{!! $tickets->count().'-'.$tickets->total(); !!}</div></h3>
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
@foreach ($tickets as $ticket)
<?php
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if($title)
if($title == null){
} else {
?>
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php } ?> >
<td ><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null)
{
$assigned = "Unassigned";
}
else
{
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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_desc}}</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>
</tr>
<?php } ?>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/assigned'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('assigned #refresh');
$('#title_refresh').load('assigned #title_refresh');
$('#count_refresh').load('assigned #count_refresh');
$("#show").show();
});
});
// check box get data
// jQuery(function($) {
// $("form input[id='check_all']").click(function() { // triggred check
// var inputs = $("form input[type='checkbox']"); // get the checkbox
// for(var i = 0; i < inputs.length; i++) { // count input tag in the form
// var type = inputs[i].getAttribute("type"); // get the type attribute
// if(type == "checkbox") {
// if(this.checked) {
// inputs[i].checked = true; // checked
// } else {
// inputs[i].checked = false; // unchecked
// }
// }
// }
// });
// $("form input[id='submit']").click(function() { // triggred submit
// var count_checked = $("[name='data[]']:checked").length; // count the checked
// if(count_checked == 0) {
// alert("Please select a product(s) to delete.");
// return false;
// }
// if(count_checked == 1) {
// return confirm("Are you sure you want to delete these product?");
// } else {
// return confirm("Are you sure you want to delete these products?");
// }
// });
// }); // jquery end
</script>
@stop

View File

@@ -0,0 +1,192 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('closed')
class="active"
@stop
@section('content')
<?php
if(Auth::user()->role == 'agent') {
$dept = App\Model\helpdesk\Agent\Department::where('name','=',Auth::user()->primary_dpt)->first();
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '>', 1)->where('dept_id','=',$dept->id)->where('status', '<', 4)->orderBy('id', 'DESC')->paginate(20);
} else {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '>', 1)->where('status', '<', 4)->orderBy('id', 'DESC')->paginate(20);
}
?>
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Closed </h3> <small id="title_refresh">{!! $tickets->total() !!} tickets</small>
</div><!-- /.box-header -->
@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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<h3 class="pull-right" style="margin-top:0;margin-bottom:0;"><div id="count_refresh"> {!! $tickets->count().'-'.$tickets->total(); !!}</div></h3>
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-blue btn-sm" name="submit" value="Open">
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th></th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
@foreach ($tickets as $ticket )
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
?> >
<td><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null)
{
$assigned = "Unassigned";
}
else
{
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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_desc}}</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>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/closed'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('closed #refresh');
$('#title_refresh').load('closed #title_refresh');
$('#count_refresh').load('closed #count_refresh');
$("#show").show();
});
});
</script>
@stop

View File

@@ -0,0 +1,193 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('inbox')
class="active"
@stop
@section('content')
<?php
if(Auth::user()->role == 'agent') {
$dept = App\Model\helpdesk\Agent\Department::where('name','=',Auth::user()->primary_dpt)->first();
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
} else {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->orderBy('id', 'DESC')->paginate(20);
}
?>
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Inbox </h3> <small id="title_refresh">{!! $tickets->total() !!} tickets</small>
</div><!-- /.box-header -->
@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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<h3 class="pull-right" style="margin-top:0;margin-bottom:0;"> <div id="count_refresh">{!! $tickets->count().'-'.$tickets->total(); !!}</div> </h3>
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
@foreach ($tickets as $ticket)
<?php
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if($title)
if($title == null){
} else {
?>
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php } ?> >
<td ><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title) {
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null) {
$assigned = "Unassigned";
} else {
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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_desc}}</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>
</tr>
<?php } ?>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/inbox'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('inbox #refresh');
$('#title_refresh').load('inbox #title_refresh');
$('#count_refresh').load('inbox #count_refresh');
$("#show").show();
});
});
</script>
@stop

View File

@@ -0,0 +1,190 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('myticket')
class="active"
@stop
@section('content')
<?php
if(Auth::user()->role == 'agent') {
$dept = App\Model\helpdesk\Agent\Department::where('name','=',Auth::user()->primary_dpt)->first();
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('assigned_to', '=', Auth::user()->id)->orderBy('id', 'ASC')->paginate(20);
} else {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('assigned_to', '=', Auth::user()->id)->orderBy('id', 'ASC')->paginate(20);
}
?>
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">My Ticket </h3> <small id="title_refresh">{!! $tickets->total() !!} tickets</small>
</div><!-- /.box-header -->
@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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<h3 class="pull-right" style="margin-top:0;margin-bottom:0;"><div id="count_refresh"> {!! $tickets->count().'-'.$tickets->total(); !!}</div></h3>
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th></th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
@foreach ($tickets as $ticket )
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
?> >
<td><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->where('is_internal', '=', 0)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null)
{
$assigned = "Unassigned";
}
else
{
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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_desc}}</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>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/myticket'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('myticket #refresh');
$('#title_refresh').load('myticket #title_refresh');
$('#count_refresh').load('myticket #count_refresh');
$("#show").show();
});
});
</script>
@stop

View File

@@ -0,0 +1,216 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('newticket')
class="active"
@stop
@section('content')
<!-- Main content -->
{!! Form::open(['route'=>'post.newticket','method'=>'post']) !!}
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Create Ticket</h3>
<!-- <div class="box-tools pull-right">
<div class="has-feedback">
<input type="text" class="form-control input-sm" placeholder="Search Mail"/>
<span class="glyphicon glyphicon-search form-control-feedback"></span>
</div>
</div> --><!-- /.box-tools -->
</div><!-- /.box-header -->
<div class="box-body">
<!-- user detail -->
@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>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="form-group">
<h4><b>User Details:<b></h4>
{{-- <div class="row"> --}}
{{-- <div class="col-md-6"> --}}
{{-- <div class="has-feedback"> --}}
{{-- <input type="text" class="form-control input-ls" placeholder="Search Users"/> --}}
{{-- <span class="glyphicon glyphicon-search form-control-feedback"></span> --}}
{{-- </div> --}}
{{-- <input type="text" name="email" id="" class="form-control" placeholder="Search User"> --}}
{{-- </div> --}}
{{-- </div> --}}
<br/>
<div class="row">
<div class="col-md-4">
<!-- email -->
<div class="form-group">
<label>Email:</label>
<input type="text" name="email" id="" class="form-control">
{!! $errors->first('email', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
<div class="col-md-4">
<!-- full name -->
<div class="form-group">
<label>Full Name:</label>
<input type="text" name="fullname" id="" class="form-control">
{!! $errors->first('fullname', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
<div class="col-md-4">
<!-- phone -->
<div class="form-group">
<label>Phone:</label>
<input type="number" name="phone" id="" class="form-control">
{!! $errors->first('phone', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
<!-- <div class="form-group">
<div class="col-md-2">
<label>Ticket Notice:</label>
</div>
<div class="col-md-6">
<input type="checkbox" name="notice" id=""> Send alert to User
</div>
</div> -->
</div>
</div>
<!-- ticket options -->
<div class="form-group">
<h4><b>Ticket Option<b></h4>
<div class="row">
<div class="col-md-3">
<div class="form-group">
<label>Help Topic:</label>
<!-- helptopic -->
<select class="form-control" name="helptopic">
<!-- <option>--select--</option> -->
<?php $helptopic = App\Model\helpdesk\Manage\Help_topic::all();?>
@foreach($helptopic as $topic)
<option value="{!! $topic->id !!}">{!! $topic->topic !!}</option>
@endforeach
</select>
{!! $errors->first('helptopic', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
<div class="col-md-3">
<!-- sla plan -->
<div class="form-group">
<label>SLA Plan:</label>
<select class="form-control" name="sla">
<!-- <option>--select--</option> -->
<?php $sla_plan = App\Model\helpdesk\Manage\Sla_plan::all();?>
@foreach($sla_plan as $sla)
<option value="{!! $sla->id !!}">{!! $sla->grace_period !!}</option>
@endforeach
</select>
{!! $errors->first('sla', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
<div class="col-md-3">
<!-- due date -->
<div class="form-group">
<label>Due Date:</label>
<input type="text" class="form-control" name="duedate" id="datemask">
</div>
</div>
<div class="col-md-3">
<!-- assign to -->
<div class="form-group">
<label>Assign To:</label>
<select class="form-control" name="assignto">
<!-- <option>--select--</option> -->
<?php $agents = App\User::where('role','!=','user')->get();?>
<option value="">--- select ---</option>
@foreach($agents as $agent)
<option value="{!! $agent->id !!}">
{!! $agent->first_name !!} {!! $agent->last_name !!}
</option>
@endforeach
</select>
</div>
</div>
</div>
</div>
<!-- ticket details -->
<div class="form-group">
<h4><b>Ticket Detail<b></h4>
<!-- subject -->
<div class="form-group">
<div class="row">
<div class="col-md-1">
<label>Subject:</label>
</div>
<div class="col-md-4">
<input type="text" name="subject" class="form-control">
{!! $errors->first('subject', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
</div>
<div class="form-group">
<!-- details -->
<div class="row">
<div class="col-md-1">
<label>Detail:</label>
</div>
<div class="col-md-9">
<textarea class="form-control" id="body" name="body" style="width:100%; height:100px;"></textarea>
{!! $errors->first('body', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
</div>
<div class="form-group">
<!-- priority -->
<div class="row">
<div class="col-md-1">
<label>Priority:</label>
</div>
<div class="col-md-3">
<select class="form-control" name="priority">
<!-- <option>--select--</option> -->
<?php $Priority = App\Model\helpdesk\Ticket\Ticket_Priority::all();?>
@foreach($Priority as $priority)
<option value="{{$priority->priority_id}}">{!! $priority->priority_desc !!}</option>
@endforeach
</select>
{!! $errors->first('priority', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
</div>
</div>
<div class="box-footer">
<div class="form-group">
<div class="row">
<div class="col-md-1">
</div>
<div class="col-md-3">
<input type="submit" value="Create Ticket" class="btn btn-primary">
</div>
</div>
</div>
</div>
</div><!-- /. box -->
{!! Form::close() !!}
<script type="text/javascript">
$(function() {
$('#datemask').datepicker({changeMonth: true, changeYear: true}).mask('99/99/9999');
});
</script>
@stop

View File

@@ -0,0 +1,219 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('open')
class="active"
@stop
@section('content')
<?php
if(Auth::user()->role == 'agent') {
$dept = App\Model\helpdesk\Agent\Department::where('name','=',Auth::user()->primary_dpt)->first();
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 0)->where('assigned_to', '=', 0)->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
} else {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 0)->where('assigned_to', '=', 0)->orderBy('id', 'DESC')->paginate(20);
}
?>
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Open </h3> <small id="title_refresh">{!! $tickets->total() !!} tickets</small>
<div class="box-tools pull-right">
<div class="has-feedback">
</div>
</div>
</div><!-- /.box-header -->
@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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<h3 class="pull-right" style="margin-top:0;margin-bottom:0;"> <div id="count_refresh">{!! $tickets->count().'-'.$tickets->total(); !!}</div></h3>
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
@foreach ($tickets as $ticket)
<?php
// // title
$ticket_reply = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->where('is_internal', '=', 0)->max('id');
$ticket_reply1 = App\Model\helpdesk\Ticket\Ticket_Thread::where('id','=',$ticket_reply)->first();
$last_replier = App\User::where('id','=', $ticket_reply1->user_id)->first();
if($last_replier->role == 'agent') {
} else {
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if($title == null){
} else {
?>
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php } ?> >
<td ><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null)
{
$assigned = "Unassigned";
}
else
{
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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_desc}}</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>
</tr>
<?php } } ?>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/open'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('open #refresh');
$('#title_refresh').load('open #title_refresh');
$('#count_refresh').load('open #count_refresh');
$("#show").show();
});
});
</script>
@stop

View File

@@ -0,0 +1,199 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('overdue')
class="active"
@stop
@section('content')
<?php
if(Auth::user()->role == 'agent') {
$dept = App\Model\helpdesk\Agent\Department::where('name','=',Auth::user()->primary_dpt)->first();
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
} else {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->orderBy('id', 'DESC')->paginate(20);
}
?>
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Overdue </h3> <small>{!! $tickets->total() !!} tickets</small>
</div><!-- /.box-header -->
@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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<h3 class="pull-right" style="margin-top:0;margin-bottom:0;"> {!! $tickets->count().'-'.$tickets->total(); !!}</h3>
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th></th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
@foreach ($tickets as $ticket )
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
$sla = $ticket->sla;
$SlaPlan = App\Model\helpdesk\Manage\Sla_plan::where('id', '=', $sla)->first();
$time = $ticket->created_at;
$time = date_create($time);
date_add($time, date_interval_create_from_date_string($SlaPlan->grace_period));
echo date_format($time, 'd/m/Y H:i:s');
?> >
<td><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null)
{
$assigned = "Unassigned";
}
else
{
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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_desc}}</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>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/overdue'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('open #refresh');
$("#show").show();
});
});
</script>
@stop

View File

@@ -0,0 +1,211 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<!-- <link href="{{asset("downloads/bootstrap.min.css")}}" rel="stylesheet" type="text/css" /> -->
<link href="{{asset("lb-faveo/dist/css/AdminLTE.min.css")}}" rel="stylesheet" type="text/css" />
</head>
<body>
<h2>
<div class="logo"><b>Faveo</b>HELPDESK</div><hr>
</h2>
<h4>{{$thread->title}}</h4><br/>
<?php $ticket_source = App\Model\helpdesk\Ticket\Ticket_source::where('id','=',$tickets->source)->first();
$ticket_source = $ticket_source->value;
$user = App\User::where('id', '=', $tickets->user_id)->first(); ?>
<?php $response = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->get(); ?>
@foreach($response as $last)
<?php $ResponseDate = $last->created_at; ?>
@endforeach
<?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id', '=', $tickets->status)->first(); ?>
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first(); ?>
<?php $help_topic = App\Model\helpdesk\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?>
<?php $help_topic = App\Model\helpdesk\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?>
<?php $dept = App\Model\helpdesk\Agent\Department::where('id','=',$help_topic->department)->first(); ?>
<table class="table">
<tr><th></th><th></th></tr>
<tr><td><b>Status:</b></td> <td>{{$status->state}}</td></tr>
<tr><td><b>Priority:</b></td> <td>{{$priority->priority}}</td></tr>
<tr><td><b>Department:</b></td> <td>{{$dept->name}}</td></tr>
<tr><td><b>Email:</b></td> <td>{{$user->email}}</td></tr>
<tr><td><b>Phone:</b></td> <td>{{$user->mobile}}</td></tr>
<tr><td><b>Source:</b></td> <td>{{$ticket_source}}</td></tr>
<tr><td><b>Help Topic:</b></td> <td>{{$help_topic->topic}}</td></tr>
</table>
<?php $conversations = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->get(); ?>
@foreach($conversations as $conversation)
<br/><hr>
<span class="time-label">
<?php
$role = App\User::where('id','=',$conversation->user_id)->first();
?>
<?php if($conversation->is_internal) { ?>
<i class="fa fa-tag bg-purple" title="Posted by System"></i>
<?php }else{ if ($role->role == 'agent' || $role->role == 'admin') { ?>
<i class="fa fa-mail-reply-all bg-yellow" title="Posted by Support Team"></i>
<?php } elseif ($role->role == 'user') { ?>
<i class="fa fa-user bg-aqua" title="Posted by Customer"></i>
<?php } else { ?>
<i class="fa fa-mail-reply-all bg-purple" title="Posted by System"></i>
<?php } }
$attachment = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->first();
if($attachment == null ) {
$body = $conversation->body;
}
else {
// dd($attachment->file);
// print $attachment->file;
// header("Content-type: image/jpeg");
// echo "<img src='".base64_decode($attachment->file)."' style='width:128px;height:128px'/> ";
$body = $conversation->body;
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->orderBy('id', 'DESC')->get();
// $i = 0;
foreach($attachments as $attachment)
{
// $i++;
if($attachment->type == 'pdf')
{
// echo "hello";
}elseif($attachment->type == 'docx')
{
// echo "hello";
}
else
{
$image = @imagecreatefromstring($attachment->file);
ob_start();
imagejpeg($image, null, 80);
$data = ob_get_contents();
ob_end_clean();
$var = '<img width="20px" src="data:image/jpg;base64,' . base64_encode($data) . '" />';
// echo $var;
// echo $attachment->name;
// $body = explode($attachment->name, $body);
$body = str_replace($attachment->name, "data:image/jpg;base64," . base64_encode($data), $body);
$string = $body;
$start = "<head>";
$end = "</head>";
if(strpos($string,$start) == false || strpos($string,$start) == false)
{
}
else
{
$ini = strpos($string,$start);
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
$parsed = substr($string,$ini,$len);
$body2 = $parsed;
$body = str_replace($body2 ," " ,$body);
}
}
}
// echo $body;
// $body = explode($attachment->file, $body);
// $body = $body[0];
}
?>
<?php
$string = $body;
$start = "<head>";
$end = "</head>";
if(strpos($string,$start) == false || strpos($string,$start) == false)
{
}
else
{
$ini = strpos($string,$start);
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
$parsed = substr($string,$ini,$len);
$body2 = $parsed;
$body = str_replace($body2 ," " ,$body);
}
?>
<div class="timeline-item">
<span id="date" class="time" style="color:#fff;"><i class="fa fa-clock-o"> </i> {{date_format($conversation->created_at, 'd/m/Y H:i:s')}}</span>
<h3 class="timeline-header" style="background-color:<?php
if($conversation->is_internal)
{
$color = '#046380';
echo $color;
}
else
{
if ($role->role == 'agent' || $role->role == 'admin')
{
$color = '#FFD34E';
echo $color;
} elseif ($role->role == 'user')
{
$color = '#00A388';
echo $color;
} else
{
$color = '#046380';
echo $color;
}
}
?>;
">
<a href="#" style="color:#fff;"><?php if($role->role == "user") {echo $role->user_name; } else { echo $role->first_name . " " . $role->last_name; } ?> </a><strong>Date:</strong> {!! $thread->created_at !!}<br/></h3>
<div class="timeline-body" style="padding-left:30px;">
{!! $body !!}
</div>
<div class="timeline-footer" >
<?php
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->get();
$i = 0;
foreach($attachments as $attachment) {
if($attachment->poster == 'ATTACHMENT') {
$i++;
}
}
if($i>0)
{
echo "<hr style='height:1px;color:#2D3244;background-color:#2D3244;''><h4 class='box-title'><b>".$i." </b> Attachments</h4>";
}
?>
<ul class='mailbox-attachments clearfix'>
<?php
foreach($attachments as $attachment)
{
if($attachment->poster == 'ATTACHMENT')
{
if($attachment->type == 'jpg'||$attachment->type == 'JPG'||$attachment->type == 'jpeg'||$attachment->type == 'JPEG'||$attachment->type == 'png'||$attachment->type == 'PNG'||$attachment->type == 'gif'||$attachment->type == 'GIF')
{
$image = @imagecreatefromstring($attachment->file);
ob_start();
imagejpeg($image, null, 80);
$data = ob_get_contents();
ob_end_clean();
$var = '<a href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank"><img style="max-width:200px;max-height:150px;" src="data:image/jpg;base64,' . base64_encode($data) . '"/></a>';
echo '<li><span class="mailbox-attachment-icon has-img">'.$var.'</span></li>';
}
else
{
$var = '<a href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank">'.$attachment->name.'</a>';
echo '<li>'.$var.'</li>';
}
}
}
?>
</ul>
</div>
</div>
@endforeach
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,189 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('trash')
class="active"
@stop
@section('content')
<?php
if(Auth::user()->role == 'agent') {
$dept = App\Model\helpdesk\Agent\Department::where('name','=',Auth::user()->primary_dpt)->first();
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 5)->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
} else {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 5)->orderBy('id', 'DESC')->paginate(20);
}
?>
<!-- Main content -->
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title">Trash </h3> <small id="title_refresh">{!! $tickets->total() !!} tickets</small>
</div><!-- /.box-header -->
@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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<h3 class="pull-right" style="margin-top:0;margin-bottom:0;"> <div id="count_refresh">{!! $tickets->count().'-'.$tickets->total(); !!}</div></h3>
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-blue btn-sm" name="submit" value="Open">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
@foreach ($tickets as $ticket )
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
?> >
<td><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null)
{
$assigned = "Unassigned";
}
else
{
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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_desc}}</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>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/trash'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('trash #refresh');
$('#title_refresh').load('trash #title_refresh');
$('#count_refresh').load('trash #count_refresh');
$("#show").show();
});
});
</script>
@stop

View File

@@ -0,0 +1,196 @@
@extends('themes.default1.agent.layout.agent')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('unassigned')
class="active"
@stop
@section('content')
<?php
if(Auth::user()->role == 'agent') {
$dept = App\Model\helpdesk\Agent\Department::where('name','=',Auth::user()->primary_dpt)->first();
$tickets = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', 0)->where('dept_id','=',$dept->id)->where('status','1')->orderBy('id', 'DESC')->paginate(20);
} else {
$tickets = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', 0)->where('status','1')->orderBy('id', 'DESC')->paginate(20);
}
?>
<!-- Main content -->
<div class="box box-info">
<div class="box-header with-border">
<?php $counted = count(App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', 0)->get());?>
<h3 class="box-title">Unassigned </h3> <small id="title_refresh"> {!! $tickets->total() !!} tickets</small>
</div><!-- /.box-header -->
@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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<h3 class="pull-right" style="margin-top:0;margin-bottom:0;"> <div id="count_refresh">{!! $tickets->count().'-'.$tickets->total(); !!}</div></h3>
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
@foreach ($tickets as $ticket )
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
?> >
<td><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null)
{
$assigned = "Unassigned";
}
else
{
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a class="text-red" href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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_desc}}</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>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/unassigned'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('unassigned #refresh');
$('#title_refresh').load('unassigned #title_refresh');
$('#count_refresh').load('unassigned #count_refresh');
$("#show").show();
});
});
</script>
@stop

View File

@@ -0,0 +1,144 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
@stop
@section('user-bar')
active
@stop
@section('user')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@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>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">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">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>
<script>
$(function () {
$("textarea").wysihtml5();
});
</script>
@section('FooterInclude')
@stop
@stop
<!-- /content -->
@stop
@section('FooterInclude')
@stop
<!-- /content -->

View File

@@ -0,0 +1,149 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
@stop
@section('user-bar')
active
@stop
@section('user')
class="active"
@stop
<!-- /breadcrumbs -->
<!-- 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">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">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>
</div>
<script>
$(function () {
$("textarea").wysihtml5();
});
</script>
@section('FooterInclude')
@stop
@stop
<!-- /content -->
@stop
@section('FooterInclude')
@stop
<!-- /content -->

View File

@@ -0,0 +1,112 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
@stop
@section('user-bar')
active
@stop
@section('user')
class="active"
@stop
@section('HeadInclude')
@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 table-responsive no-padding">
<!-- 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>Alert!</b> Failed.
<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);
?>
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th width="100px">{{Lang::get('lang.name')}}</th>
<th width="100px">{{Lang::get('lang.status')}}</th>
<th width="100px">Last Login</th>
<th width="100px">{{Lang::get('lang.action')}}</th>
</tr>
@foreach($users as $user)
<tr>
<td><a href="{{route('user.show', $user->id)}}"> {{$user->user_name }}</a></td>
<td><?php if($user->active == 1) { ?> <button class="btn btn-success btn-xs">Active</button> <?php } else { ?> <button class="btn btn-danger btn-xs">Inactive</button> <?php } ?></td>
<td>{{ UTC::usertimezone($user->updated_at) }}</td>
<td>
{!! Form::open(['route'=>['user.destroy', $user->id],'method'=>'DELETE']) !!}
<a href="{{route('user.edit', $user->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
{{-- <div class="form-group"> --}}
<!-- To pop up a confirm Message -->
{!! Form::button(' <i class="fa fa-trash" style="color:black;"> </i> Delete',['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{{-- </div> --}}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</table>
<div class="pull-right">
<?php echo $users->setPath(url('/user'))->render();?>&nbsp;
</div>
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->
@stop
@section('FooterInclude')
@stop
<!-- /content -->

View File

@@ -0,0 +1,214 @@
@extends('themes.default1.agent.layout.agent')
@section('Dashboard')
class="active"
@stop
@section('dashboard-bar')
active
@stop
@section('profile')
class="active"
@stop
@section('content')
<div class="row">
<div class="col-md-6">
{!! Form::model($user,['url'=>'agent-profile', 'method' => 'PATCH','files'=>true]) !!}
<div class="box box-primary">
<div class="content-header">
<h4>Profile {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- fail message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- first name -->
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
</div>
<!-- last name -->
<div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
</div>
<!-- gender -->
<div class="form-group">
{!! Form::label('gender',Lang::get('lang.gender')) !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('gender','1',true) !!}{{Lang::get('lang.male')}}
</div>
<div class="col-xs-3">
{!! Form::radio('gender','0') !!}{{Lang::get('lang.female')}}
</div>
</div>
</div>
<div class="form-group">
<!-- email address -->
{!! Form::label('email',Lang::get('lang.email_address')) !!}
<div>
{{$user->email}}
</div>
</div>
<div class="form-group {{ $errors->has('company') ? 'has-error' : '' }}">
<!-- company -->
{!! Form::label('company',Lang::get('lang.company')) !!}
{!! $errors->first('company', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('company',null,['class' => 'form-control']) !!}
</div>
<div class="row">
<!-- phone extension -->
<div class="col-xs-3 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
{!! Form::label('ext',Lang::get('lang.ext')) !!}
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ext',null,['class' => 'form-control']) !!}
</div>
<!-- phone number -->
<div class="col-xs-9 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- mobile -->
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
</div>
<div class="form-group {{ $errors->has('agent_sign') ? 'has-error' : '' }}">
{!! Form::label('agent_sign',Lang::get('lang.agent_sign')) !!}
{!! $errors->first('agent_sign', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('agent_sign',null,['class' => 'form-control']) !!}
</div>
<div class="form-group {{ $errors->has('profile_pic') ? 'has-error' : '' }}">
<!-- profile pic -->
<div type="file" class="btn btn-default btn-file" style="color:orange">
<i class="fa fa-user"> </i>
{!! Form::label('profile_pic',Lang::get('lang.profile_pic')) !!}
{!! $errors->first('profile_pic', '<spam class="help-block">:message</spam>') !!}
{!! Form::file('profile_pic',['class' => 'form-file']) !!}
</div>
</div>
{!! Form::token() !!}
{!! Form::close() !!}
</div>
</div>
</div>
<div class="col-md-6">
{!! Form::model($user,['url'=>'agent-profile-password/'.$user->id , 'method' => 'PATCH']) !!}
<div class="box box-primary">
<div class="content-header">
<h4>Change Password {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
@if(Session::has('success1'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success1')}}
</div>
@endif
<!-- fail message -->
@if(Session::has('fails1'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails1')}}
</div>
@endif
<!-- old password -->
<div class="form-group has-feedback {{ $errors->has('old_password') ? 'has-error' : '' }}">
{!! Form::label('old_password',Lang::get('lang.old_password')) !!}
{!! Form::password('old_password',['placeholder'=>'Password','class' => 'form-control']) !!}
{!! $errors->first('old_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<!-- new password -->
<div class="form-group has-feedback {{ $errors->has('new_password') ? 'has-error' : '' }}">
{!! Form::label('new_password',Lang::get('lang.new_password')) !!}
{!! Form::password('new_password',['placeholder'=>'New Password','class' => 'form-control']) !!}
{!! $errors->first('new_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<!-- confirm password -->
<div class="form-group has-feedback {{ $errors->has('confirm_password') ? 'has-error' : '' }}">
{!! Form::label('confirm_password',Lang::get('lang.confirm_password')) !!}
{!! Form::password('confirm_password',['placeholder'=>'Confirm Password','class' => 'form-control']) !!}
{!! $errors->first('confirm_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
</div>
</div>
</div>
</div>
{!! Form::close() !!}
<script>
$(function () {
$("textarea").wysihtml5();
});
</script>
@stop

View File

@@ -0,0 +1,75 @@
@extends('themes.default1.agent.layout.agent')
@section('content')
@section('Dashboard')
class="active"
@stop
@section('dashboard-bar')
active
@stop
@section('profile')
class="active"
@stop
@section('profileimg')
@if(Auth::user() && Auth::user()->profile_pic)
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
@else
@if(Auth::user())
<img src="{{ Gravatar::src(Auth::user()->email,200) }}" class="img-circle" alt="User Image">
@endif
@endif
@stop
<section class="content">
<div class="row">
{{-- style="background-image:url({{ URL::asset('/dist/img/boxed-bg.jpg')}}); color:#DBDBDB;" --}}
<div class="col-md-12 box box-primary">
<div class="col-md-6">
{{-- <div class="box box-success"> --}}
{{-- <section class="content"> --}}
{{-- <div class=" box-header"> --}}
<h3><b>User Information</b>&nbsp;&nbsp;<a href="{{URL::route('agent-profile-edit')}}"><i class="fa fa-fw fa-edit"> </i></a></h3>
{{-- </div> --}}
<div class="box-body">
<table class="row">
@if($user->gender == 1)
<tr><th class="col-md-8"><h4><b>Gender:<b></h4></th><td class="col-md-6"><h4>{{ 'Male' }}</h4></td></tr>
@else
<tr><th class="col-md-8"><h4><b>gender:</b></h4></th><td class="col-md-6"><h4>{{ 'Female' }}</h4></td></tr>
@endif
<tr><th class="col-md-8"><h4><b>department:</b></h4></th><td class="col-md-6"><h4>{{ $user->primary_dpt }}</h4></td></tr>
<tr><th class="col-md-8"><h4><b>group:</b></h4></th><td class="col-md-6"><h4>{{ $user->assign_group }}</h4></td></tr>
<tr><th class="col-md-8"><h4><b>Company:</b></h4></th><td class="col-md-6"> <h4>{{ $user->company }}</h4></td></tr>
<tr><th class="col-md-8"><h4><b>Time-zone:</b></h4></th><td class="col-md-6"><h4> {{ $user->agent_tzone }}</h4></td></tr>
<tr><th class="col-md-8"><h4><b>Role:</b></h4></th><td class="col-md-6"> <h4>{{ $user->role }}</h4></td></tr>
</table>
</div>
{{-- </section> --}}
{{-- </div> --}}
</div>
<div class="col-md-6">
{{-- <div class="box box-primary"> --}}
{{-- <section class="content"> --}}
<h3><b>Contact Information</b></h3>
<div class="box-body">
<table>
<tr><th class="col-md-8"><h4><b>Email:</b></h4> </th> <td class="col-md-6"><h4> {{ $user->email }}</h4> </td></tr>
<tr><th class="col-md-8"><h4><b>Phone Number:</b></h4> </th> <td class="col-md-6"><h4> {{ $user->ext }}{{ $user->phone_number }}</h4> </td></tr>
<tr><th class="col-md-8"><h4><b>Moble:</b></h4></th><td class="col-md-6"><h4> {{ $user->mobile }}</h4></td></tr>
</table>
</div>
{{-- </section> --}}
</div>
{{-- </div> --}}
</div>
</div>
</section>
@stop

View File

@@ -0,0 +1,755 @@
@extends('themes.default1.agent.layout.agent')
@section('Users')
class="active"
@stop
@section('user-bar')
active
@stop
@section('user')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
<div class="box-header" style="margin-top:-15px;margin-bottom:-15px;"><h3 class="box-title">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> Edit</a></div>
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
@stop
<!-- /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>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
</div>
<div class="row">
<div class="col-md-3">
<div class="box box-primary">
<div class="box-header">
</div>
<div class="box-body ">
<div>
<center>
<img src="{{ Gravatar::src($users -> email) }}" class="img-circle" alt="User Image" style="border:3px solid #CBCBDA;padding:3px;">
@if($users->first_name || $users->last_name)
<h3 class="">{{$users->first_name}} {{$users->last_name}}</h3>
@else
<h3 class="">{{$users->user_name}}</h3>
@endif
</center>
</div>
</div>
<div class="box-footer">
<b>{{Lang::get('lang.email')}}</b>
<a class="pull-right">
{{$users->email }}
</a>
</div>
<div class="box-footer">
<div id="refresh-org">
<?php
$user_org = App\Model\helpdesk\Agent_panel\User_org::where('user_id','=', $users->id)->first();
?>
@if($user_org == null)
<b>Organisation</b>
<a href="" class="pull-right" data-toggle="modal" data-target="#assign"><i class="fa fa-hand-o-right" style="color:orange;"> </i> Assign </a>
<a href="" data-toggle="modal" data-target="#create_org" class="pull-right"> {{Lang::get('lang.create')}} <b style="color:#000"> / </b>&nbsp; </a>
@else
<?php $org_id = $user_org->org_id;
$organization = App\Model\helpdesk\Agent_panel\Organization::where('id','=',$org_id)->first(); ?>
<b>Organisations</b>
<a href="{!! URL::route('organizations.show',$organization->id) !!}" class="pull-right">{!! $organization->name !!}</a>
@endif
</div>
</div>
<div class="box-footer">
<b>{{Lang::get('lang.status')}}</b>
<a class="pull-right">
@if($users->active == '1')
<span style="color:green;">Active</span>
@else
<span style="color:red;">Inactive</span>
@endif
</a>
</div>
@if($users->phone_number)
<div class="box-footer">
<b>{{Lang::get('lang.phone')}}</b>
<a class="pull-right">{{$users->phone_number}}</a>
</div>
@endif
@if($users->internal_note)
<div class="box-footer">
<b>{{Lang::get('lang.internal_notes')}}</b>
<br/>
{!! $users->internal_note !!}
</div>
@endif
</div>
</div>
<div class="col-md-9">
{{-- detals table starts --}}
<?php $user = App\User::where('id',$users->id)->first(); ?>
<?php $open = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=','1')->get());
$counted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=','2')->get());
$deleted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=','5')->get()); ?>
<div class="row">
<div class="col-md-12">
<!-- Custom Tabs -->
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab_1" data-toggle="tab">Open Tickets ({{$open}})</a></li>
<li><a href="#tab_2" data-toggle="tab">Closed Tickets ({{$counted}})</a></li>
<li><a href="#tab_3" data-toggle="tab">Deleted Tickets ({{$deleted}})</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab_1">
{{-- open tab --}}
<?php $open = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=','1')->get()); ?>
@if(Session::has('success'))
<div id="success-alert" 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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
<div class="pull-right">
<?php
$counted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=','1')->get());
if ($counted < 20) {
echo $counted . "/" . $counted;
} else {
echo "20/" . $counted;
}
?>
</div>
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
<?php $tickets = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=','1')->orderBy('id', 'DESC')->paginate(20);?>
@foreach ($tickets as $ticket)
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
?> >
<td ><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title) {
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null) {
$assigned = "Unassigned";
} else {
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/open'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
{{-- end deleted tickets --}}
</div>
</div><!-- /.tab-pane -->
<div class="tab-pane" id="tab_2">
{{-- open tab --}}
<?php $closed = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', 2)->get()); ?>
@if(Session::has('success'))
<div id="success-alert" 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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
<div class="pull-right">
<?php
$counted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=','2')->get());
if ($counted < 20) {
echo $counted . "/" . $counted;
} else {
echo "20/" . $counted;
}
?>
</div>
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
<?php $tickets = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=','2')->orderBy('id', 'DESC')->paginate(20);?>
@foreach ($tickets as $ticket)
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php } ?> >
<td ><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title) {
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null) {
$assigned = "Unassigned";
} else {
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/open'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
{{-- end deleted tickets --}}
</div>
</div>
<div class="tab-pane" id="tab_3">
{{-- open tab --}}
<?php $deleted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=','5')->get()); ?>
@if(Session::has('success'))
<div id="success-alert" class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"> </i> <b> Success </b>
<button type="button" id="close-alert" 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> Alert! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="box-body no-padding ">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" value="Delete">
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
<div class="pull-right">
<?php
$counted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=','5')->get());
if ($counted < 20) {
echo $counted . "/" . $counted;
} else {
echo "20/" . $counted;
}
?>
</div>
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>Subject</th>
<th>Ticket ID</th>
<th>Priority</th>
<th>From</th>
<th>Last Replier</th>
<th>Assigned To</th>
<th>Last Activity</th>
</thead>
<tbody id="hello">
<?php $tickets = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=','5')->orderBy('id', 'DESC')->paginate(20);?>
@foreach ($tickets as $ticket)
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
?> >
<td ><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php
// collaborators
$collaborators = App\Model\helpdesk\Ticket\Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// title
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
}
$assigned_to = App\User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null)
{
$assigned = "Unassigned";
}
else
{
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
?>
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i>
@if($collab > 0)&nbsp;<i class="fa fa-users"></i>@endif
@if($attach > 0)&nbsp;<i class="fa fa-paperclip"></i>@endif</td>
<td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td>
<?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>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket/open'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.tab-pane -->
</div><!-- /.tab-content -->
</div><!-- nav-tabs-custom -->
</div><!-- /.col -->
</div> <!-- /.row -->
</div>
</div>
<!-- END CUSTOM TABS -->
{{-- MODAL POPUPS --}}
<div class="modal fade" id="create_org">
<div class="modal-dialog" style="width:84%;height:70%;">
<div class="modal-content">
{!! Form::model($users->id, ['id'=>'form','method' => 'PATCH'] )!!}
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidd en="true">&times;</span></button>
<h4 class="modal-title">Create Organization</h4>
</div>
<div class="modal-body">
<!-- failure message -->
<div class="alert alert-danger alert-dismissable" id="alert-danger" style="display:none;">
<i class="fa fa-ban"> </i> <b> Alert! <span id="get-danger"></span> </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
</div>
<div class="row" id="hide">
<div class="col-md-4">
<div class="form-group">
<label>Name</label>
<input type="text" name="name" class="form-control">
<spam id="error-name" style="display:none;position:fixed" class="call-out text-red">This is a required field</spam>
<spam id="error-name1" style="display:none;position:fixed" class="call-out text-red">! Allready Taken</spam>
<br/>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Phone</label>
<input type="number" name="phone" class="form-control">
<br/>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Website</label>
<input type="url" name="website" placeholder="https://www.example.com" class="form-control">
<spam id="error-website" style="display:none" class="help-block text-red">! Allready Taken</spam>
<br/>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Address</label>
<textarea name="address" class="form-control"></textarea>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Internal</label>
<textarea name="internal" class="form-control"></textarea>
</div>
</div>
</div>
<div id="show2" style="display:none;">
<div class="row row-md-12">
<div class="col-xs-5">
</div>
<div class="col-xs-2">
<img src="{{asset("lb-faveo/dist/img/gifloader.gif")}}">
</div>
<div class="col-xs-5">
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis">Close</button>
<input type="submit" class="btn btn-primary pull-right" value="Update">
</div>
{!! Form::close() !!}
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script type="text/javascript">
jQuery(document).ready(function($) {
// create org
$('#form').on('submit', function() {
$.ajax({
type: "POST",
url: "../user-org/{{$users->id}}",
dataType: "html",
data: $(this).serialize(),
beforeSend: function() {
$("#hide").hide();
$("#show2").show();
},
success: function(response) {
$("#show2").hide();
$("#hide").show();
if (response == 0) {
message = "Organization added successfully."
$("#dismis").trigger("click");
$("#refresh-org").load("../user/{{ $users->id }} #refresh-org");
// $("#refresh2").load("../thread/{{$users->id}} #refresh2");
// $("#show").show();
$("#alert-success").show();
$('#get-success').html(message);
setInterval(function(){$("#alert-success").hide(); },4000);
} else {
message = response;
$("#alert-danger").show();
$('#get-danger').html(message);
}
}
})
return false;
});
});
</script>
<!-- Organisation Assign Modal -->
<div class="modal fade" id="assign">
<div class="modal-dialog">
<div class="modal-content">
{!! Form::model($users->id, ['id'=>'org_assign','method' => 'PATCH'] )!!}
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" id="dismiss" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Assign</h4>
</div>
<div id="assign_alert" class="alert alert-success alert-dismissable" style="display:none;">
<button id="assign_dismiss" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4><i class="icon fa fa-check"></i>Alert!</h4>
<div id="message-success1"></div>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-6" id="assign_loader" style="display:none;">
<img src="{{asset("lb-faveo/dist/img/gifloader.gif")}}"><br/><br/><br/>
</div>
</div>
<div id="assign_body">
<p>Please Select an Organization</p>
<select id="org" class="form-control" name="org">
<?php
$orgs = App\Model\helpdesk\Agent_panel\Organization::all();
?>
<optgroup label="Select Organizations">
@foreach($orgs as $org)
<option value="{{$org->id}}">{!! $org->name !!}</option>
@endforeach
</optgroup>
</select>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis4">Close</button>
<button type="submit" class="btn btn-success pull-right" id="submt2">Assign</button>
</div>
{!! Form::close()!!}
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script type="text/javascript">
// Assign a ticket
jQuery(document).ready(function($) {
// create org
$('#org_assign').on('submit', function() {
$.ajax({
type: "POST",
url: "../user-org-assign/{{$users->id}}",
dataType: "html",
data: $(this).serialize(),
beforeSend: function() {
$("#hide").hide();
$("#show2").show();
},
success: function(response) {
$("#show2").hide();
$("#hide").show();
if (response == 1) {
message = "Organization added successfully."
$("#dismiss").trigger("click");
$("#refresh-org").load("../user/{{ $users->id }} #refresh-org");
// $("#refresh2").load("../thread/{{$users->id}} #refresh2");
// $("#show").show();
$("#alert-success").show();
$('#get-success').html(message);
setInterval(function(){$("#alert-success").hide(); },4000);
}
}
})
return false;
});
});
</script>
<script type="text/javascript">
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('open #refresh');
$("#show").show();
});
});
</script>
@stop
<!-- /content -->

View File

@@ -0,0 +1,409 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" ng-app="myApp">
<title>Faveo | HELP DESK</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<meta name="_token" content="{!! csrf_token() !!}"/>
<!-- Bootstrap 3.3.2 -->
<link href="{{asset("lb-faveo/downloads/bootstrap.min.css")}}" rel="stylesheet" type="text/css" />
<!-- Font Awesome Icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons -->
<link href="{{asset("lb-faveo/downloads/ionicons.min.css")}}" rel="stylesheet" type="text/css" />
<!-- fullCalendar 2.2.5-->
<link href="{{asset("lb-faveo/plugins/fullcalendar/fullcalendar.min.css")}}" rel="stylesheet" type="text/css" />
<link href="{{asset("lb-faveo/plugins/fullcalendar/fullcalendar.print.css")}}" rel="stylesheet" type="text/css" media='print' />
<!-- Theme style -->
<link href="{{asset("lb-faveo/dist/css/AdminLTE.css")}}" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link href="{{asset("lb-faveo/dist/css/skins/_all-skins.min.css")}}" rel="stylesheet" type="text/css" />
<!-- iCheck -->
<link href="{{asset("lb-faveo/plugins/iCheck/flat/blue.css")}}" rel="stylesheet" type="text/css" />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<link rel="stylesheet" href="{{asset("lb-faveo/dist/css/tabby.css")}}" type="text/css">
<link href="{{asset("lb-faveo/downloads/jquerysctipttop.css")}}" rel="stylesheet" type="text/css">
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<link rel="stylesheet" href="{{asset("lb-faveo/dist/css/editor.css")}}" type="text/css">
<link href="{{asset("lb-faveo/plugins/filebrowser/plugin.js")}}" rel="stylesheet" type="text/css" />
{{-- jquery ui css --}}
<link type="text/css" href="{{asset("lb-faveo/downloads/jquery.ui.css")}}" rel="stylesheet">
<link type="text/css" href="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.css")}}" rel="stylesheet">
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
<!-- <link type="text/css" href="http://code.jquery.com/ui/1.9.1/themes/redmond/jquery-ui.css" rel="stylesheet"> -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
@yield('HeadInclude')
</head>
<body class="skin-yellow fixed">
<div class="wrapper">
<header class="main-header">
<a href="" class="logo"><b>Faveo </b>HELPDESK</a>
<?php
$company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first();
if ($company != null) {
}
?>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="tabs tabs-horizontal nav navbar-nav navbar-left">
<li @yield('Dashboard')><a data-target="#tabA" href="#">Dashboard</a></li>
<li @yield('Users')><a data-target="#tabB" href="#">Users</a></li>
<li @yield('Tickets')><a data-target="#tabC" href="#">Tickets</a></li>
<li @yield('Tools')><a data-target="#tabD" href="#">Tools</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
@if(Auth::user()->role == 'admin')
<li><a href="{{url('agents')}}">Admin Panel</a></li>
@endif
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
@if(Auth::user())
@if(Auth::user()->profile_pic)
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{Auth::user()->profile_pic}}"class="user-image" alt="User Image"/>
@else
<img src="{{ Gravatar::src(Auth::user()->email) }}" class="user-image" alt="User Image">
@endif
<span class="hidden-xs">{{Auth::user()->first_name." ".Auth::user()->last_name}}</span>
@endif
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header" style="background-color:#343F44;">
@if(Auth::user()->profile_pic)
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
@else
<img src="{{ Gravatar::src(Auth::user()->email) }}" class="img-circle" alt="User Image">
@endif
<p>
{{Auth::user()->first_name." ".Auth::user()->last_name}} - {{Auth::user()->role}}
<small></small>
</p>
</li>
<!-- Menu Footer-->
<li class="user-footer" style="background-color:#1a2226;">
<div class="pull-left">
<a href="{{URL::route('profile')}}" class="btn btn-info btn-sm"><b>Profile</b></a>
</div>
<div class="pull-right">
<a href="{{url('auth/logout')}}" class="btn btn-danger btn-sm"><b>Sign out</b></a>
</div>
</li>
</ul>
</li>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<div class="user-panel">
@if (trim($__env->yieldContent('profileimg')))
<h1>@yield('profileimg')</h1>
@else
<div class = "row">
<div class="col-xs-3"></div>
<div class="col-xs-2" style="width:50%;">
<a href="{!! url('profile') !!}">
@if(Auth::user() && Auth::user()->profile_pic)
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
@else
<img src="{{ Gravatar::src(Auth::user()->email) }}" class="img-circle" alt="User Image">
@endif
</a>
</div>
</div>
@endif
<div class="info" style="text-align:center;">
@if(Auth::user())
<p>{{Auth::user()->first_name." ".Auth::user()->last_name}}</p>
@endif
@if(Auth::user() && Auth::user()->active==1)
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
@else
<a href="#"><i class="fa fa-circle"></i> Offline</a>
@endif
</div>
</div>
<!-- search form -->
{{-- <form action="#" method="get" class="sidebar-form"> --}}
{{-- <div class="input-group"> --}}
{{-- <input type="text" name="q" class="form-control" placeholder="Search..."/> --}}
{{-- <span class="input-group-btn"> --}}
{{-- <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button> --}}
{{-- </span> --}}
{{-- </div> --}}
{{-- </form> --}}
<!-- /.search form -->
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
@yield('sidebar')
<li class="header">TICKETS</li>
<?php
$inbox = App\Model\helpdesk\Ticket\Tickets::all();
?>
<?php $myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status','1')->get();?>
<?php $unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '0')->where('status','1')->get();
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status','1')->get();
$i = count($tickets);
?>
<li @yield('inbox')>
<a href="{{ url('/ticket/inbox') }}" id="load-inbox">
<i class="fa fa-envelope"></i> <span>Inbox</span> <small class="label pull-right bg-green"><?php echo $i;?></small>
</a>
</li>
<li @yield('myticket')>
<a href="{{url('ticket/myticket')}}">
<i class="fa fa-user"></i> <span>My Tickets</span>
<small class="label pull-right bg-green">{{count($myticket) }}</small>
</a>
</li>
<li @yield('unassigned')>
<a href="{{url('unassigned')}}">
<i class="fa fa-th"></i> <span>Unassigned</span>
<small class="label pull-right bg-green">{{count($unassigned)}}</small>
</a>
</li>
<li @yield('trash')>
<a href="{{url('trash')}}">
<i class="fa fa-trash-o"></i> <span>Trash</span>
<?php $deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->get();?>
<small class="label pull-right bg-green">{{count($deleted)}}</small>
</a>
</li>
<li class="header">DEPARTMENTS</li>
<?php
$depts = App\Model\helpdesk\Agent\Department::all();
foreach ($depts as $dept) {
$open = App\Model\helpdesk\Ticket\Tickets::where('status','=','1')->where('assigned_to','=', 0)->where('dept_id','=',$dept->id)->get();
$open = count($open);
$underprocess = App\Model\helpdesk\Ticket\Tickets::where('status','=','1')->where('assigned_to','>', 0)->where('dept_id','=',$dept->id)->get();
$underprocess = count($underprocess);
$closed = App\Model\helpdesk\Ticket\Tickets::where('status','=','2')->where('dept_id','=',$dept->id)->get();
$closed = count($closed);
// $underprocess = 0;
// foreach ($inbox as $ticket4) {
// if ($ticket4->assigned_to == null) {
// } else {
// $underprocess++;
// }
// }
if (Auth::user()->role == 'admin') { ?>
<li class="treeview">
<a href="#">
<i class="fa fa-folder-open"></i> <span>{!! $dept->name !!}</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li><a href="{!! url::route('dept.open.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>Open<small class="label pull-right bg-green">{!! $open !!}</small></a></li>
<li><a href="{!! url::route('dept.inprogress.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>Inprogress<small class="label pull-right bg-green">{!! $underprocess !!}</small></a></li>
<li><a href="{!! url::route('dept.closed.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>Closed<small class="label pull-right bg-green">{!! $closed !!}</small></a></li>
</ul>
</li>
<?php } if (Auth::user()->role == 'agent' && Auth::user()->primary_dpt == $dept->name) { ?>
<li class="treeview">
<a href="#">
<i class="fa fa-folder-open"></i> <span>{!! $dept->name !!}</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li><a href="{!! url::route('dept.open.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>Open<small class="label pull-right bg-green">{!! $open !!}</small></a></li>
<li><a href="{!! url::route('dept.inprogress.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>Inprogress<small class="label pull-right bg-green">{!! $underprocess !!}</small></a></li>
<li><a href="{!! url::route('dept.closed.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>Closed<small class="label pull-right bg-green">{!! $closed !!}</small></a></li>
</ul>
</li>
<?php } } ?>
</ul>
</section>
<!-- /.sidebar -->
</aside>
<?php $agent_group = Auth::user()->assign_group;
$group = App\Model\helpdesk\Agent\Groups::where('name', '=', $agent_group)->where('group_status', '=', '1')->first();
// dd($group); ?>
<!-- Right side column. Contains the navbar and content of the page -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="tab-content" style="background-color: white;padding: 0 20px 0 20px">
<div class="collapse navbar-collapse" id="navbar-collapse">
<div class="tabs-content">
<div class="tabs-pane @yield('dashboard-bar')" id="tabA">
<ul class="nav navbar-nav">
<li id="bar" @yield('dashboard') ><a href="{{url('dashboard')}}">Dashboard</a></li>
<li id="bar" @yield('profile') ><a href="{{url('profile')}}">Profile</a></li>
</ul>
</div>
<div class="tabs-pane @yield('user-bar')" id="tabB">
<ul class="nav navbar-nav">
<li id="bar" @yield('user')><a href="{{ url('user') }}" >User Directory</a></li></a></li>
<li id="bar" @yield('organizations')><a href="{{ url('organizations') }}" >Organizations</a></li></a></li>
</ul>
</div>
<div class="tabs-pane @yield('ticket-bar')" id="tabC">
<ul class="nav navbar-nav">
<li id="bar" @yield('open')><a href="{{ url('/ticket/open') }}" >Open</a></li>
<li id="bar" @yield('answered')><a href="{{ url('/ticket/answered') }}" >Answered</a></li>
<li id="bar" @yield('myticket')><a href="{{ url('/ticket/myticket') }}" >My Ticket</a></li>
{{-- <li id="bar" @yield('ticket')><a href="{{ url('ticket') }}" >Ticket</a></li> --}}
{{-- <li id="bar" @yield('overdue')><a href="{{ url('/ticket/overdue') }}" >Overdue</a></li> --}}
<li id="bar" @yield('assigned')><a href="{{ url('/ticket/assigned') }}" >Assigned</a></li>
<li id="bar" @yield('closed')><a href="{{ url('/ticket/closed') }}" >Closed</a></li>
<?php if ($group->can_create_ticket == 1) {?>
<li id="bar" @yield('newticket')><a href="{{ url('/newticket') }}" >Create Ticket
</a></li>
<?php } ?>
</ul>
</div>
<div class="tabs-pane @yield('tools-bar')" id="tabD">
<ul class="nav navbar-nav">
<li id="bar" @yield('tools')><a href="{{ url('/canned/list') }}" >Canned</a></li>
{{-- <li id="bar" @yield('answered')><a href="{{ url('/ticket/answered') }}" >Answered</a></li> --}}
</ul>
</div>
</div>
</div>
</div>
<section class="content-header">
@yield('PageHeader')
@yield('breadcrumbs')
</section>
<!-- Main content -->
<section class="content">
@yield('content')
</section><!-- /.content -->
<!-- /.content-wrapper -->
</div>
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> {!! Config::get('app.version') !!}
</div>
<strong>Copyright &copy; {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>.</strong> All rights reserved. Powered by <a href="http://www.faveohelpdesk.com/">Faveo</a>
</footer>
</div><!-- ./wrapper -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="{{asset("lb-faveo/downloads/bootstrap.min.js")}}" type="text/javascript"></script>
<!-- Slimscroll -->
<script src="{{asset("lb-faveo/plugins/slimScroll/jquery.slimscroll.min.js")}}" type="text/javascript"></script>
<!-- FastClick -->
<script src="{{asset("lb-faveo/plugins/fastclick/fastclick.min.js")}}"></script>
<!-- AdminLTE App -->
<script src="{{asset("lb-faveo/dist/js/app.min.js")}}" type="text/javascript"></script>
<!-- AdminLTE for demo purposes -->
{{-- // <script src="{{asset("dist/js/demo.js")}}" type="text/javascript"></script> --}}
<!-- iCheck -->
<script src="{{asset("lb-faveo/plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
{{-- maskinput --}}
<script src="js/jquery.maskedinput.min.js" type="text/javascript"></script>
{{-- jquery ui --}}
<script src="{{asset("lb-faveo/downloads/jquery.ui.js")}}" type="text/javascript"></script>
<script src="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.js")}}" type="text/javascript"></script>
<script src="{{asset("lb-faveo/plugins/datatables/jquery.dataTables.js")}}" type="text/javascript"></script>
<!-- Page Script -->
<script>
$(function() {
//Enable iCheck plugin for checkboxes
//iCheck for checkbox and radio inputs
// $('input[type="checkbox"]').iCheck({
// checkboxClass: 'icheckbox_flat-blue',
// radioClass: 'iradio_flat-blue'
// });
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
//Handle starring for glyphicon and font awesome
$(".mailbox-star").click(function(e) {
e.preventDefault();
//detect type
var $this = $(this).find("a > i");
var glyph = $this.hasClass("glyphicon");
var fa = $this.hasClass("fa");
//Switch states
if (glyph) {
$this.toggleClass("glyphicon-star");
$this.toggleClass("glyphicon-star-empty");
}
if (fa) {
$this.toggleClass("fa-star");
$this.toggleClass("fa-star-o");
}
});
});
</script>
<script type="text/javascript">
// $(document).ready(function() {
// $("#content").Editor();
// });
// </script>
<!-- // <script src="../plugins/jQuery/jQuery-2.1.3.min.js"></script> -->
<script src="{{asset("lb-faveo/dist/js/tabby.js")}}"></script>
<!-- // <script src="{{asset("dist/js/editor.js")}}"></script> -->
<!-- CK Editor -->
<!-- // <script src="{{asset("//cdn.ckeditor.com/4.4.3/standard/ckeditor.js")}}"></script> -->
<script src="{{asset("lb-faveo/downloads/CKEditor.js")}}"></script>
<script src="{{asset("lb-faveo/plugins/filebrowser/plugin.js")}}"></script>
<script src="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js")}}" type="text/javascript"></script>
<script>
// $(function () {
// //Add text editor
// $("textarea").wysihtml5();
// });
</script>
<script type="text/javascript">
$.ajaxSetup({
headers: { 'X-CSRF-Token' : $('meta[name=_token]').attr('content') }
});
</script>
@yield('FooterInclude')
</body>
</html>

View File

@@ -0,0 +1,451 @@
@extends('themes.default1.client.layout.client')
@section('HeadInclude')
@stop
@section('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">You are here: </li>
<li><a href="#">Home</a></li>
<li class="active">Ticket Status</li>
</ol>
</div>
@stop
@section('content')
<?php
$tickets = App\Model\helpdesk\Ticket\Tickets::where('id','=',\Crypt::decrypt($id))->first();
$thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',\Crypt::decrypt($id))->first();
//$user = App\User::where('id','=',$id1)->first();?>
<!-- Main content -->
<div class="box box-primary">
<div class="box-header">
<section class="content-header"><h3 class="box-title"><i class="fa fa-user"> </i> {{$thread->title}} </h3> ( {{$tickets->ticket_number}} )
</section>
<div class="pull-right">
<!-- <button type="button" class="btn btn-default"><i class="fa fa-edit" style="color:green;"> </i> Edit</button> -->
{{-- <button type="button" class="btn btn-default"><i class="fa fa-print" style="color:blue;"> </i> {!! link_to_route('ticket.print','Print',[$tickets->id]) !!}</button> --}}
<!-- </div> -->
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-exchange" style="color:teal;"> </i>
Change Status <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#" id="open"><i class="fa fa-folder-open" style="color:#FFD600;"> </i>Open</a></li>
<li><a href="#" id="close"><i class="fa fa-check" style="color:#15F109;"> </i>Close</a></li>
<li><a href="#" id="resolved"><i class="fa fa-check-circle " style="color:#0EF1BE;"> </i> Resolved</a></li>
</ul>
</div>
{!! Form::close() !!}
</div>
</div>
<div class="box-body" style="margin-bottom:-10px">
<div class="row">
<div id="loader" style="display:none;">
<div class="col-xs-5">
</div>
<div class="col-xs-1">
<img src="{{asset("lb-faveo/dist/img/gifloader.gif")}}"><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</div>
<div class="col-xs-6">
</div>
</div>
<section class="content" id="refresh" style="margin-bottom:-10px;margin-top:-10px">
<div class="col-md-12">
<?php
$priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();
?>
<div class="callout callout-default ">
<div class="row">
<div class="col-md-3">
<?php
$sla = $tickets->sla;
$SlaPlan = App\Model\helpdesk\Manage\Sla_plan::where('id','=',1)->first();?>
<b>SLA Plan: {{$SlaPlan->grace_period}} </b>
</div>
<div class="col-md-3">
<b>Created Date: </b> {{ UTC::usertimezone($tickets->created_at) }}
</div>
<div class="col-md-3">
<b>Due Date: </b>
<?php
$time = $tickets->created_at;
$time = date_create($time);
date_add($time, date_interval_create_from_date_string($SlaPlan->grace_period));
echo UTC::usertimezone(date_format($time, 'd/m/Y H:i:s'));
?>
</div>
<div class="col-md-3">
<?php $response = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',$tickets->id)->where('is_internal','=',0)->get();?>
@foreach($response as $last)
<?php $ResponseDate = $last->created_at; ?>
@endforeach
<b>Last Response: </b> {{ UTC::usertimezone($ResponseDate)}}
</div>
</div>
</div>
</div>
<div class="col-md-6">
<table class="table table-hover">
<!-- <tr><th></th><th></th></tr> -->
<tr><td><b>Status:</b></td> <?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id','=',$tickets->status)->first();?>
@if($status->id == 1)
<td title="{{$status->properties}}" style="color:orange">{{$status->state}}</td></tr>
@elseif($status->id == 2)
<td title="{{$status->properties}}" style="color:green">{{$status->state}}</td></tr>
@elseif($status->id == 3)
<td title="{{$status->properties}}" style="color:green">{{$status->state}}</td></tr>
@endif
<tr><td><b>Priority:</b></td> <?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();?>
@if($priority->priority_id == 1)
<td title="{{$priority->priority_desc}}" style="color:green">{{$priority->priority}}</td>
@elseif($priority->priority_id == 2)
<td title="{{$priority->priority_desc}}" style="color:orange">{{$priority->priority}}</td>
@elseif($priority->priority_id == 3)
<td title="{{$priority->priority_desc}}" style="color:red">{{$priority->priority}}</td>
@endif
</tr>
<tr><td><b>Department:</b></td>
<?php
$help_topic = App\Model\helpdesk\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();
$department = App\Model\helpdesk\Agent\Department::where('id', '=', $help_topic->department)->first();
?>
<td title="{{ $department->name }}">{!! $department->name !!}</td></tr>
</table>
<!-- </div> -->
</div>
<div class="col-md-6">
<!-- <div class="callout callout-success"> -->
<table class="table table-hover">
<!-- <tr><th></th><th></th></tr> -->
<tr><td><b>Help Topic:</b></td> <?php $help_topic = App\Model\helpdesk\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
<tr><td><b>Last Message:</b></td> <td>{{$last->poster}}</td></tr>
</table>
</div>
<!-- </div> -->
</section>
</div>
</div>
</div>
<?php
$conversations = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->where('is_internal', '=', 0)->paginate(10);
foreach ($conversations as $conversation) {
$ConvDate1 = $conversation->created_at;
$ConvDate = explode(' ', $ConvDate1);
$date = $ConvDate[0];
$time = $ConvDate[1];
$time = substr($time, 0, -3);
if (isset($data) && $date == $data) {
} else {
$data = $ConvDate[0];
}
$role = App\User::where('id','=',$conversation->user_id)->first();
$attachment = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->first();
if($attachment == null ) {
$body = $conversation->body;
}
else {
$body = $conversation->body;
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->orderBy('id', 'DESC')->get();
foreach($attachments as $attachment)
{
if($attachment->type == 'pdf')
{
}elseif($attachment->type == 'docx')
{
}
else
{
$image = @imagecreatefromstring($attachment->file);
ob_start();
imagejpeg($image, null, 80);
$data = ob_get_contents();
ob_end_clean();
$var = '<img src="data:image/jpg;base64,' . base64_encode($data) . '" />';
$body = str_replace($attachment->name, "data:image/jpg;base64," . base64_encode($data), $body);
$string = $body;
$start = "<head>";
$end = "</head>";
if(strpos($string,$start) == false || strpos($string,$start) == false)
{
}
else
{
$ini = strpos($string,$start);
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
$parsed = substr($string,$ini,$len);
$body2 = $parsed;
$body = str_replace($body2 ," " ,$body);
}
}
}
}
$string = $body;
$start = "<head>";
$end = "</head>";
if(strpos($string,$start) == false || strpos($string,$start) == false)
{
}
else
{
$ini = strpos($string,$start);
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
$parsed = substr($string,$ini,$len);
$body2 = $parsed;
$body = str_replace($body2 ," " ,$body);
}
?>
<ol class="comment-list" >
<li class="comment">
<article class="comment-body">
<footer class="comment-meta"<?php if($role->role == "user") { ?> style="background-color: hsla(100, 100%, 51%, 0.15)" <?php } else { ?> style="background-color:#FFFCB3" <?php } ?> >
<div class="comment-author">
@if($role->profile_pic)
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{$role->profile_pic}}"alt="" height="50" width="50" class="avatar" <?php if($role->role == "user") { ?>style="box-shadow: 0 1px 3px #00FF26;" <?php } else { ?> style="box-shadow: 0 1px 3px #FFEC00;" <?php } ?> >
@else
<img src="{{ Gravatar::src($role->email) }}" alt="" height="50" width="50" class="avatar" <?php if($role->role == "user") { ?>style="box-shadow: 0 1px 3px #00FF26;" <?php } else { ?> style="box-shadow: 0 1px 3px #FFEC00;" <?php } ?> >
@endif
<span class="hidden-xs">{{Auth::user()->first_name." ".Auth::user()->last_name}}</span>
@if($role->role == "user")
<b class="fn"><a href="#" rel="external" class="url">{{$role->user_name}}</a></b>
@else
<b class="fn"><a href="#" rel="external" class="url">{{$role->first_name." ".$role->last_name}}</a></b>
@endif
</div><!-- .comment-author -->
<div class="comment-metadata">
<small class="date text-muted">
<time datetime="2013-10-23T01:50:50+00:00"><i class="fa fa-clock-o"> </i> {{ UTC::usertimezone($conversation->created_at) }}</time>
</small>
</div><!-- .comment-metadata -->
</footer><!-- .comment-meta -->
<div class="comment-content">
<p>{!! $body !!}</p>
</div><!-- .comment-content -->
<div class="timeline-footer" style="margin-bottom:-5px">
<?php
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->get();
$i = 0;
foreach($attachments as $attachment) {
if($attachment->poster == 'ATTACHMENT') {
$i++;
}
}
if($i>0)
{
echo "<hr style='border-top: 1px dotted #FFFFFF;margin-top:0px;margin-bottom:0px;background-color:#8B8C90;'><h4 class='box-title'><b>".$i." </b> Attachments</h4>";
}
?>
<ul class='mailbox-attachments clearfix'>
<?php
foreach($attachments as $attachment)
{
$size = $attachment->size;
$units = array( 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
$power = $size > 0 ? floor(log($size, 1024)) : 0;
$value = number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power];
if($attachment->poster == 'ATTACHMENT')
{
if($attachment->type == 'jpg'||$attachment->type == 'JPG'||$attachment->type == 'jpeg'||$attachment->type == 'JPEG'||$attachment->type == 'png'||$attachment->type == 'PNG'||$attachment->type == 'gif'||$attachment->type == 'GIF')
{
$image = @imagecreatefromstring($attachment->file);
ob_start();
imagejpeg($image, null, 80);
$data = ob_get_contents();
ob_end_clean();
$var = '<a href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank"><img style="max-width:200px;height:133px;" src="data:image/jpg;base64,' . base64_encode($data) . '"/></a>';
echo '<li style="background-color:#f4f4f4;"><span class="mailbox-attachment-icon has-img">'.$var.'</span><div class="mailbox-attachment-info"><b style="word-wrap: break-word;">'.$attachment->name.'</b><br/><p>'.$value.'</p></div></li>';
}
else
{
$var = '<a style="max-width:200px;height:133px;color:#666;" href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank"><span class="mailbox-attachment-icon" style="background-color:#fff;">'.strtoupper($attachment->type).'</span><div class="mailbox-attachment-info"><span ><b style="word-wrap: break-word;">'.$attachment->name.'</b><br/><p>'.$value.'</p></span></div></a>';
echo '<li style="background-color:#f4f4f4;">'.$var.'</li>';
}
}
}
?>
</ul>
</div>
</article><!-- .comment-body -->
</li><!-- .comment -->
</ol>
<?php
?>
<?php }
?>
<div class="pull-right" style="margin-top:-30px;margin-bottom:-30px">
<?php echo $conversations->setPath( url('check_ticket/{'.$id.'}'))->render(); ?>
</div>
<br/><br/>
@if(Session::has('success1'))
<div class="alert alert-success alert-dismissable" id='formabc'>
<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('success1')}}
</div>
@endif
<!-- failure message -->
@if(Session::has('fails1'))
<div class="alert alert-danger alert-dismissable" id='formabc'>
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails1')}}
</div>
@endif
<?php $id2 = Crypt::decrypt($id); ?>
<div id="respond" class="comment-respond form-border">
<h3 id="reply-title" class="comment-reply-title section-title"><i class="line"></i>Leave a Reply</h3>
@if(Auth::user())
{!! Form::open(['url'=>'post/reply/'.$id2.'#formabc']) !!}
@else
{!! Form::open(['url'=>'post-ticket-reply/'.$id.'#formabc']) !!}
@endif
<div class="row">
<div class="form-group">
<div class="col-md-12">
<div class="form-group ">
<textarea class="form-control" name="comment" cols="30" rows="8"></textarea>
</div>
</div>
</div>
</div>
<div class="text-right">
<button type="submit" class="btn btn-custom btn-lg">Post Comment</button>
</div>
{!! Form::close() !!}
</div>
<script type="text/javascript">
$(function () {
//Add text editor
$("textarea").wysihtml5();
});
jQuery(document).ready(function() {
// Close a ticket
$('#close').on('click', function(e) {
$.ajax({
type: "GET",
url: "../ticket/close/{{$tickets->id}}",
beforeSend: function() {
$("#refresh").hide();
$("#loader").show();
},
success: function(response) {
$("#refresh").load("../check_ticket/{!! $id !!} #refresh");
$("#refresh").show();
$("#loader").hide();
// $("#d1").trigger("click");
// var message = "Success! Your Ticket have been Closed";
// $("#alert11").show();
// $('#message-success1').html(message);
// setInterval(function(){
// $("#alert11").hide();
// setTimeout(function() {
// var link = document.querySelector('#load-inbox');
// if(link) {
// link.click();
// }
// }, 500);
// },2000);
}
})
return false;
});
// Resolved a ticket
$('#resolved').on('click', function(e) {
$.ajax({
type: "GET",
url: "../ticket/resolve/{{$tickets->id}}",
beforeSend: function() {
$("#refresh").hide();
$("#loader").show();
},
success: function(response) {
$("#refresh").load("../check_ticket/{!! $id !!} #refresh");
$("#refresh").show();
$("#loader").hide();
var message = "Success! Your Ticket have been Resolved";
$("#alert11").show();
$('#message-success1').html(message);
setInterval(function(){$("#alert11").hide();
setTimeout(function() {
var link = document.querySelector('#load-inbox');
if(link) {
link.click();
}
}, 500);
},2000);
}
})
return false;
});
// Open a ticket
$('#open').on('click', function(e) {
$.ajax({
type: "GET",
url: "../ticket/open/{{$tickets->id}}",
beforeSend: function() {
$("#refresh").hide();
$("#loader").show();
},
success: function(response) {
$("#refresh").load("../check_ticket/{!! $id !!} #refresh");
$("#refresh").show();
$("#loader").hide();
var message = "Success! Your Ticket have been Opened";
$("#alert11").show();
$('#message-success1').html(message);
setInterval(function(){$("#alert11").hide(); },4000);
}
})
return false;
});
});
</script>
@stop

View File

@@ -0,0 +1,158 @@
@extends('themes.default1.client.layout.client')
<!-- breadcrumbs -->
@section('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">You are here: </li>
<li><a href="{!! URL::route('form') !!}">Submit Ticket</a></li>
</ol>
</div>
@stop
<!-- /breadcrumbs -->
@section('check')
<div class="banner-wrapper text-center clearfix">
<h3 class="banner-title text-info h4">Have a Ticket?</h3>
<div class="banner-content">
{!! Form::open(['url' => 'checkmyticket' , 'method' => 'POST'] )!!}
{!! Form::label('email',Lang::get('lang.email')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('email',null,['class' => 'form-control']) !!}
{!! Form::label('ticket_number',Lang::get('lang.ticket_number'),['style' => 'display: block']) !!}
{!! $errors->first('ticket_number', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ticket_number',null,['class' => 'form-control']) !!}
<br/><input type="submit" value="Check Ticket Status" class="btn btn-info">
{!! Form::close() !!}
</div>
</div>
@stop
<!-- content -->
@section('content')
<div id="content" class="site-content col-md-9">
@if(Session::has('message'))
<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('message')}}
</div>
@endif
<!-- open a form -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<!--
|====================================================
| SELECT FROM
|====================================================
-->
<?php
$encrypter = app('Illuminate\Encryption\Encrypter');
$encrypted_token = $encrypter->encrypt(csrf_token());
?>
<input id="token" type="hidden" value="{{$encrypted_token}}">
{!! Form::open(['action'=>'Client\helpdesk\FormController@postedForm','method'=>'post']) !!}
<div>
<div class="content-header">
<h4>Ticket {!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-info pull-right'])!!}</h4>
</div>
<div class="row col-md-12">
<div class="col-md-12 form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
{!! Form::label('help_topic', 'Choose a Help Topic') !!}
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
<?php
$forms = App\Model\helpdesk\Form\Forms::get();
$helptopic = App\Model\helpdesk\Manage\Help_topic::get();
?>
<select name="helptopic" class="form-control" id="selectid">
<?php
$system_default_department = App\Model\helpdesk\Settings\System::where('id','=',1)->first();
if($system_default_department->department) {
$department_relation_helptopic = App\Model\helpdesk\Manage\Help_topic::where('department','=',$system_default_department->department)->first();
$default_helptopic = $department_relation_helptopic->id;
} else {
$default_helptopic = 0;
}
?>
<option value="{!! $default_helptopic !!}">Default</option>
@foreach($helptopic as $topic)
<option value="{!! $topic->id !!}">{!! $topic->topic !!}</option>
@endforeach
{{-- @foreach($forms as $key=>$value) --}}
{{-- <option value="{!! $value->id !!}">{!! ucfirst($value->formname) !!}</option> --}}
{{-- @endforeach --}}
</select>
</div>
<div class="col-md-12 form-group {{ $errors->has('Name') ? 'has-error' : '' }}">
{!! Form::label('Name',Lang::get('lang.name')) !!}
{!! $errors->first('Name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('Name',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-6 form-group {{ $errors->has('Email') ? 'has-error' : '' }}">
{!! Form::label('Email',Lang::get('lang.email')) !!}
{!! $errors->first('Email', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('Email',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-6 form-group {{ $errors->has('Phone') ? 'has-error' : '' }}">
{!! Form::label('Phone',Lang::get('lang.phone')) !!}
{!! $errors->first('Phone', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('Phone',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-12 form-group {{ $errors->has('Subject') ? 'has-error' : '' }}">
{!! Form::label('Subject',Lang::get('lang.subject')) !!}
{!! $errors->first('Subject', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('Subject',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-12 form-group {{ $errors->has('Details') ? 'has-error' : '' }}">
{!! Form::label('Details',Lang::get('lang.message')) !!}
{!! $errors->first('Details', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('Details',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-12" id="response"> </div>
<div id="ss" class="xs-md-6 form-group {{ $errors->has('') ? 'has-error' : '' }}"> </div>
</div>
</div>
{!! Form::close() !!}
</div>
<!--
|====================================================
| SELECTED FORM STORED IN SCRIPT
|====================================================
-->
<script type="text/javascript">
$('#selectid').on('change',function() {
var value = $('#selectid').val();
$.ajax({
url: "postform/"+ value,
type: "post",
data: value,
success: function(data) {
$('#response').html(data);
//location.reload();
}
});
});
$(function () {
//Add text editor
$("textarea").wysihtml5();
});
</script>
@stop

View File

@@ -0,0 +1,416 @@
@extends('themes.default1.client.layout.client')
<?php $user = App\User::where('id','=',$tickets->user_id)->first();?>
@section('nav1')
class="active"
@stop
@section('My')
class="active"
@stop
@section('sidebar')
<li class="header">TICKET INFORMATION</li>
<li>
<a href="">
<span>TICKET ID</span>
</br><b>#{{$tickets->ticket_number}}</b>
</a>
</li>
<li>
<a href="">
<span>USER</span>
</br><i class="fa fa-user"> </i> <b>{{$user->email}}</b>
</a>
</li>
<li>
<a href="">
@if($tickets->assigned_to > 0)
<span>ASSIGNED TO</span>
</br> <b>{{$tickets ->assigned_to}}</b>
@else
<span>UNASSIGNED</span>
@endif
</a>
</li>
@stop
@section('content')
<!-- Main content -->
<!-- Main content -->
<div class="box box-primary">
<div class="box-header">
<section class="content-header"><h3 class="box-title"><i class="fa fa-user"> </i> {{$thread->title}} </h3> ( {{$tickets->ticket_number}} )
</section>
<div class="pull-right">
<!-- <button type="button" class="btn btn-default"><i class="fa fa-edit" style="color:green;"> </i> Edit</button> -->
<button type="button" class="btn btn-default"><i class="fa fa-print" style="color:blue;"> </i> {!! link_to_route('ticket.print','Print',[$tickets->id]) !!}</button>
<!-- </div> -->
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-exchange" style="color:teal;"> </i>
Change Status <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#" id="open"><i class="fa fa-folder-open-o" style="color:yellow;"> </i>Open</a></li>
<li><a href="#" id="close"><i class="fa fa-check" style="color:green;"> </i>Close</a></li>
<li><a href="#" id="resolved"><i class="fa fa-check-circle-o " style="color:green;"> </i> Resolved</a></li>
</ul>
</div>
{!! Form::close() !!}
</div>
</div>
<div class="box-body">
<div class="row">
<section class="content" id="refresh">
<div class="col-md-12">
<?php
$priority = App\Model\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();
?>
<div class="callout callout-{!! $priority->priority_color !!}">
<div class="row">
<div class="col-md-3">
<?php
$sla = $tickets->sla;
$SlaPlan = App\Model\Manage\Sla_plan::where('id','=',1)->first();?>
<b>SLA Plan: {{$SlaPlan->grace_period}} </b>
</div>
<div class="col-md-3">
<b>Created Date: </b> {{date_format($tickets->created_at, 'd/m/Y H:i:s')}}
</div>
<div class="col-md-3">
<b>Due Date: </b>
<?php
$time = $tickets->created_at;
$time = date_create($time);
date_add($time, date_interval_create_from_date_string($SlaPlan->grace_period));
echo date_format($time, 'd/m/Y H:i:s');
?>
</div>
<div class="col-md-3">
<?php $response = App\Model\Ticket\Ticket_Thread::where('ticket_id','=',$tickets->id)->get();?>
@foreach($response as $last)
<?php $ResponseDate = $last->created_at; ?>
@endforeach
<b>Last Response: </b> {{date_format($ResponseDate, 'd/m/Y H:i:s')}}
</div>
</div>
</div>
</div>
<div class="col-md-6">
<table class="table table-hover">
<!-- <tr><th></th><th></th></tr> -->
<tr><td><b>Status:</b></td> <?php $status = App\Model\Ticket\Ticket_Status::where('id','=',$tickets->status)->first();?><td title="{{$status->properties}}">{{$status->state}}</td></tr>
<tr><td><b>Priority:</b></td> <?php $priority = App\Model\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();?><td title="{{$priority->priority_desc}}">{{$priority->priority}}</td></tr>
<tr><td><b>Department:</b></td> <?php $help_topic = App\Model\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->department}}</td></tr>
</table>
<!-- </div> -->
</div>
<div class="col-md-6">
<!-- <div class="callout callout-success"> -->
<table class="table table-hover">
<!-- <tr><th></th><th></th></tr> -->
<tr><td><b>Help Topic:</b></td> <?php $help_topic = App\Model\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
<tr><td><b>Last Message:</b></td> <td>{{$last->poster}}</td></tr>
</table>
</div>
<!-- </div> -->
</section>
</div>
</div>
</div>
<div class='row'>
<div class='col-xs-12'>
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#General" data-toggle="tab" style="color:green;"><i class="fa fa-reply-all"> </i> Reply</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="General">
<div id="t1">
{!! Form::open(['route'=>'ticket.reply']) !!}
<div class="form-group">
</div>
<div class="form-group">
<div class="row">
<input type="hidden" name="ticket_ID" value="{{$tickets->id}}">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
<div class="col-md-2">
{!! Form::label('To', 'To:') !!}
</div>
<div class="col-md-10">
{!! Form::text('To',$user->email,['class'=>'form-control','style'=>'width:55%'])!!}
{!! $errors->first('To', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
<div class="col-md-2">
{!! Form::label('Reply Content', 'ReplyContent:') !!}
</div>
<div class="col-md-10">
<textarea name="ReplyContent"></textarea>
{!! $errors->first('ReplyContent', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
<div class="col-md-2">
</div>
<div class="col-md-10">
<button type="submit" class="btn btn-primary"><i class="fa fa-check-square-o" style="color:blue;"> </i> Update</button> </div>
</div>
</div>
</div>
{!!Form::close()!!}
</div>
<div id="t2" style="display:none">
{!! Form::open(['route'=>'ticket.reply']) !!}
<div class="form-group">
<button type="submit" id="tt1" class="btn btn-default"><i class="fa fa-check-square-o" style="color:green;"> </i> Update</button>
<button style="display:none;" type="submit" id="tt2" class="btn btn-default"><i class="fa fa-check-square-o" style="color:blue;"> </i> Update</button>
<button type="button" class="btn btn-default"><i class="fa fa-hand-o-right" style="color:orange;"> </i> {!! link_to_route('assign.ticket','Assign') !!}</button>
<button type="button" id="internal" class="btn btn-default"><i class="fa fa-file-text" style="color:blue;"> </i> Internal Notes</button>
<button type="button" class="btn btn-default"><i class="fa fa-arrows-alt" style="color:red;"> </i> Surrender</button>
</div>
<div class="form-group">
<div class="row">
<input type="hidden" name="ticket_ID" value="{{$tickets->id}}">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
<div class="col-md-2">
<label>Subject</label>
</div>
<div class="col-md-10">
{!! Form::text('To',$user->email,['class'=>'form-control','style'=>'width:55%'])!!}
{!! $errors->first('To', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
<div class="col-md-2">
<label>Message</label>
</div>
<div class="col-md-10">
<textarea name="ReplyContent"></textarea>
{!! $errors->first('ReplyContent', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
</div>
</div>
{!!Form::close()!!}
</div>
</div>
<div class="tab-pane" id="Reply" >
<div class="form-group">
<button type="button" class="btn btn-default"><i class="fa fa-mail-forward" style="color:green;"> </i> Send</button>
<button type="button" class="btn btn-default"><i class="fa fa-th-large" style="color:teal;"> </i> Option</button>
<button type="button" class="btn btn-default"><i class="fa fa-file-text" style="color:blue;"> </i> Internal Notes</button>
</div>
<form>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>From</label>
</div>
<div class="col-md-10">
<input type="text" class="form-control" name="from" id="from" style="width:40%" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>To</label>
</div>
<div class="col-md-10">
<input type="text" class="form-control" name="to" id="to" style="width:55%" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>Subject</label>
</div>
<div class="col-md-10">
<input type="text" class="form-control" name="from" id="from" style="width:100%" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>Response</label>
</div>
<div class="col-md-10">
<select class="form-control" style="width:55%" >
<option>Select a canned response</option>
<option>Original Message</option>
<option>Last Message</option>
</select>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>Reply Content</label>
</div>
<div class="col-md-10">
<textarea id="txtEditor2"> </textarea>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- row -->
<div class="row">
<div class="col-md-12">
<!-- The time line -->
<ul class="timeline">
<!-- timeline time label -->
<?php $conversations = App\Model\Ticket\Ticket_Thread::where('ticket_id','=',$tickets->id)->paginate(2);
foreach ($conversations as $conversation) {
?>
<li class="time-label">
<?php
$ConvDate1 = $conversation->created_at;
$ConvDate = explode(' ',$ConvDate1);
$date = $ConvDate[0];
$time = $ConvDate[1];
$time = substr($time, 0, -3);
if(isset($data) && $date==$data){
} else {
?> <span class="bg-green">
{{date_format($conversation->created_at, 'd/m/Y')}}
</span> <?php
$data = $ConvDate[0];
}
?>
</li>
<li>
<?php if($conversation->staff_id > 0) { ?>
<i class="fa fa-group bg-yellow" title="Posted by Support Team"></i>
<?php } elseif($conversation->user_id > 0) { ?>
<i class="fa fa-user bg-aqua" title="Posted by Customer"></i>
<?php } else { ?>
<i class="fa fa-mail-reply-all bg-purple" title="Posted by System"></i>
<?php } ?>
<div class="timeline-item">
<span id="date" class="time"><i class="fa fa-clock-o"> </i> {{date_format($conversation->created_at, 'd/m/Y H:i:s')}}</span>
<h3 class="timeline-header"><a href="#">{{$conversation->poster}}</a></h3>
<div class="timeline-body">
{!! $conversation->body !!}
</div>
</div>
</li>
<?php $lastid = $conversation->id ?>
<?php } ?>
<li>
<i class="fa fa-clock-o bg-gray"></i>
</li>
<ul class="pull-right">
<?php echo $conversations->setPath( url('/thread/'.'1'))->render(); ?>
</ul>
</ul>
</div><!-- /.col -->
</div><!-- /.row -->
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('#close').on('click', function (e) {
$.ajax({
type : "GET",
url : "http://localhost/faveo/public/ticket/close/{{$tickets->id}}",
success : function(response) {
$( "#refresh" ).load( "http://localhost/faveo/public/thread/{{$tickets->id}} #refresh");
}
})
return false;
});
$('#resolved').on('click', function (e) {
$.ajax({
type : "GET",
url : "http://localhost/faveo/public/ticket/resolve/{{$tickets->id}}",
success : function(response) {
$( "#refresh" ).load( "http://localhost/faveo/public/thread/{{$tickets->id}} #refresh");
}
})
return false;
});
$('#open').on('click', function (e) {
$.ajax({
type : "GET",
url : "http://localhost/faveo/public/ticket/open/{{$tickets->id}}",
success : function(response) {
$( "#refresh" ).load( "http://localhost/faveo/public/thread/{{$tickets->id}} #refresh");
$('#refresh').load('thread/2 #refresh');
}
})
return false;
});
});
</script>
@stop

View File

@@ -0,0 +1,151 @@
@extends('themes.default1.client.layout.client')
<!-- breadcrumbs -->
@section('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">You are here: </li>
<li><a href="#">Home</a></li>
<li>Submit Ticket</a></li>
</ol>
</div>
@stop
<!-- /breadcrumbs -->
@section('check')
<div class="banner-wrapper text-center clearfix">
<h3 class="banner-title text-info h4">Have a Ticket?</h3>
<div class="banner-content">
{!! Form::open(['url' => 'checkmyticket' , 'method' => 'POST'] )!!}
{!! Form::label('email',Lang::get('lang.email')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('email',null,['class' => 'form-control']) !!}
{!! Form::label('ticket_number',Lang::get('lang.ticket_number'),['style' => 'display: block']) !!}
{!! $errors->first('ticket_number', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ticket_number',null,['class' => 'form-control']) !!}
<br/><input type="submit" value="Check Ticket Status" class="btn btn-info">
{!! Form::close() !!}
</div>
</div>
@stop
<!-- content -->
@section('content')
<div id="content" class="site-content col-md-9">
@if(Session::has('message'))
<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('message')}}
</div>
@endif
<!-- open a form -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<!--
|====================================================
| SELECT FROM
|====================================================
-->
<?php
$encrypter = app('Illuminate\Encryption\Encrypter');
$encrypted_token = $encrypter->encrypt(csrf_token());
?>
<input id="token" type="hidden" value="{{$encrypted_token}}">
{!! Form::open(['action'=>'Client\helpdesk\FormController@postedForm','method'=>'post']) !!}
<div>
<div class="content-header">
<h4>Ticket {!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-info pull-right'])!!}</h4>
</div>
<br/>
<div>
@if($errors != null)
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-check-circle"></i>
<b>Alert!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{!! $errors->first('Name', '<p>:message</p>') !!}
{!! $errors->first('Email', '<p>:message</p>') !!}
{!! $errors->first('Phone', '<p>:message</p>') !!}
{!! $errors->first('Subject', '<p>:message</p>') !!}
{!! $errors->first('Details', '<p>:message</p>') !!}
</div>
@endif
<div class="form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
{!! Form::label('help_topic', 'Choose a Help Topic') !!}
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
<select name="help_topic" class="form-control" id="selectid">
<option>--Select--</option>
<option value="1">Default Help Topic</option>
</select>
</div>
<!-- <label>data</label> -->
<!-- <input name="stack" id="stack"/> -->
<div id="ss" class="xs-md-6 form-group {{ $errors->has('') ? 'has-error' : '' }}">
</div>
</div>
</div>
{!! Form::close() !!}
</div>
<!--
|====================================================
| SELECTED FORM STORED IN SCRIPT
|====================================================
-->
<script type="text/javascript">
jQuery(document).ready(function() {
$('select').on('change', function (e) {
var value = $('#selectid').val();
var select = $('#selectid');
var $_token = $('#token').val();
var data1 = $(this).children('option:selected').data('id');
$.ajax({
type : "POST",
headers : { 'X-XSRF-TOKEN' : $_token },
url : "postform/"+ value,
dataType : 'html',
data : ({data2:data1}) ,
success : function(response) {
var data = response;
var splited = data.split(',').slice(1);
$.each(splited, function (index, value)
{
var splited = data.split(',').slice(1);
$("#ss").html("");
for (var j = 0 ; j<splited.length; j++)
{
var sli = splited[j].split('-');
if(sli[0]=='textarea')
{
$("#ss").append(sli[1]+"<div class="+'"form-group"'+">"
+"<textarea id="+sli[1]+" class="+
'form-control'+" name="+sli[1]+"/></textarea>"+"</div>");
var wysihtml5Editor = $('textarea').wysihtml5().data("wysihtml5").editor;
} else {
$("#ss").append(sli[1]+"<div class="+'"form-group"'+">"
+"<input type="+sli[0]+" id="+sli[1]+" class="+
'form-control'+" name="+sli[1]+">"+"</div>");
}
}
return false;
});
}
})
return false;
});
});
</script>
@stop

View File

@@ -0,0 +1,57 @@
@extends('themes.default1.client.layout.client')
@section('HeadInclude')
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
<link href="{{asset("lb-faveo/dist/css/widgetbox.css")}}" rel="stylesheet" type="text/css" />
<link href="{{asset("lb-faveo/plugins/iCheck/flat/blue.css")}}" rel="stylesheet" type="text/css" />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
@stop
@section('home')
class = "active"
@stop
@section('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">You are here: </li>
<li><a href="{!! URL::route('home') !!}">Home</a></li>
</ol>
</div>
@stop
@section('content')
<div id="content" class="site-content col-md-12">
<div id="corewidgetbox">
<div class="widgetrow text-center">
@if(Auth::user())
@else
<span onclick="javascript: window.location.href='{{url('auth/register')}}';">
<a href="{{url('auth/register')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_register.png');">
<span class="widgetitemtitle">Register</span>
</a>
</span>
@endif
@if(App\Model\helpdesk\Settings\System::first()->status == 1)
<span onclick="javascript: window.location.href='https://support.ebs.in/app/index.php?/Tickets/Submit';">
<a href="{{url('form')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_submitticket.png');">
<span class="widgetitemtitle">Submit a Ticket</span>
</a>
</span>
@endif
<span onclick="javascript: window.location.href='https://support.ebs.in/app/index.php?/News/List';">
<a href="{{url('mytickets')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_news.png');">
<span class="widgetitemtitle">My Tickets</span>
</a>
</span>
</div>
</div>
<script type="text/javascript"> $(function(){ $('.dialogerror, .dialoginfo, .dialogalert').fadeIn('slow');$("form").bind("submit", function(e){$(this).find("input:submit").attr("disabled", "disabled");});});</script>
<script type="text/javascript" >try {if (top.location.hostname != self.location.hostname) { throw 1; }} catch (e) { top.location.href = self.location.href; }</script>
</div>
@stop

View File

@@ -0,0 +1,204 @@
@extends('themes.default1.client.layout.client')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('ticket')
class="active"
@stop
@section('content')
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Ticket </h3> <small> 5 new messages</small>
<!-- <div class="box-tools pull-right">
<div class="has-feedback">
<input type="text" class="form-control input-sm" placeholder="Search Mail"/>
<span class="glyphicon glyphicon-search form-control-feedback"></span>
</div>
</div> --><!-- /.box-tools -->
</div><!-- /.box-header -->
<div class="box-body no-padding">
<div class="mailbox-controls">
<!-- Check all button -->
<button class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></button>
<button class="btn btn-default btn-sm"><i class="fa fa-trash-o"></i></button>
<button class="btn btn-default btn-sm" onclick="click()" id="click"><i class="fa fa-refresh"></i></button>
<div class="pull-right">
<?php
$counted = count(App\Model\Ticket\Tickets::where('status', '=', 1)->get());
if ($counted < 20) {
echo $counted . "/" . $counted;
} else {
echo "20/" . $counted;
}
?>
</div>
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>
Subject
</th>
<th>
Ticket ID
</th>
<th>
Priority
</th>
<th>
Last Replier
</th>
<th>
Last Activity
</th>
<th>
Reply Due
</th>
</thead>
<tbody id="hello">
<?php $tickets = App\Model\Ticket\Tickets::where('status', '=', 1)->orderBy('id', 'DESC')->paginate(20);?>
@foreach ($tickets as $ticket )
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
?> >
<td><input type="checkbox" value="{{$ticket->id}}"/></td>
<?php $title = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
} ?>
<td class="mailbox-name"><a href="{!! URL('myticket',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i></td>
<td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
<?php $priority = App\Model\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>
<td class="mailbox-last-reply" style="color:{!! $rep !!}">{!! $username !!}</td>
<td class="mailbox-last-activity">{!! $title->updated_at !!}</td>
<td class="mailbox-date"></td>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function() {
//Enable iCheck plugin for checkboxes
//iCheck for checkbox and radio inputs
$('input[type="checkbox"]').iCheck({
checkboxClass: 'icheckbox_flat-blue',
radioClass: 'iradio_flat-blue'
});
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
//Handle starring for glyphicon and font awesome
$(".mailbox-star").click(function(e) {
e.preventDefault();
//detect type
var $this = $(this).find("a > i");
var glyph = $this.hasClass("glyphicon");
var fa = $this.hasClass("fa");
//Switch states
if (glyph) {
$this.toggleClass("glyphicon-star");
$this.toggleClass("glyphicon-star-empty");
}
if (fa) {
$this.toggleClass("fa-star");
$this.toggleClass("fa-star-o");
}
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('ticket #refresh');
});
});
// // check box get data
// jQuery(function($) {
// $("form input[id='check_all']").click(function() { // triggred check
// var inputs = $("form input[type='checkbox']"); // get the checkbox
// for(var i = 0; i < inputs.length; i++) { // count input tag in the form
// var type = inputs[i].getAttribute("type"); // get the type attribute
// if(type == "checkbox") {
// if(this.checked) {
// inputs[i].checked = true; // checked
// } else {
// inputs[i].checked = false; // unchecked
// }
// }
// }
// });
// $("form input[id='submit']").click(function() { // triggred submit
// var count_checked = $("[name='data[]']:checked").length; // count the checked
// if(count_checked == 0) {
// alert("Please select a product(s) to delete.");
// return false;
// }
// if(count_checked == 1) {
// return confirm("Are you sure you want to delete these product?");
// } else {
// return confirm("Are you sure you want to delete these products?");
// }
// });
// }); // jquery end
</script>
@stop

View File

@@ -0,0 +1,270 @@
@extends('themes.default1.client.layout.client')
@section('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">You are here: </li>
<li class="active"><a href="{!! URL::route('ticket2') !!}">Mytickets</a></li>
</ol>
</div>
@stop
@section('myticket')
class="active"
@stop
@section('content')
<!-- Main content -->
<div id="content" class="site-content col-md-12">
<?php
$open = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=' , Auth::user()->id)
->where('status', '=', 1)
->orderBy('id', 'DESC')
->paginate(20);
?>
<?php
$close = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=' , Auth::user()->id)
->whereIn('status', [2, 3])
->orderBy('id', 'DESC')
->paginate(20);
?>
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab_1" data-toggle="tab" aria-expanded="true">Opened <small class="label bg-orange">{!! $open->total() !!}</small></a></li>
<li class=""><a href="#tab_2" data-toggle="tab" aria-expanded="false">Closed <small class="label bg-green">{!! $close->total() !!}</small></a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab_1">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click1"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
<div class="pull-right" id="refresh21">
{!! $open->count().'-'.$open->total(); !!}
</div>
</div>
<div class=" table-responsive mailbox-messages" id="refresh1">
<p style="display:none;text-align:center; position:fixed; margin-left:37%;margin-top:-80px;" id="show1" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th></th>
<th>
Subject
</th>
<th>
Ticket ID
</th>
<th>
Priority
</th>
<th>
Last Replier
</th>
<th>
Last Activity
</th>
<th>
Status
</th>
</thead>
<tbody id="hello">
@foreach ($open as $ticket )
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
?> >
<td><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php $title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
} ?>
<td class="mailbox-name"><a href="{!! URL('check_ticket',[Crypt::encrypt($ticket->id)]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i></td>
<td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
<?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>
<td class="mailbox-last-reply" style="color: {!! $rep !!}">{!! $username !!}</td>
<td class="mailbox-last-activity">{!! $title->updated_at !!}</td>
<?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id', '=', $ticket->status)->first(); ?>
<td class="mailbox-date">{!! $status->name !!}</td>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $open->setPath(url('mytickets'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
{{-- /.tab_1 --}}
<div class="tab-pane" id="tab_2">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click2"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-blue btn-sm" name="submit" value="Open">
<div class="pull-right" id="refresh22">
{!! $close->count().'-'.$close->total(); !!}
</div>
</div>
<div class=" table-responsive mailbox-messages" id="refresh2">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show2" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th></th>
<th>
Subject
</th>
<th>
Ticket ID
</th>
<th>
Priority
</th>
<th>
Last Replier
</th>
<th>
Last Activity
</th>
<th>
Status
</th>
</thead>
<tbody id="hello">
@foreach ($close as $ticket )
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
?> >
<td><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php $title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
} ?>
<td class="mailbox-name"><a href="{!! URL('check_ticket',[Crypt::encrypt($ticket->id)]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i></td>
<td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
<?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>
<td class="mailbox-last-reply" style="color: {!! $rep !!}">{!! $username !!}</td>
<td class="mailbox-last-activity">{!! $title->updated_at !!}</td>
<?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id', '=', $ticket->status)->first(); ?>
<td class="mailbox-date">{!! $status->name !!}</td>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $close->setPath(url('mytickets'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div>
</div><!-- /. box -->
</div>
</div>
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click1').click(function() {
$('#refresh1').load('mytickets #refresh1');
$('#refresh21').load('mytickets #refresh21');
$("#show1").show();
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click2').click(function() {
$('#refresh2').load('mytickets #refresh2');
$('#refresh22').load('mytickets #refresh22');
$("#show2").show();
});
});
</script>
@stop

View File

@@ -0,0 +1,205 @@
@extends('themes.default1.client.layout.client')
@section('HeadInclude')
<link href="{{asset("dist/css/AdminLTE.css")}}" rel="stylesheet" type="text/css" />
@stop
@section('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">You are here: </li>
<li><a href="#">My Profile</a></li>
<li class="active"><a href="{!! URL::route('client.profile') !!}">Edit Profile</a></li>
</ol>
</div>
@stop
@section('profile')
class="active"
@stop
@section('content')
<div id="content" class="site-content col-md-12">
<section class="section-title">
<h2>
Profile Settings </h2>
</section>
<div class="row">
<div class="col-md-6">
{!! Form::model($user,['url'=>'client-profile-edit', 'method' => 'PATCH','files'=>true]) !!}
<div class="box box-primary">
<div class="content-header">
<h4>Profile {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
@if(Session::has('success1'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success1')}}
</div>
@endif
<!-- fail message -->
@if(Session::has('fails1'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails1')}}
</div>
@endif
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
<!-- first name -->
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
</div>
<div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
<!-- last name -->
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
</div>
<div class="form-group">
<!-- gender -->
{!! Form::label('gender',Lang::get('lang.gender')) !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('gender','1',true) !!}{{Lang::get('lang.male')}}
</div>
<div class="col-xs-3">
{!! Form::radio('gender','0') !!}{{Lang::get('lang.female')}}
</div>
</div>
</div>
<div class="form-group">
<!-- email -->
{!! Form::label('email',Lang::get('lang.email_address')) !!}
<div>
{{$user->email}}
</div>
</div>
<div class="form-group {{ $errors->has('company') ? 'has-error' : '' }}">
<!-- company -->
{!! Form::label('company',Lang::get('lang.company')) !!}
{!! $errors->first('company', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('company',null,['class' => 'form-control']) !!}
</div>
<div class="row">
<div class="col-xs-3 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
<!-- phone extensionn -->
{!! Form::label('ext',Lang::get('lang.ext')) !!}
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ext',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-9 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
<!-- phone number -->
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
</div>
</div>
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
<!-- mobile -->
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
</div>
<div class="form-group {{ $errors->has('profile_pic') ? 'has-error' : '' }}">
<!-- profile pic -->
{!! Form::label('profile_pic',Lang::get('lang.profile_pic')) !!}
{!! $errors->first('profile_pic', '<spam class="help-block">:message</spam>') !!}
{!! Form::file('profile_pic') !!}
</div>
{!! Form::token() !!}
{!! Form::close() !!}
</div>
</div>
</div>
<div class="col-md-6">
{!! Form::model($user,['url'=>'client-profile-password' , 'method' => 'PATCH']) !!}
<div class="box box-primary">
<div class="content-header">
<h4>Change Password {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
@if(Session::has('success2'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success2')}}
</div>
@endif
<!-- fail message -->
@if(Session::has('fails2'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails2')}}
</div>
@endif
<!-- old password -->
<div class="form-group has-feedback {{ $errors->has('old_password') ? 'has-error' : '' }}">
{!! Form::label('old_password',Lang::get('lang.old_password')) !!}
{!! Form::password('old_password',['placeholder'=>'Password','class' => 'form-control']) !!}
{!! $errors->first('old_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<!-- new password -->
<div class="form-group has-feedback {{ $errors->has('new_password') ? 'has-error' : '' }}">
{!! Form::label('new_password',Lang::get('lang.new_password')) !!}
{!! Form::password('new_password',['placeholder'=>'New Password','class' => 'form-control']) !!}
{!! $errors->first('new_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<!-- cofirm password -->
<div class="form-group has-feedback {{ $errors->has('confirm_password') ? 'has-error' : '' }}">
{!! Form::label('confirm_password',Lang::get('lang.confirm_password')) !!}
{!! Form::password('confirm_password',['placeholder'=>'Confirm Password','class' => 'form-control']) !!}
{!! $errors->first('confirm_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
</div>
</div>
</div>
</div>
{!! Form::close() !!}
</div>
@stop

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,290 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title> SUPPORT CENTER | CLIENT PANEL</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Bootstrap 3.3.2 -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="{{asset("lb-faveo/dist/css/AdminLTEsemi.css")}}" rel="stylesheet" type="text/css" />
<!-- Font Awesome Icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons -->
<link href="http://code.ionicframework.com/ionicons/2.0.0/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- fullCalendar 2.2.5-->
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="{{asset("lb-faveo/dist/css/app.css")}}" rel="stylesheet" type="text/css" />
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
{{-- // <script src="ckeditor/ckeditor.js"></script> --}}
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
@yield('HeadInclude')
</head>
<body>
<div id="page" class="hfeed site">
<header id="masthead" class="site-header" role="banner">
<div class="container" style="margin-bottom:-25px;">
<div id="logo" class="site-logo text-center" style="font-size: 30px;">
<?php
$company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first();
$system = App\Model\helpdesk\Settings\System::where('id', '=', '1')->first();
?>
@if($system->url)
<a href="{!! $system->url !!}" rel="home">
@else
<a href="{{url('home')}}" rel="home">
@endif
@if($company->use_logo == 1)
<img src="{{asset('lb-faveo/dist')}}{{'/'}}{{$company->logo}}" alt="User Image" width="200px" height="200px"/>
@else
@if($system->name)
{!! $system->name !!}
@else
<b>SUPPORT</b> CENTER
@endif
@endif
</a>
</div><!-- #logo -->
<div id="navbar" class="navbar-wrapper text-center">
<nav class="navbar navbar-default site-navigation" role="navigation">
<ul class="nav navbar-nav navbar-menu">
<li @yield('home')><a href="{{url('home')}}">Home</a></li>
@if($system->first()->status == 1)
<li @yield('submit')><a href="{{URL::route('form')}}">Submit A Ticket</a></li>
@endif
@if(Auth::user())
<li @yield('myticket')><a href="{{url('mytickets')}}">My Tickets</a></li>
<li @yield('profile')><a href="#" >My Profile</a>
<ul class="dropdown-menu">
<li>
<div class="banner-wrapper user-menu text-center clearfix">
@if(Auth::user()->profile_pic)
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{Auth::user()->profile_pic}}"class="img-circle" alt="User Image" height="80" width="80"/>
@else
<img src="{{ Gravatar::src(Auth::user()->email) }}" class="img-circle" alt="User Image">
@endif
<h3 class="banner-title text-info h4">{{Auth::user()->first_name." ".Auth::user()->last_name}}</h3>
<div class="banner-content">
{{-- <a href="{{url('kb/client-profile')}}" class="btn btn-custom btn-xs">Edit Profile</a> --}} <a href="{{url('auth/logout')}}" class="btn btn-custom btn-xs">Log out</a>
</div>
@if(Auth::user())
@if(Auth::user()->role != 'user')
<div class="banner-content">
<a href="{{url('dashboard')}}" class="btn btn-custom btn-xs">Dashboard</a>
</div>
@endif
@endif
@if(Auth::user())
@if(Auth::user()->role == 'user')
<div class="banner-content">
<a href="{{url('client-profile')}}" class="btn btn-custom btn-xs">Profile</a>
</div>
@endif
@endif
</div>
</li>
</ul>
</li>
</ul><!-- .navbar-user -->
@else
<ul class="nav navbar-nav navbar-login">
<li <?php if($errors->first('email') || $errors->first('password')){ ?> class="sfHover" <?php } else { ?> <?php } ?> ><a href="#" data-toggle="collapse" <?php if($errors->first('email') || $errors->first('password')){ } else { ?> class="collapsed" <?php } ?> data-target="#login-form">Login <i class="sub-indicator fa fa-chevron-circle-down fa-fw text-muted"></i></a></li>
</ul><!-- .navbar-login -->
<div id="login-form" <?php if($errors->first('email') || $errors->first('password')){ ?> class="login-form collapse fade clearfix in" <?php } else { ?> class="login-form collapse fade clearfix" <?php } ?> >
{!! Form::open(['action'=>'Auth\AuthController@postLogin', 'method'=>'post']) !!}
<div class="form-group has-feedback {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::text('email',null,['placeholder'=>'Email','class' => 'form-control']) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
</div>
<div class="form-group has-feedback {{ $errors->has('password') ? 'has-error' : '' }}">
{!! Form::password('password',['placeholder'=>'Password','class' => 'form-control']) !!}
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<ul class="list-unstyled pull-left">
<li><a href="{{url('password/email')}}">Forgot password</a><br></li>
<li><a href="#">Create Account</a></li>
</ul>
<button type="submit" class="btn btn-custom pull-right">Login</button>
{!! Form::close() !!}
</div><!-- #login-form -->
@endif
</nav><!-- #site-navigation -->
</div><!-- #navbar -->
<div id="header-search" class="site-search clearfix">
</div>
</div>
</header>
<!-- Left side column. contains the logo and sidebar -->
<!-- Right side column. Contains the navbar and content of the page -->
@yield('breadcrumb')
<!-- Main content -->
<div id="main" class="site-main clearfix">
<div class="container">
<div class="content-area">
<div class="row">
@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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
@yield('content')
<div id="sidebar" class="site-sidebar col-md-3">
<div class="widget-area">
<section id="section-banner" class="section">
@yield('check')
</section><!-- #section-banner -->
<section id="section-categories" class="section">
@yield('category')
</section><!-- #section-categories -->
</div>
</div><!-- #sidebar -->
</div>
</div>
</div>
</div>
<!-- /.content-wrapper -->
<?php
$footer = App\Model\helpdesk\Theme\Footer::whereId('1')->first();
$footer2 = App\Model\helpdesk\Theme\Footer2::whereId('1')->first();
$footer3 = App\Model\helpdesk\Theme\Footer3::whereId('1')->first();
$footer4 = App\Model\helpdesk\Theme\Footer4::whereId('1')->first();
?>
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="container">
<div class="row col-md-12">
@if($footer->title == null)
@else
<div class="col-md-3">
<div class="widget-area">
<section id="section-about" class="section">
<h2 class="section-title h4 clearfix">{!!$footer->title!!}</h2>
<div class="textwidget">
<p>{!!$footer->footer!!}</p>
</div>
</section><!-- #section-about -->
</div>
</div>
@endif
@if($footer2->title == null)
@else
<div class="col-md-3">
<div class="widget-area">
<section id="section-latest-news" class="section">
<h2 class="section-title h4 clearfix">{!!$footer2->title!!}</h2>
<div class="textwidget">
<p>{!!$footer2->footer!!}</p>
</div>
</section><!-- #section-latest-news -->
</div>
</div>
@endif
@if($footer3->title == null)
@else
<div class="col-md-3">
<div class="widget-area">
<section id="section-newsletter" class="section">
<h2 class="section-title h4 clearfix">{!!$footer3->title!!}</h2>
<div class="textwidget">
<p>{!!$footer3->footer!!}</p>
</div>
</section><!-- #section-newsletter -->
</div>
</div>
@endif
@if($footer4->title == null)
@else
<div class="col-md-3">
<div class="widget-area">
<section id="section-newsletter" class="section">
<h2 class="section-title h4 clearfix">{{$footer4->title}}</h2>
<div class="textwidget">
<p>{!!$footer4->footer!!}</p>
</div>
</section>
</div>
</div>
@endif
</div>
<div class="clearfix"></div>
<hr/>
<div class="row">
<div class="site-info col-md-6">
<p class="text-muted">Copyright &copy; {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>. All rights reserved. Powered by <a href="http://www.faveohelpdesk.com/">Faveo</a></p>
</div>
</div>
</footer><!-- #colophon -->
<!-- jQuery 2.1.3 -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
<!-- Slimscroll -->
<script src="{{asset("lb-faveo/dist/js/superfish.js")}}" type="text/javascript"></script>
<script src="{{asset("lb-faveo/dist/js/mobilemenu.js")}}" type="text/javascript"></script>
<script src="{{asset("lb-faveo/dist/js/know.js")}}" type="text/javascript"></script>
<script src="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js")}}" type="text/javascript"></script>
<script src="{{asset("lb-faveo/plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
<script>
$(function() {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
//Handle starring for glyphicon and font awesome
$(".mailbox-star").click(function(e) {
e.preventDefault();
//detect type
var $this = $(this).find("a > i");
var glyph = $this.hasClass("glyphicon");
var fa = $this.hasClass("fa");
//Switch states
if (glyph) {
$this.toggleClass("glyphicon-star");
$this.toggleClass("glyphicon-star-empty");
}
if (fa) {
$this.toggleClass("fa-star");
$this.toggleClass("fa-star-o");
}
});
});
</script>
</body>
</html>

View File

@@ -0,0 +1,120 @@
@extends('themes.default1.installer.layout.installer')
@section('content')
<h1>Licence Agreement</h1>
<div class="login-box-body">
<!-- form -->
<form action="{{URL::route('postlicence')}}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<!-- box -->
<!-- form-group -->
<div class="form-group" >
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<p>{!! Session::get('fails') !!}</p>
</div>
@endif
PLEASE READ THIS SOFTWARE LICENSE AGREEMENT CAREFULLY BEFORE DOWNLOADING OR USING THE SOFTWARE. BY CLICKING ON THE "ACCEPT" BUTTON, OPENING THE PACKAGE, OR DOWNLOADING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS AGREEMENT, STOP THE INSTALLATION PROCESS AND EXIT.</p>
<!-- form-group -->
<div class="form-group">
<label><input type="checkbox" class="flat-red" id="accept" name="accept1"/> I accept the </label><a href="#" style="color:blue;" data-toggle="modal" data-target="#Edit"> Licence Agreement</a> <br>
</div>
<button value="prev" disabled="" id="access1">Prev</button>
<input type="submit" disabled="" value="Next" id="access"/>
</div>
<br>
</form>
</div>
<div class="modal fade" id="Edit">
<div class="modal-dialog" style="width:60%;height:70%;">
<div class="modal-content">
<div class="box-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidd en="true">&times;</span></button><h3 class="box-title">Licence and Agreements</h3>
</div>
<div class="modal-body">
<pre>
<h4>Open Software License ("OSL") v. 3.0</h4>
This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
Licensed under the Open Software License version 3.0
1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
1. to reproduce the Original Work in copies, either alone or as part of a collective work;
2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
3. to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License;
4. to perform the Original Work publicly; and
5. to display the Original Work publicly.
2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
16. Modification of This License. This License is Copyright (C) 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis">Close</button>
</div>
{!! Form::close() !!}
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</p>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="{{asset("lb-faveo/downloads/bootstrap.min.js")}}" type="text/javascript"></script>
<script type="text/javascript">
var checker = document.getElementById('accept');
var sendbtn = document.getElementById('access');
// when unchecked or checked, run the function
checker.onchange = function(){
if(this.checked){
sendbtn.disabled = false;
} else {
sendbtn.disabled = true;
}
}
$(function() {
$('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
checkboxClass: 'icheckbox_flat-red',
radioClass: 'iradio_flat-red'
});
});
</script>
@stop

Some files were not shown because too many files have changed in this diff Show More