Initial code of commit
This commit is contained in:
22
code/resources/views/404.blade.php
Normal file
22
code/resources/views/404.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
404 Error Page
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
|
||||
<div class="error-page">
|
||||
<h2 class="headline text-yellow"> 404</h2>
|
||||
<div class="error-content">
|
||||
<h3><i class="fa fa-warning text-yellow"></i> Oops! Page not found.</h3>
|
||||
<p>
|
||||
We could not find the page you were looking for.
|
||||
</p>
|
||||
</div><!-- /.error-content -->
|
||||
</div><!-- /.error-page -->
|
||||
</section><!-- /.content -->
|
||||
</div><!-- /.content-wrapper -->
|
||||
79
code/resources/views/app.blade.php
Normal file
79
code/resources/views/app.blade.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Laravel</title>
|
||||
|
||||
<link href="{{ asset('/css/app.css') }}" rel="stylesheet">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href='//fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'>
|
||||
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||
<span class="sr-only">Toggle Navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#">Laravel</a>
|
||||
</div>
|
||||
|
||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="{{ url('dashboard') }}">Home</a></li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="dropdown">
|
||||
<a href="{{ url('groups') }}" >Groups</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="{{ url('departments') }}">Departments</a></li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="dropdown">
|
||||
<a href="{{ url('teams') }}" >Teams</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="dropdown">
|
||||
<a href="{{ url('agents') }}" >Agents</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
@if (Auth::guest())
|
||||
<li><a href="{{ url('/auth/login') }}">Login</a></li>
|
||||
<li><a href="{{ url('/auth/register') }}">Register</a></li>
|
||||
@else
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{{ Auth::user()->name }} <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<li><a href="{{ url('/auth/logout') }}">Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@yield('content')
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
9
code/resources/views/auth/activate.blade.php
Normal file
9
code/resources/views/auth/activate.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
Hello{{$username}}, <br><br>
|
||||
|
||||
please activate your account using the following link. <br><br>
|
||||
|
||||
-----<br>
|
||||
|
||||
{{$link}}
|
||||
|
||||
<br>
|
||||
48
code/resources/views/auth/login.blade.php
Normal file
48
code/resources/views/auth/login.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@extends('themes.default1.layouts.login')
|
||||
|
||||
@section('body')
|
||||
|
||||
<body class="login-page">
|
||||
<div class="login-box">
|
||||
|
||||
<div class="login-box-body">
|
||||
<p class="login-box-msg">Sign in to start your session</p>
|
||||
<!-- form open -->
|
||||
{!! Form::open(['action'=>'Auth\AuthController@postLogin', 'method'=>'post']) !!}
|
||||
<!-- Email -->
|
||||
<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>
|
||||
<div class="row">
|
||||
<div class="col-xs-8">
|
||||
<div class="checkbox icheck">
|
||||
<label>
|
||||
<input type="checkbox" name="remember"> 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>
|
||||
|
||||
|
||||
<a href="{{url('password/email')}}">I forgot my password</a><br>
|
||||
<a href="{{url('auth/register')}}" class="text-center">Register a new membership</a>
|
||||
|
||||
</div><!-- /.login-box-body -->
|
||||
</div><!-- /.login-box -->
|
||||
|
||||
@stop
|
||||
50
code/resources/views/auth/password.blade.php
Normal file
50
code/resources/views/auth/password.blade.php
Normal file
@@ -0,0 +1,50 @@
|
||||
@extends('app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{{Lang::get('lang.recoverpass')}}</div>
|
||||
<div class="panel-body">
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<strong>{{Lang::get('lang.woops')}}</strong> {{Lang::get('lang.theirisproblem')}}<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form class="form-horizontal" role="form" method="POST" action="{{ url('/password/email') }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label">{{Lang::get('lang.email')}}</label>
|
||||
<div class="col-md-6">
|
||||
<input type="email" class="form-control" name="email" value="{{ old('email') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-6 col-md-offset-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{Lang::get('lang.sendpassword')}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
73
code/resources/views/auth/register.blade.php
Normal file
73
code/resources/views/auth/register.blade.php
Normal file
@@ -0,0 +1,73 @@
|
||||
@extends('themes.default1.layouts.register')
|
||||
@section('body')
|
||||
|
||||
<!-- openn a form -->
|
||||
|
||||
<body class="login-page">
|
||||
<div class="login-box">
|
||||
|
||||
<div class="login-box-body">
|
||||
<p class="login-box-msg">Registration</p>
|
||||
<!-- form open -->
|
||||
{!! Form::open(['action'=>'Auth\AuthController@postRegister', 'method'=>'post']) !!}
|
||||
|
||||
<!-- fullname -->
|
||||
<div class="form-group has-feedback {{ $errors->has('full_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::text('full_name',null,['placeholder'=>'Full Name','class' => 'form-control']) !!}
|
||||
{!! $errors->first('full_name', '<spam class="help-block">:message</spam>') !!}
|
||||
<span class="glyphicon glyphicon-user form-control-feedback"></span>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Email -->
|
||||
<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>
|
||||
|
||||
<div class="form-group has-feedback {{ $errors->has('password_confirmation') ? 'has-error' : '' }}">
|
||||
{!! Form::password('password_confirmation',['placeholder'=>'Retype Password','class' => 'form-control']) !!}
|
||||
{!! $errors->first('password_confirmation', '<spam class="help-block">:message</spam>') !!}
|
||||
<span class="glyphicon glyphicon-log-in form-control-feedback"></span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-8">
|
||||
<div class="checkbox icheck">
|
||||
<label>
|
||||
<input type="checkbox"> I agree to the <a href="#">terms</a>
|
||||
</label>
|
||||
</div>
|
||||
</div><!-- /.col -->
|
||||
<div class="col-xs-4">
|
||||
<button type="submit" class="btn btn-primary btn-block btn-flat">Register</button>
|
||||
</div><!-- /.col -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<a href="{{url('auth/login')}}" class="text-center">I already have a membership</a>
|
||||
|
||||
</div><!-- /.login-box-body -->
|
||||
</div><!-- /.login-box -->
|
||||
{{!! Form::close()!!}}
|
||||
|
||||
|
||||
|
||||
@stop
|
||||
|
||||
|
||||
59
code/resources/views/auth/reset.blade.php
Normal file
59
code/resources/views/auth/reset.blade.php
Normal file
@@ -0,0 +1,59 @@
|
||||
@extends('app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Reset Password</div>
|
||||
<div class="panel-body">
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form class="form-horizontal" role="form" method="POST" action="{{ url('/password/reset') }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label">E-Mail Address</label>
|
||||
<div class="col-md-6">
|
||||
<input type="email" class="form-control" name="email" value="{{ old('email') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label">Password</label>
|
||||
<div class="col-md-6">
|
||||
<input type="password" class="form-control" name="password">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label">Confirm Password</label>
|
||||
<div class="col-md-6">
|
||||
<input type="password" class="form-control" name="password_confirmation">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-6 col-md-offset-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
Reset Password
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
14
code/resources/views/emails/Ticket_Create.blade.php
Normal file
14
code/resources/views/emails/Ticket_Create.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
---Reply above this line---<br/><br/><br/>
|
||||
|
||||
hello {{$name}} <br/><br/>
|
||||
Your ticket have been created please visit this link for your ticket query.<br/><br/>
|
||||
|
||||
Ticket Details<br/>
|
||||
Ticket ID: <b>{{$ticket_number}}</b><br/>
|
||||
Department: Dedicated Hosting<br/>
|
||||
Status: Open<br/>
|
||||
Priority: Normal<br/>
|
||||
|
||||
dgsvhtdf8
|
||||
gfiyydiu'g
|
||||
f
|
||||
13
code/resources/views/emails/Ticket_Reply.blade.php
Normal file
13
code/resources/views/emails/Ticket_Reply.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
---Reply above this line---<br/><br/><br/>
|
||||
|
||||
hello {{$name}} <br/><br/>
|
||||
Your ticket have been created please visit this link for your ticket query.<br/><br/>
|
||||
|
||||
fngvy
|
||||
y
|
||||
u
|
||||
y
|
||||
y
|
||||
b
|
||||
gguycuuv
|
||||
]bu
|
||||
11
code/resources/views/emails/pass.blade.php
Normal file
11
code/resources/views/emails/pass.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
hello {{$name}} <br/><br/>
|
||||
|
||||
Your account has been created. <br/>
|
||||
Use this password to login to this system. {{$password}}<br/><br/>
|
||||
|
||||
nbfgnbgbdbsdb
|
||||
y
|
||||
'gog
|
||||
i
|
||||
o
|
||||
ioi'
|
||||
1
code/resources/views/emails/password.blade (2).php
Normal file
1
code/resources/views/emails/password.blade (2).php
Normal file
@@ -0,0 +1 @@
|
||||
Click here to reset your password: {{ url('password/reset/'.$token) }}
|
||||
1
code/resources/views/emails/password.blade.php
Normal file
1
code/resources/views/emails/password.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
Click here to reset your password: {{ url('password/reset/'.$token) }}
|
||||
41
code/resources/views/errors/503.blade.php
Normal file
41
code/resources/views/errors/503.blade.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<html>
|
||||
<head>
|
||||
<link href='//fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
|
||||
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
color: #B0BEC5;
|
||||
display: table;
|
||||
font-weight: 100;
|
||||
font-family: 'Lato';
|
||||
}
|
||||
|
||||
.container {
|
||||
text-align: center;
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 72px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<div class="title">Be right back.</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
17
code/resources/views/home.blade.php
Normal file
17
code/resources/views/home.blade.php
Normal file
@@ -0,0 +1,17 @@
|
||||
@extends('app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-md-offset-1">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Home</div>
|
||||
|
||||
<div class="panel-body">
|
||||
You are logged in!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
9
code/resources/views/themes/check.blade.php
Normal file
9
code/resources/views/themes/check.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
{!! Form::open(['url'=>'postcheck/'.$table->agent_id , 'method' => 'post']) !!}
|
||||
@while (list($key, $val) = each($teams))
|
||||
<input type="checkbox" name="team_id[]" value="<?php echo $val; ?>" <?php if (in_array($val, $assign)) echo( 'checked'); ?> ><?php echo $key; ?><br/>
|
||||
@endwhile
|
||||
|
||||
<input type="submit" value="submit">
|
||||
{!!Form::close()!!}
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@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\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 -->
|
||||
@@ -0,0 +1,115 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
@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,['disabled'=>'disabled','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 -->
|
||||
@@ -0,0 +1,125 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@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 -->
|
||||
|
||||
<section class="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.organization')}}</h2><a href="{{route('organizations.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">×</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">×</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.user')}}</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($orgs as $org)
|
||||
<tr>
|
||||
<td><a href="{{route('organizations.show', $org->id)}}"> {{$org -> name }}</a></td>
|
||||
<td></td>
|
||||
<td>{{$org -> created_at}}</td>
|
||||
<td>{{$org -> updated_at}}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['organizations.destroy', $org->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@stop
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,123 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@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')
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
|
||||
<h2 class="box-title">{{$orgs->name}}</h2></div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="col-xs-4 form-group">
|
||||
|
||||
<strong>{{Lang::get('lang.name')}}</strong>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-4">
|
||||
|
||||
<a href="{{route('organizations.edit', $orgs->id)}}"> {{$orgs -> name }}</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="col-xs-4 form-group">
|
||||
|
||||
<strong>{{Lang::get('lang.account_manager')}}</strong>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-4">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="col-xs-4 form-group">
|
||||
|
||||
<strong>{{Lang::get('lang.created')}}</strong>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-4">
|
||||
|
||||
{{$orgs -> created_at}}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="col-xs-4 form-group">
|
||||
|
||||
<strong>{{Lang::get('lang.last_updated')}}</strong>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-4">
|
||||
|
||||
{{$orgs -> updated_at}}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@stop
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,173 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@section('Tickets')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('ticket-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('answered')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('content')
|
||||
<h3>
|
||||
Tickets
|
||||
</h3>
|
||||
|
||||
<!-- Main content -->
|
||||
<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>
|
||||
<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)->where('isanswered', '=', '1')->get());
|
||||
if ($counted < 10) {
|
||||
echo $counted . "/" . $counted;
|
||||
} else {
|
||||
echo "10/" . $counted;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" table-responsive mailbox-messages" id="refresh">
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<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 id="hello">
|
||||
<?php $tickets = App\Model\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 1)->paginate(10);?>
|
||||
|
||||
@foreach ($tickets as $ticket )
|
||||
<tr>
|
||||
<td><input type="checkbox" value="{{$ticket->id}}"/></td>
|
||||
<?php $title = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();?>
|
||||
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}">{{$title->title}}</a></td>
|
||||
<td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
|
||||
<td class="mailbox-last-reply">client</td>
|
||||
<td class="mailbox-replies">11</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-activity">11h 59m 23s</td>
|
||||
<td class="mailbox-date">5h 23m 03s</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table><!-- /.table -->
|
||||
<div class="pull-right">
|
||||
<?php echo $tickets->setPath(url('/ticket'))->render();?>
|
||||
</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('answered #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
|
||||
@@ -0,0 +1,175 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@section('Tickets')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('ticket-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('closed')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('content')
|
||||
<!-- <section class="content-header"> -->
|
||||
<h3>
|
||||
Tickets
|
||||
</h3>
|
||||
<!-- </section> -->
|
||||
|
||||
<!-- Main content -->
|
||||
<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>
|
||||
<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)->where('status', '<', 4)->get());
|
||||
if ($counted < 10) {
|
||||
echo $counted . "/" . $counted;
|
||||
} else {
|
||||
echo "10/" . $counted;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" table-responsive mailbox-messages" id="refresh">
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<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 id="hello">
|
||||
<?php $tickets = App\Model\Ticket\Tickets::where('status', '>', 1)->where('status', '<', 4)->paginate(2);?>
|
||||
|
||||
@foreach ($tickets as $ticket )
|
||||
<tr>
|
||||
<td><input type="checkbox" value="{{$ticket->id}}"/></td>
|
||||
<?php $title = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();?>
|
||||
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}">{{$title->title}}</a></td>
|
||||
<td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
|
||||
<td class="mailbox-last-reply">client</td>
|
||||
<td class="mailbox-replies">11</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-activity">11h 59m 23s</td>
|
||||
<td class="mailbox-date">5h 23m 03s</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table><!-- /.table -->
|
||||
<div class="pull-right">
|
||||
<?php echo $tickets->setPath(url('/ticket'))->render();?>
|
||||
</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('closed #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
|
||||
@@ -0,0 +1,254 @@
|
||||
<!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("downloads/bootstrap.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Font Awesome Icons -->
|
||||
<link href="{{asset("downloads/font-awesome.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Ionicons -->
|
||||
<link href="{{asset("downloads/ionicons.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- fullCalendar 2.2.5-->
|
||||
<link href="{{asset("plugins/fullcalendar/fullcalendar.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("plugins/fullcalendar/fullcalendar.print.css")}}" rel="stylesheet" type="text/css" media='print' />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("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="{{asset("dist/css/skins/_all-skins.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- iCheck -->
|
||||
<link href="{{asset("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("dist/css/tabby.css")}}" type="text/css">
|
||||
<link href="{{asset("downloads/jquerysctipttop.css")}}" rel="stylesheet" type="text/css">
|
||||
<link href="{{asset("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="{{asset("dist/css/tabby.css")}}" type="text/css"> -->
|
||||
|
||||
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
|
||||
|
||||
<link href="{{asset("dist/css/editor.css")}}" type="text/css" rel="stylesheet"/>
|
||||
<script src="{{asset("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]-->
|
||||
</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 @yield('nav1') ><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">
|
||||
|
||||
@yield('sidebar')
|
||||
|
||||
<li class="header">TICKETS</li>
|
||||
<li>
|
||||
<a href="{{ route('ticket') }}">
|
||||
<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:#ddd ;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 @yield('Home') ><a href="#">Home</a></li>
|
||||
<li @yield('My') ><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>
|
||||
|
||||
|
||||
@yield('content')
|
||||
|
||||
</div><!-- /.content-wrapper -->
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b>Version</b> 2.0
|
||||
</div>
|
||||
<strong>Copyright © 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="{{asset("downloads/jquery.min.js")}}"></script>
|
||||
<!-- Bootstrap 3.3.2 JS -->
|
||||
<script src="{{asset("downloads/bootstrap.min.js")}}" type="text/javascript"></script>
|
||||
<!-- Slimscroll -->
|
||||
<script src="{{asset("plugins/slimScroll/jquery.slimscroll.min.js")}}" type="text/javascript"></script>
|
||||
<!-- FastClick -->
|
||||
<script src='{{asset("plugins/fastclick/fastclick.min.js")}}'></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="{{asset("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("plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
|
||||
<!-- Page Script -->
|
||||
<!-- // <script src="../plugins/jQuery/jQuery-2.1.3.min.js"></script> -->
|
||||
<script src="{{asset("dist/js/tabby.js")}}"></script>
|
||||
|
||||
<script src="{{asset("dist/js/editor.js")}}"></script>
|
||||
|
||||
@yield('footer')
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,174 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@section('Tickets')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('ticket-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('myticket')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<!-- <section class="content-header"> -->
|
||||
<h3>
|
||||
Tickets
|
||||
</h3>
|
||||
<!-- </section> -->
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Inbox </h3> <small></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)->where('assigned_to', '=', Auth::user()->id)->get());
|
||||
if ($counted < 10) {
|
||||
echo $counted . "/" . $counted;
|
||||
} else {
|
||||
echo "10/" . $counted;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" table-responsive mailbox-messages" id="refresh">
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<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 id="hello">
|
||||
<?php $tickets = App\Model\Ticket\Tickets::where('status', '=', 1)->where('assigned_to', '=', Auth::user()->id)->paginate(2);?>
|
||||
|
||||
@foreach ($tickets as $ticket )
|
||||
<tr>
|
||||
<td><input type="checkbox" value="{{$ticket->id}}"/></td>
|
||||
<?php $title = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();?>
|
||||
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}">{{$title->title}}</a></td>
|
||||
<td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
|
||||
<td class="mailbox-last-reply">client</td>
|
||||
<td class="mailbox-replies">11</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-activity">11h 59m 23s</td>
|
||||
<td class="mailbox-date">5h 23m 03s</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table><!-- /.table -->
|
||||
<div class="pull-right">
|
||||
<?php echo $tickets->setPath(url('/ticket'))->render();?>
|
||||
</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('myticket #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
|
||||
205
code/resources/views/themes/default1/Agent/ticket/new.blade.php
Normal file
205
code/resources/views/themes/default1/Agent/ticket/new.blade.php
Normal file
@@ -0,0 +1,205 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@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">×</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">×</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="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-6">
|
||||
<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="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-6">
|
||||
<div class="form-group">
|
||||
<label>Help Topic:</label>
|
||||
<select class="form-control" name="helptopic">
|
||||
<!-- <option>--select--</option> -->
|
||||
<?php $helptopic = App\Model\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-6">
|
||||
<div class="form-group">
|
||||
<label>Department:</label>
|
||||
<select class="form-control" name="dept">
|
||||
<!-- <option>--select--</option> -->
|
||||
<?php $dept = App\Model\Agent\Department::all();?>
|
||||
@foreach($dept as $dep)
|
||||
<option value="{!! $dep->id !!}">{!! $dep->name !!}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
{!! $errors->first('dept', '<spam class="help-block text-red">:message</spam>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>SLA Plan:</label>
|
||||
<select class="form-control" name="sla">
|
||||
<!-- <option>--select--</option> -->
|
||||
<?php $sla_plan = App\Model\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-4">
|
||||
<div class="form-group">
|
||||
<label>Due Date:</label>
|
||||
<input type="text" class="form-control" name="duedate" id="datemask">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Assign To:</label>
|
||||
<select class="form-control" name="assignto">
|
||||
<!-- <option>--select--</option> -->
|
||||
<?php $agents = App\User::all();?>
|
||||
@foreach($agents as $agent)
|
||||
<option value="{!! $agent->id !!}">{!! $agent->user_name !!}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ticket details -->
|
||||
<div class="form-group">
|
||||
<h4><b>Ticket Detail<b></h4>
|
||||
<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">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<label>Detail:</label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<textarea class="form-control" name="body"></textarea>
|
||||
{!! $errors->first('body', '<spam class="help-block text-red">:message</spam>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<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\Ticket\Ticket_Priority::all();?>
|
||||
@foreach($Priority as $priority)
|
||||
<option value="{{$priority->priority_id}}">{!! $priority->priority !!}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
{!! $errors->first('priority', '<spam class="help-block text-red">:message</spam>') !!}
|
||||
</div>
|
||||
</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
|
||||
175
code/resources/views/themes/default1/Agent/ticket/open.blade.php
Normal file
175
code/resources/views/themes/default1/Agent/ticket/open.blade.php
Normal file
@@ -0,0 +1,175 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@section('Tickets')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('ticket-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('open')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<!-- <section class="content-header"> -->
|
||||
<h3>
|
||||
Tickets
|
||||
</h3>
|
||||
<!-- </section> -->
|
||||
|
||||
<!-- Main content -->
|
||||
<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>
|
||||
<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 < 10) {
|
||||
echo $counted . "/" . $counted;
|
||||
} else {
|
||||
echo "10/" . $counted;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" table-responsive mailbox-messages" id="refresh">
|
||||
<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>Replies</th>
|
||||
<th>Last Activity</th>
|
||||
<th>Reply Due</th>
|
||||
</thead>
|
||||
<tbody id="hello">
|
||||
<?php $tickets = App\Model\Ticket\Tickets::where('status', '=', 1)->paginate(10);?>
|
||||
|
||||
@foreach ($tickets as $ticket )
|
||||
<tr>
|
||||
<td><input type="checkbox" value="{{$ticket->id}}"/></td>
|
||||
<?php $title = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();?>
|
||||
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}">{{$title->title}}</a></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">client</td>
|
||||
<td class="mailbox-replies">11</td>
|
||||
<td class="mailbox-last-activity">11h 59m 23s</td>
|
||||
<td class="mailbox-date">5h 23m 03s</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table><!-- /.table -->
|
||||
<div class="pull-right">
|
||||
<?php echo $tickets->setPath(url('/ticket'))->render();?>
|
||||
</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('open #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
|
||||
@@ -0,0 +1,174 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@section('Tickets')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('ticket-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('overdue')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<!-- <section class="content-header"> -->
|
||||
<h3>
|
||||
Tickets
|
||||
</h3>
|
||||
<!-- </section> -->
|
||||
|
||||
<!-- Main content -->
|
||||
<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>
|
||||
<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)->where('isoverdue', '=', 1)->get());
|
||||
if ($counted < 10) {
|
||||
echo $counted . "/" . $counted;
|
||||
} else {
|
||||
echo "10/" . $counted;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" table-responsive mailbox-messages" id="refresh">
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<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 id="hello">
|
||||
<?php $tickets = App\Model\Ticket\Tickets::where('status', '=', 1)->where('isoverdue', '=', 1)->paginate(2);?>
|
||||
|
||||
@foreach ($tickets as $ticket )
|
||||
<tr>
|
||||
<td><input type="checkbox" value="{{$ticket->id}}"/></td>
|
||||
<?php $title = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();?>
|
||||
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}">{{$title->title}}</a></td>
|
||||
<td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
|
||||
<td class="mailbox-last-reply">client</td>
|
||||
<td class="mailbox-replies">11</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-activity">11h 59m 23s</td>
|
||||
<td class="mailbox-date">5h 23m 03s</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table><!-- /.table -->
|
||||
<div class="pull-right">
|
||||
<?php echo $tickets->setPath(url('/ticket'))->render();?>
|
||||
</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('overdue #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
|
||||
@@ -0,0 +1,51 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<!-- <link href="{{asset("downloads/bootstrap.min.css")}}" rel="stylesheet" type="text/css" /> -->
|
||||
<link href="{{asset("dist/css/AdminLTE.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<h2>
|
||||
<div class="logo"><b>Faveo</b>HELP DESK</div><hr>
|
||||
</h2>
|
||||
|
||||
<h4>{{$thread->title}}</h4><br/>
|
||||
|
||||
|
||||
<?php $user = App\User::where('id', '=', $tickets->user_id)->first(); ?>
|
||||
<?php $response = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->get(); ?>
|
||||
@foreach($response as $last)
|
||||
<?php $ResponseDate = $last->created_at; ?>
|
||||
@endforeach
|
||||
|
||||
<?php $status = App\Model\Ticket\Ticket_Status::where('id', '=', $tickets->status)->first(); ?>
|
||||
<?php $priority = App\Model\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first(); ?>
|
||||
<?php $help_topic = App\Model\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?>
|
||||
<?php $help_topic = App\Model\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->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>{{$help_topic->department}}</td></tr>
|
||||
<tr><td><b>Email:</b></td> <td>{{$user->email}}</td></tr>
|
||||
<tr><td><b>Phone:</b></td> <td>{{$thread->user_id}}</td></tr>
|
||||
<tr><td><b>Source:</b></td> <td>{{$thread->ip_address}}</td></tr>
|
||||
<tr><td><b>Help Topic:</b></td> <td>{{$help_topic->topic}}</td></tr>
|
||||
<tr><td><b>Last Message:</b></td> <td>{{$last->poster}}</td></tr>
|
||||
</table>
|
||||
|
||||
<?php $conversations = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->get(); ?>
|
||||
|
||||
@foreach($conversations as $conversation)
|
||||
<br/><hr>
|
||||
<div style="color:green;" class="pull-right">{!! $conversation->poster !!}</div><br/><br/>
|
||||
{!! $conversation->body !!}<br/><br/>
|
||||
<strong>Date:</strong> {!! $thread->created_at !!}<br/>
|
||||
|
||||
@endforeach
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,190 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@section('Tickets')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('ticket-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('ticket')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('content')
|
||||
<!-- <section class="content-header"> -->
|
||||
<h3>
|
||||
Tickets
|
||||
</h3>
|
||||
<!-- </section> -->
|
||||
|
||||
<!-- Main content -->
|
||||
<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>
|
||||
<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 < 10) {
|
||||
echo $counted . "/" . $counted;
|
||||
} else {
|
||||
echo "10/" . $counted;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" table-responsive mailbox-messages" id="refresh">
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<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 id="hello">
|
||||
<?php $tickets = App\Model\Ticket\Tickets::where('status', '=', 1)->paginate(2);?>
|
||||
|
||||
@foreach ($tickets as $ticket )
|
||||
<tr>
|
||||
<td><input type="checkbox" value="{{$ticket->id}}"/></td>
|
||||
<?php $title = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();?>
|
||||
<td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}">{{$title->title}}</a></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">client</td>
|
||||
<td class="mailbox-replies">11</td>
|
||||
<td class="mailbox-last-activity">11h 59m 23s</td>
|
||||
<td class="mailbox-date">5h 23m 03s</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table><!-- /.table -->
|
||||
<div class="pull-right">
|
||||
<?php echo $tickets->setPath(url('/ticket'))->render();?>
|
||||
</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
|
||||
@@ -0,0 +1,834 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@section('Tickets')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('ticket-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
<?php $user = App\User::where('id', '=', $tickets->user_id)->first();?>
|
||||
<?php $assignedto = App\User::where('id', '=', $tickets->assigned_to)->first();?>
|
||||
|
||||
@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->user_name}}</b>
|
||||
</a>
|
||||
</li>
|
||||
<li >
|
||||
<a href="">
|
||||
@if($tickets->assigned_to > 0)
|
||||
<span>ASSIGNED TO</span>
|
||||
</br> <b>{{$assignedto->user_name}}</b><br/>{{$assignedto->email}}
|
||||
@else
|
||||
<span>UNASSIGNED</span>
|
||||
@endif
|
||||
</a>
|
||||
</li>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<!-- Main content -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title" id="refresh2"><i class="fa fa-user"> </i> {!! $thread->title !!} </h3>
|
||||
<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" id="Edit_Ticket" data-toggle="modal" data-target="#Edit"><i class="fa fa-edit" style="color:green;"> </i> Edit</button>
|
||||
<a href="{{url('ticket/print/'.$tickets->id)}}" target="_blank" class="btn btn-default"><i class="fa fa-print" style="color:blue;"> </i> Print</a>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="d1"><i class="fa fa-exchange" style="color:teal;" id="hidespin"> </i><i class="fa fa-spinner fa-spin" style="color:teal; display:none;" id="spin"></i>
|
||||
Change Status <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li id="open"><a href="#"><i class="fa fa-folder-open-o" style="color:red;"> </i>Open</a></li>
|
||||
<li id="close"><a href="#"><i class="fa fa-check" style="color:green;"> </i>Close</a></li>
|
||||
<li id="resolved"><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" id="d2"><i class="fa fa-cogs" style="color:teal;"> </i>
|
||||
More <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-right">
|
||||
<!-- <li data-toggle="modal" data-target="#ChangeOwner"><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 id="delete"><a href="#"><i class="fa fa-trash-o" style="color:red;"> </i>Delete Ticket</a></li>
|
||||
<li data-toggle="modal" data-target="#banemail"><a href="#" ><i class="fa fa-ban" style="color:red;" > </i> Ban Email</a></li>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ticket details Table -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<section class="content" >
|
||||
<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', '=', $sla)->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"id="refresh">
|
||||
<tr><td><b>Status:</b></td> <div><?php $status = App\Model\Ticket\Ticket_Status::where('id', '=', $tickets->status)->first();?><td title="{{$status->properties}}">{{$status->state}}</td></div></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>
|
||||
<tr><td><b>Email:</b></td> <td>{{$user->email}}</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-hover">
|
||||
<tr><td><b>Phone:</b></td> <td>{{$thread->user_id}}</td></tr>
|
||||
<tr><td><b>Source:</b></td> <td>{{$thread->ip_address}}</td></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>
|
||||
</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;" id="aa"><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" data-toggle="modal" data-target="#{{$tickets->id}}assign"><i class="fa fa-hand-o-right" style="color:orange;"> </i> 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" data-toggle="modal" data-target="#surrender"> <i class="fa fa-arrows-alt" style="color:red;"> </i> Surrender</button>
|
||||
</div>
|
||||
<!-- ticket reply -->
|
||||
|
||||
{!! Form::model($tickets->id, ['id'=>'form3','method' => 'PATCH'] )!!}
|
||||
<div id="t1">
|
||||
<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="col-md-2">
|
||||
<label>Response:</label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<select class="form-control" style="width:55%" name="CannedResponse">
|
||||
<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="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:white;"> </i> Update</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{!!Form::close()!!}
|
||||
|
||||
<!-- Internal Content -->
|
||||
<div id="t2" style="display:none">
|
||||
{!! Form::model($tickets->id, ['id'=>'form2','method' => 'PATCH'] )!!}
|
||||
<div id="t4">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
<div class="col-md-2">
|
||||
<label>Internal Note</label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<textarea name="InternalContent"></textarea>
|
||||
{!! $errors->first('InternalContent', '<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:white;"> </i> Update</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- ticket foreward -->
|
||||
<!-- <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>
|
||||
<!-- ticket conversations -->
|
||||
<!-- row -->
|
||||
<div class="row" >
|
||||
<div id="refresh1">
|
||||
<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(10);
|
||||
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" 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:{!! $conversation->color !!};color:#fff;"><a href="#" style="color:#fff;">{{$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/' . $tickets->id))->render();?>
|
||||
</ul>
|
||||
</ul>
|
||||
</div><!-- /.col -->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- </section>/.content -->
|
||||
<!-- page modals -->
|
||||
<div>
|
||||
<!-- Edit Ticket modal -->
|
||||
<div class="modal fade" id="Edit">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::model($tickets->id, ['id'=>'form','method' => 'PATCH'] )!!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">Edit <b>({!! $tickets->ticket_number !!})</b>({!! $user->user_name !!})</h4>
|
||||
</div>
|
||||
<div class="modal-body" id="hide">
|
||||
<div class="form-group">
|
||||
<label>Title</label>
|
||||
<input type="text" name="subject" class="form-control" value="{{$thread->title}}" required>
|
||||
{!! $errors->first('subject', '<spam class="help-block text-red">:message</spam>') !!}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Body</label>
|
||||
<textarea name="body" class="form-control" required>{!! $thread->body !!}</textarea>
|
||||
{!! $errors->first('body', '<spam class="help-block text-red">:message</spam>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div id="show" style="display:none;">
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<img src="{{asset("dist/img/gifloader.gif")}}"><br/><br/><br/>
|
||||
</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 -->
|
||||
|
||||
<!-- ban email modal -->
|
||||
<div class="modal fade" id="banemail">
|
||||
<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">×</span></button>
|
||||
<h4 class="modal-title">Ban Email</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
Are you sure to ban {!! $user->email !!}
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">Close</button>
|
||||
<button id="ban" type="button" class="btn btn-warning pull-right" >Ban Email</button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<!-- change Owner Modal -->
|
||||
<div class="modal fade" id="ChangeOwner">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::model($tickets->id, ['id'=>'form4','method' => 'PATCH'] )!!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">Change Owner for ticket <b>#{!! $tickets->ticket_number !!}</b></h4>
|
||||
</div>
|
||||
<div class="modal-body" >
|
||||
<div class="form-group has-feedback">
|
||||
<!-- <input type="text" class="form-control" id="search" name="search" placeholder="Search Users"\> -->
|
||||
<?php $users = App\User::where('role', '=', 'user')->get();?>
|
||||
Add another Owner
|
||||
<select name="SelectOwner" class="form-control">
|
||||
@foreach($users as $user)
|
||||
@if($user->id !== $tickets->user_id)
|
||||
<option value="{!! $user->user_name !!}">{!! $user->user_name !!}({!! $user->email !!})</option>
|
||||
@endif
|
||||
@endforeach
|
||||
</select>
|
||||
<!-- <spam class="glyphicon glyphicon-search form-control-feedback"></spam> -->
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-2"><spam class="glyphicon glyphicon-user fa-5x"></spam></div>
|
||||
<div class="col-md-10">
|
||||
<?php $user = App\User::where('id', '=', $tickets->user_id)->first();?>
|
||||
|
||||
<b>User Details</b><br/>
|
||||
{!! $user->user_name !!}<br/>{!! $user->email !!}<br/>
|
||||
@if($user->phone != null)
|
||||
<b>Contact Informations</b><br/>
|
||||
{!! $user->phone !!}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">Close</button>
|
||||
<button id="ban" type="button" class="btn btn-warning pull-right" >Submit</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<!-- Ticket Assign Modal -->
|
||||
<div class="modal fade" id="{{$tickets->id}}assign">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['id'=>'form1','method' => 'PATCH'] )!!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">Delete</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Whome do you want to assign ticket?</p>
|
||||
|
||||
<select id="asssign" class="form-control" name="user">
|
||||
<?php $assign = App\User::where('role', '=', 'agent')->get();?>
|
||||
@foreach($assign as $user)
|
||||
<option value="{{$user->email}}">{{$user->user_name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</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 -->
|
||||
|
||||
<!-- Surrender Modal -->
|
||||
<div class="modal fade" id="surrender">
|
||||
<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">×</span></button>
|
||||
<h4 class="modal-title">Delete</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Are you sure you want to surrender this Ticket?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis6">Close</button>
|
||||
<button type="button" class="btn btn-warning pull-right" id="Surrender">Surrender</button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
</div>
|
||||
|
||||
<!-- scripts used on page -->
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($) {
|
||||
// Close a ticket
|
||||
$('#close').on('click', function(e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "../ticket/close/{{$tickets->id}}",
|
||||
|
||||
beforeSend: function() {
|
||||
$("#hidespin").hide();
|
||||
$("#spin").show();
|
||||
},
|
||||
|
||||
success: function(response) {
|
||||
$("#refresh").load("../thread/{{$tickets->id}} #refresh");
|
||||
$("#spin").hide();
|
||||
$("#hidespin").show();
|
||||
$("#d1").trigger("click");
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
// Resolved a ticket
|
||||
$('#resolved').on('click', function(e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "../ticket/resolve/{{$tickets->id}}",
|
||||
success: function(response) {
|
||||
$("#refresh").load("../thread/{{$tickets->id}} #refresh");
|
||||
$("#d1").trigger("click");
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
// Open a ticket
|
||||
$('#open').on('click', function(e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "../ticket/open/{{$tickets->id}}",
|
||||
success: function(response) {
|
||||
$("#refresh").load("../thread/{{$tickets->id}} #refresh");
|
||||
$("#d1").trigger("click");
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
// delete a ticket
|
||||
$('#delete').on('click', function(e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "../ticket/delete/{{$tickets->id}}",
|
||||
success: function(response) {
|
||||
$("#refresh").load("../thread/{{$tickets->id}} #refresh");
|
||||
$("#d2").trigger("click");
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
// ban email
|
||||
$('#ban').on('click', function(e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "../email/ban/{{$tickets->id}}",
|
||||
success: function(response) {
|
||||
$("#dismis2").trigger("click");
|
||||
$("#refresh").load("../thread/{{$tickets->id}} #refresh");
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
// internal note
|
||||
$('#internal').click(function() {
|
||||
$('#t1').hide();
|
||||
$('#t2').show();
|
||||
});
|
||||
|
||||
// comment a ticket
|
||||
$('#aa').click(function() {
|
||||
$('#t1').show();
|
||||
$('#t2').hide();
|
||||
});
|
||||
|
||||
// Edit a ticket
|
||||
$('#form').on('submit', function() {
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "http://localhost/faveogit/public/ticket/post/edit/{{$tickets->id}}",
|
||||
dataType: "html",
|
||||
data: $(this).serialize(),
|
||||
beforeSend: function() {
|
||||
$("#hide").hide();
|
||||
$("#show").show();
|
||||
},
|
||||
success: function(response) {
|
||||
$("#show").hide();
|
||||
$("#hide").show();
|
||||
$("#dismis").trigger("click");
|
||||
$("#refresh1").load("../thread/{{$tickets->id}} #refresh1");
|
||||
$("#refresh2").load("../thread/{{$tickets->id}} #refresh2");
|
||||
if (response == 1)
|
||||
{
|
||||
alert('Updated successfully');
|
||||
}
|
||||
else if (response == 0)
|
||||
{
|
||||
alert('Please check all your fields');
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
// Assign a ticket
|
||||
$('#form1').on('submit', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "../ticket/assign/{{ $tickets->id }}",
|
||||
dataType: "html",
|
||||
data: $(this).serialize(),
|
||||
success: function(response) {
|
||||
$("#dismis4").trigger("click");
|
||||
// $("#RefreshAssign").load( "../thread/{{$tickets->id}} #RefreshAssign");
|
||||
// $("#General").load( "../thread/{{$tickets->id}} #General");
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
// Internal Note
|
||||
$('#form2').on('submit', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "../internal/note/{{ $tickets->id }}",
|
||||
dataType: "html",
|
||||
data: $(this).serialize(),
|
||||
success: function(response) {
|
||||
|
||||
if (response == 1)
|
||||
{
|
||||
$("#refresh1").load("../thread/{{$tickets->id}} #refresh1");
|
||||
$("#t4").load("../thread/{{$tickets->id}} #t4");
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('fail');
|
||||
// $( "#dismis4" ).trigger( "click" );
|
||||
}
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
// Ticket Reply
|
||||
$('#form3').on('submit', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "../thread/reply/{{ $tickets->id }}",
|
||||
dataType: "html",
|
||||
data: $(this).serialize(),
|
||||
success: function(response) {
|
||||
|
||||
if (response == 1)
|
||||
{
|
||||
$("#refresh1").load("../thread/{{$tickets->id}} #refresh1");
|
||||
$("#t1").load("../thread/{{$tickets->id}} #t1");
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('fail');
|
||||
// $( "#dismis4" ).trigger( "click" );
|
||||
}
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
// Surrender
|
||||
$('#Surrender').on('click', function() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "../ticket/surrender/{{ $tickets->id }}",
|
||||
success: function(response) {
|
||||
|
||||
if (response == 1)
|
||||
{
|
||||
alert('ticket has been un assigned');
|
||||
// $("#refresh1").load( "http://localhost/faveo/public/thread/{{$tickets->id}} #refresh1");
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('fail');
|
||||
// $( "#dismis4" ).trigger( "click" );
|
||||
}
|
||||
$("#dismis6").trigger("click");
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// // Change Owner
|
||||
// jQuery(document).ready(function($) {
|
||||
// $('#form4').on('submit', function() {
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: "../change/owner/{{ $tickets->id }}",
|
||||
// dataType: "html",
|
||||
// data: $(this).serialize(),
|
||||
// success: function(response) {
|
||||
|
||||
// if (response == 1)
|
||||
// {
|
||||
// $("#refresh1").load("../thread/{{$tickets->id}} #refresh1");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// alert('fail');
|
||||
// // $( "#dismis4" ).trigger( "click" );
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// return false;
|
||||
// });
|
||||
// });
|
||||
|
||||
|
||||
// jQuery(document).ready(function(cash) {
|
||||
// $('select').on('change', function (e) {
|
||||
// $('#submt2').on('click', function (e) {
|
||||
// var data1 = $(this).children('option:selected').data('id');
|
||||
|
||||
// $.ajax({
|
||||
// type : "GET",
|
||||
// url : "http://localhost/faveo/public/ticket/assign/{{$tickets->id}}",
|
||||
// dataType : 'html',
|
||||
// data : ({data2:data1}) ,
|
||||
// success : function(response) {
|
||||
|
||||
// alert(response);
|
||||
// }
|
||||
// })
|
||||
// return false;
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
|
||||
|
||||
|
||||
|
||||
// Auto Populate Change Owner
|
||||
$("#search").autocomplete({
|
||||
source: function(request, response) {
|
||||
$.ajax({
|
||||
url: 'http://localhost/faveo/public/change/owner',
|
||||
dataType: "json",
|
||||
data: {
|
||||
name_startsWith: request.term,
|
||||
type: 'product'
|
||||
},
|
||||
success: function(data) {
|
||||
response($.map(data, function(item) {
|
||||
return {
|
||||
label: item,
|
||||
value: item
|
||||
}
|
||||
}));
|
||||
}
|
||||
});
|
||||
},
|
||||
autoFocus: true,
|
||||
minLength: 0
|
||||
});
|
||||
$('#item').autocomplete({
|
||||
source: function(request, response) {
|
||||
$.ajax({
|
||||
url: 'http://localhost/LAKSA/public/select',
|
||||
dataType: "json",
|
||||
data: {
|
||||
name_startsWith: request.term,
|
||||
type: 'product_table',
|
||||
row_num: 1
|
||||
},
|
||||
success: function(data) {
|
||||
response($.map(data, function(item) {
|
||||
var code = item.split("|");
|
||||
return {
|
||||
label: code[0],
|
||||
value: code[0],
|
||||
data: item
|
||||
}
|
||||
}));
|
||||
}
|
||||
});
|
||||
},
|
||||
autoFocus: true,
|
||||
minLength: 0,
|
||||
select: function(event, ui) {
|
||||
var names = ui.item.data.split("|");
|
||||
console.log(names[0], names[1], names[2]);
|
||||
$('#item').val(names[0]);
|
||||
$('#desc').val(names[1]);
|
||||
$('#box1').val(names[2]);
|
||||
}
|
||||
});
|
||||
//End of Autopopulate
|
||||
|
||||
|
||||
</script>
|
||||
@stop
|
||||
@@ -0,0 +1,175 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@section('Tickets')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('ticket-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('trash')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<!-- <section class="content-header"> -->
|
||||
{{-- <h3>
|
||||
Tickets
|
||||
</h3> --}}
|
||||
<!-- </section> -->
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="box box-warning">
|
||||
<div class="box-header with-border">
|
||||
<?php $counted = count(App\Model\Ticket\Tickets::where('status', '=', 5)->get());?>
|
||||
<h3 class="box-title">Trash </h3> <small> {{$counted}} 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', '=', 5)->get());
|
||||
if ($counted < 10) {
|
||||
echo $counted . "/" . $counted;
|
||||
} else {
|
||||
echo "10/" . $counted;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" table-responsive mailbox-messages" id="refresh">
|
||||
<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>Replies</th>
|
||||
<th>Last Activity</th>
|
||||
<th>Reply Due</th>
|
||||
</thead>
|
||||
<tbody id="hello">
|
||||
<?php $tickets = App\Model\Ticket\Tickets::where('status', '=', 5)->paginate(10);?>
|
||||
|
||||
@foreach ($tickets as $ticket )
|
||||
<tr>
|
||||
<td><input type="checkbox" value="{{$ticket->id}}"/></td>
|
||||
<?php $title = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();?>
|
||||
<td class="mailbox-name"><a class="text-red" href="{!! route('ticket.thread',[$ticket->id]) !!}">{{$title->title}}</a></td>
|
||||
<td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
|
||||
<td class="mailbox-priority"><spam class="btn btn-warning btn-xs">NONE</spam></td>
|
||||
<td class="mailbox-last-reply">client</td>
|
||||
<td class="mailbox-replies">11</td>
|
||||
<td class="mailbox-last-activity">11h 59m 23s</td>
|
||||
<td class="mailbox-date">5h 23m 03s</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table><!-- /.table -->
|
||||
<div class="pull-right">
|
||||
<?php echo $tickets->setPath(url('/ticket'))->render();?>
|
||||
</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('open #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
|
||||
@@ -0,0 +1,175 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@section('Tickets')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('ticket-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('unassigned')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<!-- <section class="content-header"> -->
|
||||
{{-- <h3>
|
||||
Tickets
|
||||
</h3> --}}
|
||||
<!-- </section> -->
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<?php $counted = count(App\Model\Ticket\Tickets::where('assigned_to', '=', 0)->get());?>
|
||||
<h3 class="box-title">Unassigned </h3> <small> {{$counted}} 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('assigned_to', '=', 0)->get());
|
||||
if ($counted < 10) {
|
||||
echo $counted . "/" . $counted;
|
||||
} else {
|
||||
echo "10/" . $counted;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" table-responsive mailbox-messages" id="refresh">
|
||||
<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>Replies</th>
|
||||
<th>Last Activity</th>
|
||||
<th>Reply Due</th>
|
||||
</thead>
|
||||
<tbody id="hello">
|
||||
<?php $tickets = App\Model\Ticket\Tickets::where('assigned_to', '=', 0)->paginate(10);?>
|
||||
|
||||
@foreach ($tickets as $ticket )
|
||||
<tr>
|
||||
<td><input type="checkbox" value="{{$ticket->id}}"/></td>
|
||||
<?php $title = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();?>
|
||||
<td class="mailbox-name"><a class="text-red" href="{!! route('ticket.thread',[$ticket->id]) !!}">{{$title->title}}</a></td>
|
||||
<td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
|
||||
<td class="mailbox-priority"><spam class="btn btn-warning btn-xs">NONE</spam></td>
|
||||
<td class="mailbox-last-reply">client</td>
|
||||
<td class="mailbox-replies">11</td>
|
||||
<td class="mailbox-last-activity">11h 59m 23s</td>
|
||||
<td class="mailbox-date">5h 23m 03s</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table><!-- /.table -->
|
||||
<div class="pull-right">
|
||||
<?php echo $tickets->setPath(url('/ticket'))->render();?>
|
||||
</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('open #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
|
||||
105
code/resources/views/themes/default1/Agent/user/create.blade.php
Normal file
105
code/resources/views/themes/default1/Agent/user/create.blade.php
Normal file
@@ -0,0 +1,105 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@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\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>
|
||||
|
||||
<!-- Phone Number : 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>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Internal Notes : Textarea -->
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@stop
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
|
||||
<!-- /content -->
|
||||
105
code/resources/views/themes/default1/Agent/user/edit.blade.php
Normal file
105
code/resources/views/themes/default1/Agent/user/edit.blade.php
Normal file
@@ -0,0 +1,105 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@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::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-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,['disabled'=>'disabled','class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Phone Number : 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>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Internal Notes : Textarea -->
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@stop
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
|
||||
<!-- /content -->
|
||||
125
code/resources/views/themes/default1/Agent/user/index.blade.php
Normal file
125
code/resources/views/themes/default1/Agent/user/index.blade.php
Normal file
@@ -0,0 +1,125 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@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 -->
|
||||
|
||||
<section class="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.user')}}</h2><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">×</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">×</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.created')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
|
||||
</tr>
|
||||
|
||||
@foreach($users as $user)
|
||||
<tr>
|
||||
<td><a href="{{route('user.show', $user->id)}}"> {{$user -> full_name }}</a></td>
|
||||
<td></td>
|
||||
<td>{{$user -> created_at}}</td>
|
||||
<td>{{$user -> updated_at}}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['user.destroy', $user->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@stop
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,185 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
@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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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('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'=>'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('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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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
|
||||
159
code/resources/views/themes/default1/Agent/user/show.blade.php
Normal file
159
code/resources/views/themes/default1/Agent/user/show.blade.php
Normal file
@@ -0,0 +1,159 @@
|
||||
@extends('themes.default1.layouts.agentblank')
|
||||
|
||||
@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')
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
|
||||
<h2 class="box-title">{{$users->full_name}}</h2></div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="col-xs-4 form-group">
|
||||
|
||||
<strong>{{Lang::get('lang.name')}}</strong>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-4">
|
||||
|
||||
<a href="{{route('user.edit', $users->id)}}"> {{$users -> full_name }}</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="col-xs-4 form-group">
|
||||
|
||||
<strong>{{Lang::get('lang.email')}}</strong>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-4">
|
||||
|
||||
{{$users -> email }}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="col-xs-4 form-group">
|
||||
|
||||
<strong>{{Lang::get('lang.organization')}}</strong>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-4">
|
||||
|
||||
<a href="{{route('organizations.create')}}"> {{Lang::get('lang.create_organization')}}</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="col-xs-4 form-group">
|
||||
|
||||
<strong>{{Lang::get('lang.status')}}</strong>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-4">
|
||||
|
||||
<!-- todo -->
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="col-xs-4 form-group">
|
||||
|
||||
<strong>{{Lang::get('lang.created')}}</strong>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-4">
|
||||
|
||||
{{$users -> created_at}}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="col-xs-4 form-group">
|
||||
|
||||
<strong>{{Lang::get('lang.last_updated')}}</strong>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-4">
|
||||
|
||||
{{$users -> updated_at}}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@stop
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,249 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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\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">
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
|
||||
<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-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>
|
||||
|
||||
<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">
|
||||
<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>
|
||||
|
||||
<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 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>
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<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 -->
|
||||
|
||||
@@ -0,0 +1,259 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
|
||||
<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-4 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>
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
<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>
|
||||
|
||||
<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 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>
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<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('location','location'),null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<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');
|
||||
}
|
||||
?> ><?php echo $key;?><br/>
|
||||
</div>
|
||||
@endwhile
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
@stop
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
|
||||
<!-- /content -->
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.agents')}}</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">
|
||||
|
||||
<!-- 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">×</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">×</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.user_name')}}</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)
|
||||
<tr>
|
||||
<td><a href="{{route('agents.edit', $use->id)}}"> {{$use -> user_name }}</a></td>
|
||||
<td> {{$use -> user_name }}</a></td>
|
||||
<td>
|
||||
@if($use->account_type=='1')
|
||||
<p style="color:green">{{'Active'}}</p>
|
||||
@else
|
||||
<p style="color:red">{{'Inactive'}}</p>
|
||||
@endif
|
||||
|
||||
|
||||
<td>{{$use -> assign_group }}</td>
|
||||
<td>{{$use -> primary_dpt }}</td>
|
||||
<td>{{$use -> created_at}}</td>
|
||||
<td>{{$use -> Lastlogin_at}}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['agents.destroy', $use->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,205 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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\DepartmentController@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">
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('ticket_assignment',Lang::get('lang.ticket_assignment')) !!}<br/>
|
||||
{!! Form::checkbox('ticket_assignment',1,null,['class' => 'form-control']) !!}
|
||||
{{Lang::get('lang.restrict_ticket_assignment_to_department_members')}}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-6 form-group {{ $errors->has('outgoing_email') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('outgoing_email',Lang::get('lang.outgoing_emails')) !!}
|
||||
{!! $errors->first('outgoing_email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('outgoing_email', [''=>'Select an Email','Outgoing Emails'=>$emails->lists('email_address','email_address')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-6 form-group {{ $errors->has('template_set') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('template_set',Lang::get('lang.template_set')) !!}
|
||||
{!! $errors->first('template_set', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('template_set', [''=>'Select a Template','Templates'=>$templates->lists('name','name')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class='form-group'>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-6">
|
||||
{!! Form::label('auto_ticket_response',Lang::get('lang.auto_responding_settings')) !!}<br>
|
||||
{!! Form::checkbox('auto_ticket_response',1,null,['class' => 'checkbox']) !!}
|
||||
{{Lang::get('lang.disable_for_this_department')}}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-xs-6">
|
||||
{!! Form::label('auto_message_response',Lang::get('lang.new_message')) !!}<br>
|
||||
{!! Form::checkbox('auto_message_response',1,null,['class' => 'checkbox']) !!}
|
||||
{{Lang::get('lang.disable_for_this_department')}}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-6 form-group {{ $errors->has('auto_response_email') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('auto_response_email',Lang::get('lang.auto_response_email')) !!}
|
||||
{!! $errors->first('auto_response_email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('auto_response_email', [''=>'Select a Email','Auto-Response Email'=>$emails->lists('email_address','email_address')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-6 form-group {{ $errors->has('recipient') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('recipient',Lang::get('lang.recipient')) !!}
|
||||
{!! $errors->first('recipient', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('recipient',['No One','Department Members','Department and Group Members'],2,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="{{ $errors->has('group_id') ? 'has-error' : '' }}">
|
||||
|
||||
<h4>{{Lang::get('lang.group_access')}}</h4>
|
||||
{!! $errors->first('group_id', '<spam class="help-block" style="color:red">Assign Group is Required</spam>') !!}
|
||||
|
||||
</div>
|
||||
|
||||
@while (list($key, $val) = each($groups))
|
||||
<div class="form-group">
|
||||
<input type="checkbox" name="group_id[]" value="<?php echo $val;?>" class="form-control" >
|
||||
<label><?php echo $key;?></label>
|
||||
</div>
|
||||
@endwhile
|
||||
|
||||
<div>
|
||||
|
||||
<h4>{{Lang::get('lang.department_signature')}}</h4>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="">
|
||||
|
||||
{!! Form::textarea('department_sign',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,204 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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="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">
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('ticket_assignment',Lang::get('lang.ticket_assignment')) !!}<br/>
|
||||
{!! Form::checkbox('ticket_assignment',1,null,['class' => 'form-control']) !!}
|
||||
{{Lang::get('lang.restrict_ticket_assignment_to_department_members')}}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-6 form-group {{ $errors->has('outgoing_email') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('outgoing_email',Lang::get('lang.outgoing_emails')) !!}
|
||||
{!! $errors->first('outgoing_email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('outgoing_email', [''=>'Select an Email','Outgoing Emails'=>$emails->lists('email_address','email_address')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-6 form-group {{ $errors->has('template_set') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('template_set',Lang::get('lang.template_set')) !!}
|
||||
{!! $errors->first('template_set', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('template_set', [''=>'Select a Template','Templates'=>$templates->lists('name','name')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class='form-group'>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-6">
|
||||
{!! Form::label('auto_ticket_response',Lang::get('lang.auto_responding_settings')) !!}<br>
|
||||
{!! Form::checkbox('auto_ticket_response',1,null,['class' => 'checkbox']) !!}
|
||||
{{Lang::get('lang.disable_for_this_department')}}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-xs-6">
|
||||
{!! Form::label('auto_message_response',Lang::get('lang.new_message')) !!}<br>
|
||||
{!! Form::checkbox('auto_message_response',1,null,['class' => 'checkbox']) !!}
|
||||
{{Lang::get('lang.disable_for_this_department')}}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-6 form-group {{ $errors->has('auto_response_email') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('auto_response_email',Lang::get('lang.auto_response_email')) !!}
|
||||
{!! $errors->first('auto_response_email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('auto_response_email', [''=>'Select a Email','Auto-Response Email'=>$emails->lists('email_address','email_address')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-6 form-group {{ $errors->has('recipient') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('recipient',Lang::get('lang.recipient')) !!}
|
||||
{!! $errors->first('recipient', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('recipient',['No One','Department Members','Department and Group Members'],2,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="{{ $errors->has('group_id') ? 'has-error' : '' }}">
|
||||
|
||||
<h4>{{Lang::get('lang.group_access')}}</h4>
|
||||
{!! $errors->first('group_id', '<spam class="help-block" style="color:red">Assign Group is Required</spam>') !!}
|
||||
|
||||
</div>
|
||||
|
||||
@while (list($key, $val) = each($groups))
|
||||
<div class="form-group">
|
||||
<input type="checkbox" name="group_id[]" value="<?php echo $val;?>" <?php if (in_array($val, $assign)) {
|
||||
echo ('checked');
|
||||
}
|
||||
?> ><?php echo $key;?><br/>
|
||||
</div>
|
||||
@endwhile
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
<h4>{{Lang::get('lang.department_signature')}}</h4>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="">
|
||||
|
||||
{!! Form::textarea('department_sign',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,114 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">{{Lang::get('lang.department')}}</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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<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.user')}}</th>
|
||||
<th>{{Lang::get('lang.email_address')}}</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')
|
||||
<p style="color:green">{{'Public'}}</p>
|
||||
@else
|
||||
<p style="color:red">{{'Private'}}</p>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
<td></td>
|
||||
<td>{{$department -> outgoing_email}}</td>
|
||||
<td>{{$department -> manager}}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['departments.destroy', $department->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,206 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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\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">
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
{!! Form::label('can_trasfer_ticket',Lang::get('lang.can_transfer_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_trasfer_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<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 class="row">
|
||||
{!! Form::label('can_manage_canned',Lang::get('lang.can_manage_premade')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_manage_canned',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
{!! Form::label('can_manage_faq',Lang::get('lang.can_manage_FAQ')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_manage_faq',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
{!! Form::label('can_view_agent_stats',Lang::get('lang.can_view_agent_stats')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_view_agent_stats',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
{!! Form::label('department_access',Lang::get('lang.department_access')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('department_access',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('admin_notes',Lang::get('lang.admin_notes')) !!}
|
||||
{!! Form::textarea('admin_notes',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,208 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
{!! Form::label('can_trasfer_ticket',Lang::get('lang.can_transfer_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_trasfer_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<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 class="row">
|
||||
{!! Form::label('can_manage_canned',Lang::get('lang.can_manage_premade')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_manage_canned',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
{!! Form::label('can_manage_faq',Lang::get('lang.can_manage_FAQ')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_manage_faq',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
{!! Form::label('can_view_agent_stats',Lang::get('lang.can_view_agent_stats')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_view_agent_stats',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
{!! Form::label('department_access',Lang::get('lang.department_access')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('department_access',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('admin_notes',Lang::get('lang.admin_notes')) !!}
|
||||
{!! Form::textarea('admin_notes',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,116 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">{{Lang::get('lang.group')}}</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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<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.group_members')}}</th>
|
||||
|
||||
<th>{{Lang::get('lang.created')}}</th>
|
||||
<th>{{Lang::get('lang.last_updated')}}</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')
|
||||
<p style="color:green">{{'Active'}}</p>
|
||||
@else
|
||||
<p style="color:red">{{'Inactive'}}</p>
|
||||
@endif
|
||||
|
||||
|
||||
<td>{{count($group_assign_department->where('group_id',$group->id))}}</td>
|
||||
|
||||
<td>{{$group -> created_at}}</td>
|
||||
<td>{{$group -> updated_at}}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['groups.destroy', $group->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,113 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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\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">
|
||||
|
||||
<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>
|
||||
|
||||
<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>') !!}
|
||||
{!!Form::select('team_lead',[''=>'Select a Team Lead','Team Members'=>$user->where('role','agent')->lists('user_name','user_name')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<div class="row form-group">
|
||||
|
||||
<div class="col-xs-2">
|
||||
{!! Form::label('assign_alert',Lang::get('lang.assignment_alert')) !!}
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
{!! Form::checkbox('assign_alert',1,null,null,['class' => 'form-control']) !!}
|
||||
{{Lang::get('lang.disable_for_this_team')}}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<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 -->
|
||||
@@ -0,0 +1,120 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<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>') !!}
|
||||
|
||||
<select name="team_lead" class="form-control">
|
||||
<option value="">Select Team leader</option>
|
||||
<?php foreach ($agent_id as $aaaaa) {
|
||||
$user = $user->where('id', $aaaaa)->first();?>
|
||||
<option value="{{$user->user_name}}">{{$user->user_name}}</option>
|
||||
<?php }?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<div class="row form-group">
|
||||
|
||||
<div class="col-xs-2">
|
||||
{!! Form::label('assign_alert',Lang::get('lang.assignment_alert')) !!}
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
{!! Form::checkbox('assign_alert',1,null,null,['class' => 'form-control']) !!}
|
||||
{{Lang::get('lang.disable_for_this_team')}}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<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 -->
|
||||
@@ -0,0 +1,114 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">×</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">×</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.created')}}</th>
|
||||
<th>{{Lang::get('lang.last_updated')}}</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')
|
||||
<p style="color:green">{{'Active'}}</p>
|
||||
@else
|
||||
<p style="color:red">{{'Inactive'}}</p>
|
||||
@endif
|
||||
|
||||
|
||||
<td>{{count($assign_team_agent->where('team_id',$team->id))}}</td>
|
||||
<td>{{$team->team_lead}}</td>
|
||||
<td>{{$team -> created_at}}</td>
|
||||
<td>{{$team -> updated_at}}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['teams.destroy', $team->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,28 @@
|
||||
|
||||
@extends('themes.default1.layouts.blank')
|
||||
@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 -->
|
||||
@@ -0,0 +1,88 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
|
||||
@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\BanlistController@store','method' => 'post']) !!}
|
||||
|
||||
<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','active',true) !!}{{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban_status','disabled') !!}{{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- email Address : Text form : Required -->
|
||||
|
||||
<div class="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>
|
||||
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,86 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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_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>
|
||||
|
||||
<!-- email Address : Text form : Required -->
|
||||
|
||||
<div class="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>
|
||||
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,126 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">×</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">×</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.status')}}</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 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_address !!}</a></td>
|
||||
<!-- Ban Status : if status==1 active -->
|
||||
<td>
|
||||
@if($ban->ban_status=='active')
|
||||
<p style="color:green">Active</p>
|
||||
@else
|
||||
<p style="color:red">Disable</p>
|
||||
@endif
|
||||
</td>
|
||||
<!-- Date Added -->
|
||||
<td>{!! $ban->created_at !!}</td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! $ban->updated_at !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
{!! Form::open(['route'=>['banlist.destroy', $ban->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
<!-- Set a link to Create Page -->
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,278 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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\EmailsController@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">
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
|
||||
<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','name')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<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('name','name')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-6 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>
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
|
||||
<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>') !!}
|
||||
{!!Form::select('mailbox_protocol', [''=>'Select a Mailbox Protocol','Mailbox Protocols'=>$mailbox_protocols->lists('name','name')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div> -->
|
||||
|
||||
<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">
|
||||
|
||||
<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">
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
|
||||
<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">
|
||||
|
||||
<div class="col-xs-2">
|
||||
|
||||
{!! Form::label('',Lang::get('lang.header_spoofing')) !!}
|
||||
{!! Form::checkbox('header_spoofing',1,null,['class' => 'checkbox']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<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 -->
|
||||
@@ -0,0 +1,278 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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="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">
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
|
||||
<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','name')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<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('name','name')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-6 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>
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
|
||||
<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>') !!}
|
||||
{!!Form::select('mailbox_protocol', [''=>'Select a Mailbox Protocol','Mailbox Protocols'=>$mailbox_protocols->lists('name','name')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div> -->
|
||||
|
||||
<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">
|
||||
|
||||
<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">
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
|
||||
<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">
|
||||
|
||||
<div class="col-xs-2">
|
||||
|
||||
{!! Form::label('',Lang::get('lang.header_spoofing')) !!}
|
||||
{!! Form::checkbox('header_spoofing',1,null,['class' => 'checkbox']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<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 -->
|
||||
@@ -0,0 +1,104 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">{{Lang::get('lang.email')}}</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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<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>{{$email -> priority }}</td>
|
||||
<td>{{$email -> department }}</td>
|
||||
<td>{{$email -> created_at}}</td>
|
||||
<td>{{$email -> updated_at}}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['emails.destroy', $email->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1 @@
|
||||
Your Email connection Checking Success !!
|
||||
@@ -0,0 +1,113 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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\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 -->
|
||||
@@ -0,0 +1,115 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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 -->
|
||||
@@ -0,0 +1,95 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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')
|
||||
|
||||
|
||||
{!! Form::open(['method'=>'post' , 'action'=>'Admin\TemplateController@postDiagno']) !!}
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
|
||||
<h4>{{Lang::get('lang.diagnostics')}} {!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<!-- Form for define From Address : Drop down : required -->
|
||||
|
||||
<div class="form-group {{ $errors->has('from') ? 'has-error' : '' }}">
|
||||
{!! Form::label('from',Lang::get('lang.from')) !!}
|
||||
{!! $errors->first('from', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('from', [''=>'Select a Email','Emails'=>$emails->lists('email_address','email_address')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<!-- Subject : define the Subject of the Mail : Text form : Required -->
|
||||
|
||||
<div class="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>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Email message to Send : Textarea : -->
|
||||
|
||||
<div class="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>
|
||||
|
||||
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,120 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">×</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">×</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>{!! $template->created_at !!}</td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! $template->updated_at !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
{!! Form::open(['route'=>['template.destroy', $template->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
<!-- Set a link to Create Page -->
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
38
code/resources/views/themes/default1/admin/login.blade.php
Normal file
38
code/resources/views/themes/default1/admin/login.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
@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">
|
||||
<input type="text" class="form-control" placeholder="Email"/>
|
||||
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<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
|
||||
@@ -0,0 +1,113 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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\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 -->
|
||||
@@ -0,0 +1,112 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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 -->
|
||||
@@ -0,0 +1,120 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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')
|
||||
<div class="row">
|
||||
<div class="col-xs-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.forms')}}</h2><a href="{{route('form.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_form')}}</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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table class="table table-hover" style="overflow:hidden;">
|
||||
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.Custom_form')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
|
||||
<th width="100px">Action</th>
|
||||
</tr>
|
||||
<!-- Foreach @var$forms as @var form -->
|
||||
@foreach($forms as $form)
|
||||
<tr>
|
||||
|
||||
<!-- form Name with Link to Edit page along Id -->
|
||||
<td><a href="{{route('form.edit',$form->id)}}">{!! $form->title !!}</a></td>
|
||||
|
||||
<!-- Last Updated -->
|
||||
<td> {!! $form->updated_at !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
{!! Form::open(['route'=>['form.destroy', $form->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'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>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,207 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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\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')) !!}
|
||||
{!! $errors->first('ticket_status', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('ticket_status','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! 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')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.public')}}
|
||||
{!! 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('name','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','name')],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('name','name')],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 a 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-6">
|
||||
<div class="form-group {{ $errors->has('auto_response') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('auto_response',Lang::get('lang.auto_response')) !!}
|
||||
{!! $errors->first('auto_response', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::checkbox('auto_response',1,true) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Ticket Number Format: radio: System Default | Custom -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('ticket_num_format') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('ticket_num_format',Lang::get('lang.ticket_number_format')) !!}
|
||||
{!! $errors->first('ticket_num_format', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('ticket_num_format','1',true) !!}System Default
|
||||
{!! Form::radio('ticket_num_format','0') !!}Custom
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 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 -->
|
||||
@@ -0,0 +1,207 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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="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.edit')}}</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')) !!}
|
||||
{!! $errors->first('ticket_status', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('ticket_status','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! 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')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.public')}}
|
||||
{!! 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','topic')],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('name','name')],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','name')],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('name','name')],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')],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-6">
|
||||
<div class="form-group {{ $errors->has('auto_response') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('auto_response',Lang::get('lang.auto_response')) !!}
|
||||
{!! $errors->first('auto_response', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::checkbox('auto_response',1,true) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Ticket Number Format: radio: System Default | Custom -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('ticket_num_format') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('ticket_num_format',Lang::get('lang.ticket_number_format')) !!}
|
||||
{!! $errors->first('ticket_num_format', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('ticket_num_format','1',true) !!}System Default
|
||||
{!! Form::radio('ticket_num_format','0') !!}Custom
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 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 -->
|
||||
@@ -0,0 +1,149 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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="row">
|
||||
<div class="col-xs-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.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">×</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">×</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')
|
||||
<p style="color:green">Active</p>
|
||||
@else
|
||||
<p style="color:red">Disable</p>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<!-- Type -->
|
||||
|
||||
<td>
|
||||
@if($topic->type=='1')
|
||||
<p style="color:green">Public</p>
|
||||
@else
|
||||
<p style="color:red">Private</p>
|
||||
@endif
|
||||
</td>
|
||||
<!-- Priority -->
|
||||
<td>{!! $topic->priority !!}</td>
|
||||
<!-- Department -->
|
||||
<td>{!! $topic->department !!}</td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! $topic->updated_at !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
{!! Form::open(['route'=>['helptopic.destroy', $topic->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'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 -->
|
||||
@@ -0,0 +1,129 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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\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')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!}{{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Transient: checkbox : SLA can be overridden on ticket transfer or help topic change -->
|
||||
|
||||
<div class="form-group {{ $errors->has('transient') ? 'has-error' : '' }}">
|
||||
{!! Form::checkbox('transient',1) !!}
|
||||
{!! Form::label('transient',Lang::get('lang.transient')) !!}
|
||||
{!! $errors->first('transient', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Ticket Overdue Alerts: Disable overdue alerts notices. (Override global setting) -->
|
||||
|
||||
<div class="form-group {{ $errors->has('ticket_overdue') ? 'has-error' : '' }}">
|
||||
{!! Form::checkbox('ticket_overdue',1) !!}
|
||||
{!! Form::label('ticket_overdue',Lang::get('lang.ticket_overdue_alert')) !!}
|
||||
{!! $errors->first('ticket_overdue', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
</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 -->
|
||||
@@ -0,0 +1,129 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!}{{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Transient: checkbox : SLA can be overridden on ticket transfer or help topic change -->
|
||||
|
||||
<div class="form-group {{ $errors->has('transient') ? 'has-error' : '' }}">
|
||||
{!! Form::checkbox('transient') !!}
|
||||
{!! Form::label('transient',Lang::get('lang.transient')) !!}
|
||||
{!! $errors->first('transient', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Ticket Overdue Alerts: Disable overdue alerts notices. (Override global setting) -->
|
||||
|
||||
<div class="form-group {{ $errors->has('ticket_overdue') ? 'has-error' : '' }}">
|
||||
{!! Form::checkbox('ticket_overdue') !!}
|
||||
{!! Form::label('ticket_overdue',Lang::get('lang.ticket_overdue_alert')) !!}
|
||||
{!! $errors->first('ticket_overdue', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
</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 -->
|
||||
@@ -0,0 +1,125 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">×</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">×</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')
|
||||
<p style="color:green">Active</p>
|
||||
@else
|
||||
<p style="color:red">Disable</p>
|
||||
@endif
|
||||
</td>
|
||||
<!-- To show the sla's Time Period -->
|
||||
<td>{!! $sla->grace_period !!}</td>
|
||||
<!-- Created Date -->
|
||||
<td>{!! $sla->created_at !!}</td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! $sla->updated_at !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
{!! Form::open(['route'=>['sla.destroy', $sla->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
<!-- Set a link to Create Page -->
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
185
code/resources/views/themes/default1/admin/profile.blade.php
Normal file
185
code/resources/views/themes/default1/admin/profile.blade.php
Normal file
@@ -0,0 +1,185 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
@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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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('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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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
|
||||
8
code/resources/views/themes/default1/admin/setting.php
Normal file
8
code/resources/views/themes/default1/admin/setting.php
Normal 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.
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,203 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">×</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">×</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) !!}
|
||||
{!! 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']) !!}
|
||||
{!! 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) !!}
|
||||
{!! 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 -->
|
||||
@@ -0,0 +1,407 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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="content-header">
|
||||
|
||||
<h4>{{Lang::get('lang.alert_notices')}} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
</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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
|
||||
<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 -->
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<!-- Status: Enable Disable -->
|
||||
{!! Form::checkbox('ticket_status',1) !!}
|
||||
{!! Form::label('ticket_status',Lang::get('lang.status')) !!}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<!-- Admin Email (admin@jamboreebliss.com) -->
|
||||
{!! Form::checkbox('ticket_admin_email',1) !!}
|
||||
{!! Form::label('ticket_admin_email',Lang::get('lang.admin_email')) !!}
|
||||
</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 -->
|
||||
|
||||
<div class="box-body">
|
||||
<!-- Status: Enable Disable -->
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('message_status',1) !!}
|
||||
{!! Form::label('message_status',Lang::get('lang.status')) !!}
|
||||
</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><!-- /.box-header -->
|
||||
<!-- form start -->
|
||||
|
||||
<div class="box-body">
|
||||
<!-- Status: Enable Disable -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('transfer_status',1) !!}
|
||||
{!! Form::label('transfer_status',Lang::get('lang.status')) !!}
|
||||
|
||||
|
||||
</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 -->
|
||||
|
||||
<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 -->
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('overdue_status',1) !!}
|
||||
{!! Form::label('overdue_status',Lang::get('lang.status')) !!}
|
||||
</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.new_internal_note_alert')}}</h3>
|
||||
<div class="pull-right">
|
||||
|
||||
</div>
|
||||
</div><!-- /.box-header -->
|
||||
<!-- form start -->
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<!-- Status: Enable Disable -->
|
||||
|
||||
|
||||
{!! Form::checkbox('internal_status',1) !!}
|
||||
{!! Form::label('internal_status',Lang::get('lang.status')) !!}
|
||||
|
||||
|
||||
</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 -->
|
||||
|
||||
<div class="box-body">
|
||||
<!-- Status: Enable Disable -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('assignment_status',1) !!}
|
||||
{!! Form::label('assignment_status',Lang::get('lang.status')) !!}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Assigned Agent / Team -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('assignment_assigned_agent',1) !!}
|
||||
{!! Form::label('assignment_assigned_agent',Lang::get('lang.assigned_agent_team')) !!}
|
||||
|
||||
|
||||
</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) -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,159 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
|
||||
<div>
|
||||
<h4>{{Lang::get('lang.company')}}{!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
</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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Name text form Required -->
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<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">
|
||||
<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">
|
||||
<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">
|
||||
<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">
|
||||
<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">
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('offline_page',Lang::get('lang.offline')) !!}
|
||||
{!!Form::select('offline_page', ['offline page'],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<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-4">
|
||||
<div class="">
|
||||
|
||||
{!! Form::label('logo',Lang::get('lang.logo')) !!}
|
||||
{!! Form::file('logo') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,189 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">×</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">×</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) !!} {{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) !!} {{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) !!} {{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']) !!} {{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) !!} {{Lang::get('lang.attachments')}}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,118 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">×</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">×</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) !!}
|
||||
{!! 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) !!}
|
||||
{!! 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) !!} {{Lang::get('lang.submitter')}} {{Lang::get('lang.send_receipt_confirmation')}}
|
||||
{!! Form::checkbox('partcipants',1) !!} {{Lang::get('lang.participants')}} {{Lang::get('lang.send_new_activity_notice')}}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Overlimit Notice: CHECKBOX Ticket Submitter -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('overlimit',1) !!}
|
||||
{!! Form::label('overlimit',Lang::get('lang.overlimit_notice')) !!}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,256 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
|
||||
<div class="content-header">
|
||||
|
||||
<h4>{{Lang::get('lang.system')}} {!! Form::submit('Save',['onclick'=>'sendForm()','class'=>'btn btn-primary pull-right'])!!}</h4>
|
||||
<!-- <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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<!-- Helpdesk Status: radio Online Offline -->
|
||||
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
|
||||
<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 class="row">
|
||||
<!-- 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','name')],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('location','location')],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-3">
|
||||
<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 type="text/javascript">
|
||||
// // Replace the <textarea id="editor1"> with a CKEditor
|
||||
// // instance, using default configuration.
|
||||
// CKEDITOR.replace( 'content' );
|
||||
// </script>
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
CKEDITOR.replace( 'content',
|
||||
{
|
||||
filebrowserUploadUrl : '/uploader/upload.php'
|
||||
});
|
||||
|
||||
CKEDITOR.replace( 'content', { toolbar : 'MyToolbar' } );
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
|
||||
@@ -0,0 +1,241 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">×</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">×</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>') !!}
|
||||
{!!Form::select('status', ['open'],null,['class' => 'form-control']) !!}
|
||||
</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('name','name')],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','grace_period'),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','topic'),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) !!}
|
||||
{!! Form::label('captcha',Lang::get('lang.human_verification')) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Claim on Response: checkbox -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('claim_response',1,true) !!}
|
||||
{!! 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) !!}
|
||||
{!! 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) !!}
|
||||
{!! 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) !!}
|
||||
{!! 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) !!}
|
||||
{!! 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) !!}
|
||||
{!! 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 -->
|
||||
@@ -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 © 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>
|
||||
@@ -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 © 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>
|
||||
21
code/resources/views/themes/default1/ckeditor.blade.php
Normal file
21
code/resources/views/themes/default1/ckeditor.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>A Simple Page with CKEditor</title>
|
||||
<!-- Make sure the path to CKEditor is correct. -->
|
||||
<script src="ckeditor/ckeditor.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form>
|
||||
<textarea name="editor1" id="editor1" rows="10" cols="80">
|
||||
|
||||
</textarea>
|
||||
<script>
|
||||
// Replace the <textarea id="editor1"> with a CKEditor
|
||||
// instance, using default configuration.
|
||||
CKEDITOR.replace( 'editor1' );
|
||||
</script>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,416 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
<?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','=',$sla)->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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,160 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--
|
||||
|====================================================
|
||||
| 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'=>'Guest\FormController@postedForm','method'=>'post']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
|
||||
<h4>Ticket {!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
||||
|
||||
<div class="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 Topic','Topics'=>'default Topic'],null,['id'=>'selectid','class' => 'form-control']) !!}
|
||||
|
||||
</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>
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
|====================================================
|
||||
| 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');
|
||||
|
||||
|
||||
//alert(select);
|
||||
var $_token = $('#token').val();
|
||||
var data1 = $(this).children('option:selected').data('id');
|
||||
//alert('data1');
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
headers : { 'X-XSRF-TOKEN' : $_token },
|
||||
url : "http://localhost/faveo/public/postform",
|
||||
dataType : 'html',
|
||||
data : ({data2:data1}) ,
|
||||
|
||||
|
||||
success : function(response) {
|
||||
|
||||
//alert(response);
|
||||
//alert(response);
|
||||
// $('#successMessage').text(response);
|
||||
var data = response;
|
||||
var splited = data.split(',').slice(1);
|
||||
//alert(splited);
|
||||
// var splited1 = splited.split('-').slice(1);
|
||||
// alert(splited1);
|
||||
|
||||
|
||||
$.each(splited, function (index, value)
|
||||
{
|
||||
|
||||
var splited = data.split(',').slice(1);
|
||||
//alert(splited);
|
||||
$("#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 splited1 = splited[j].split('-');
|
||||
//alert(value);
|
||||
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;
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
s
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@stop
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--
|
||||
|====================================================
|
||||
| SELECT FROM
|
||||
|====================================================
|
||||
-->
|
||||
<?php
|
||||
$encrypter = app('Illuminate\Encryption\Encrypter');
|
||||
$encrypted_token = $encrypter->encrypt(csrf_token());
|
||||
?>
|
||||
<input id="token" type="hidden" value="{{$encrypted_token}}">
|
||||
<select>
|
||||
<option data-id="form" value="form">form</option>
|
||||
<option data-id="forma" value="forma">forma</option>
|
||||
</select>
|
||||
<br/>
|
||||
<!-- <label>data</label> -->
|
||||
<!-- <input name="stack" id="stack"/> -->
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
|====================================================
|
||||
| SELECTED FORM STORED IN SCRIPT
|
||||
|====================================================
|
||||
-->
|
||||
<script type="text/javascript">
|
||||
|
||||
jQuery(document).ready(function($) {
|
||||
$('select').on('change', function (e) {
|
||||
//alert('hello2');
|
||||
var $_token = $('#token').val();
|
||||
var data1 = $(this).children('option:selected').data('id');
|
||||
//alert('data1');
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
cache : false,
|
||||
headers : { 'X-XSRF-TOKEN' : $_token },
|
||||
url : "http://localhost/faveo/public/postform",
|
||||
dataType : 'html',
|
||||
data : ({data2:data1}) ,
|
||||
|
||||
|
||||
success : function(response) {
|
||||
|
||||
//alert(response);
|
||||
//alert(response);
|
||||
// $('#successMessage').text(response);
|
||||
var data = response;
|
||||
var splited = data.split(',').slice(1);
|
||||
//alert(splited);
|
||||
// var splited1 = splited.split('-').slice(1);
|
||||
// alert(splited1);
|
||||
|
||||
$.each(splited, function (index, value)
|
||||
{
|
||||
|
||||
|
||||
|
||||
var splited = data.split(',').slice(1);
|
||||
//alert(splited);
|
||||
for (var j = 0 ; j<splited.length; j++)
|
||||
{
|
||||
|
||||
//var splited1 = splited[j].split('-');
|
||||
//alert(splited1);
|
||||
|
||||
var sli = splited[j].split('-');
|
||||
|
||||
document.write(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
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,50 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@section('content1')
|
||||
@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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@stop
|
||||
|
||||
@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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<div>
|
||||
|
||||
{!!$content!!}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
@stop
|
||||
@@ -0,0 +1,69 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
{!! Form::model($ticket,array('url' => 'postcheck' , 'method' => 'post') )!!}
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
|
||||
<h4>New Ticket {!! Form::submit(Lang::get('lang.send'),['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-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-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-xs-6 form-group {{ $errors->has('ticket_number') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('ticket_number',Lang::get('lang.ticket_number')) !!}
|
||||
{!! $errors->first('ticket_number', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('ticket_number',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- open a form -->
|
||||
@stop
|
||||
@@ -0,0 +1,185 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
{!! Form::model($user,['url'=>'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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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('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'=>'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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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
|
||||
@@ -0,0 +1,304 @@
|
||||
|
||||
<!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="{{asset("plugins/fullcalendar/fullcalendar.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("plugins/fullcalendar/fullcalendar.print.css")}}" rel="stylesheet" type="text/css" media='print' />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("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="{{asset("dist/css/skins/_all-skins.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- iCheck -->
|
||||
<link href="{{asset("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("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]-->
|
||||
@yield('HeadInclude')
|
||||
</head>
|
||||
<!-- ADD THE CLASS layout-boxed TO GET A BOXED LAYOUT -->
|
||||
<body class="skin-blue layout-boxed">
|
||||
<!-- Site wrapper -->
|
||||
<div class="wrapper">
|
||||
|
||||
<header class="main-header">
|
||||
<?php $company = App\Model\Settings\Company::where('id','=','1')->first();?>
|
||||
|
||||
<img src="{{asset('dist')}}{{'/'}}{{$company->logo}}" class="logo" alt="User Image" />
|
||||
<!-- 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>
|
||||
</a>
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<!-- Messages: style can be found in dropdown.less-->
|
||||
@if(Auth::user())
|
||||
<li class="dropdown messages-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-envelope-o"></i>
|
||||
<span class="label label-success">4</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header">You have 4 messages</li>
|
||||
<li>
|
||||
<!-- inner menu: contains the actual data -->
|
||||
<ul class="menu">
|
||||
<li><!-- start message -->
|
||||
<a href="#">
|
||||
<div class="pull-left">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image"/>
|
||||
</div>
|
||||
<h4>
|
||||
Support Team
|
||||
<small><i class="fa fa-clock-o"></i> 5 mins</small>
|
||||
</h4>
|
||||
<p>Why not buy a new awesome theme?</p>
|
||||
</a>
|
||||
</li><!-- end message -->
|
||||
</ul>
|
||||
</li>
|
||||
<li class="footer"><a href="#">See All Messages</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}"class="user-image" alt="User Image"/>
|
||||
<span class="hidden-xs">{{Auth::user()->name}}</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<!-- User image -->
|
||||
<li class="user-header">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
<p>
|
||||
|
||||
{{Auth::user()->name}} - {{Auth::user()->role}}
|
||||
<small></small>
|
||||
</p>
|
||||
</li>
|
||||
<!-- Menu Footer-->
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
<a href="{{url('agent-profile/'.Auth::user()->id)}}" class="btn btn-default btn-flat">Profile</a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="{{url('auth/logout')}}" class="btn btn-default btn-flat">Sign out</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@else
|
||||
|
||||
<li>
|
||||
<a href="{{url('auth/login')}}" class="logo"><span>Sign In</span></a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="{{url('auth/register')}}" class="logo"><span>Register</span></a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- =============================================== -->
|
||||
|
||||
<!-- Left side column. contains the sidebar -->
|
||||
<aside class="main-sidebar">
|
||||
<!-- sidebar: style can be found in sidebar.less -->
|
||||
<section class="sidebar">
|
||||
<!-- Sidebar user panel -->
|
||||
|
||||
@if(Auth::user())
|
||||
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>{{Auth::user()->name}}</p>
|
||||
@if(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">MAIN NAVIGATION</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="../../index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
|
||||
<li><a href="../../index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="{{url('myticket')}}">
|
||||
<i class="fa fa-th"></i> <span>MyTickets</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="{{url('getform')}}">
|
||||
<i class="fa fa-th"></i> <span>Submit a Tickets</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
@else
|
||||
|
||||
<ul class="sidebar-menu">
|
||||
<li>
|
||||
<a href="{{url('getform')}}">
|
||||
<i class="fa fa-envelope"></i> <span>Open A New Ticket</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="{{url('newticket')}}">
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="fa fa-th"></i> <span>Check your Ticket</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@endif
|
||||
</aside>
|
||||
|
||||
<!-- =============================================== -->
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
@yield('header')
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
@if(Auth::user())
|
||||
@yield('content1')
|
||||
@else
|
||||
@yield('content')
|
||||
@endif
|
||||
|
||||
</section><!-- /.content -->
|
||||
</div><!-- /.content-wrapper -->
|
||||
<?php $sys = App\Model\Settings\System::where('id','=','1')->first();?>
|
||||
|
||||
|
||||
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b>Version</b> 2.0
|
||||
</div>
|
||||
<strong>Copyright © 2014-2015 <a href="{{$sys->url}}">{{$sys->name}}</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="{{asset("plugins/slimScroll/jquery.slimscroll.min.js")}}" type="text/javascript"></script>
|
||||
<!-- FastClick -->
|
||||
<script src='{{asset("plugins/fastclick/fastclick.min.js")}}'></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="{{asset("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("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="{{asset("dist/js/tabby.js")}}"></script>
|
||||
@yield('FooterInclude')
|
||||
</body>
|
||||
</html>
|
||||
49
code/resources/views/themes/default1/edit.blade.php
Normal file
49
code/resources/views/themes/default1/edit.blade.php
Normal file
@@ -0,0 +1,49 @@
|
||||
@extends('themes.default1.Agent.ticket.layout')
|
||||
|
||||
@section('nav1')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('My')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Ticket
|
||||
<!-- <small>example</small> -->
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<!-- Main content -->
|
||||
<div class="box box-primary">
|
||||
{!! Form::model($ticket_id, ['url' => 'ticket/post/edit/'.$ticket_id->id,'method' => 'PATCH'] )!!}
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Edit <b>({!! $ticket_id->ticket_number !!})</b>({!! $user->user_name !!})</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label>Title</label>
|
||||
<input type="text" name="" class="form-control" value="{{$thread_id->title}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Body</label>
|
||||
<textarea name="" class="form-control">{!! $thread_id->body !!}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-primary">
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@stop
|
||||
288
code/resources/views/themes/default1/layout.blade.php
Normal file
288
code/resources/views/themes/default1/layout.blade.php
Normal file
@@ -0,0 +1,288 @@
|
||||
<!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("downloads/bootstrap.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Font Awesome Icons -->
|
||||
<link href="{{asset("downloads/font-awesome.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Ionicons -->
|
||||
<link href="{{asset("downloads/ionicons.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- fullCalendar 2.2.5-->
|
||||
<link href="{{asset("plugins/fullcalendar/fullcalendar.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("plugins/fullcalendar/fullcalendar.print.css")}}" rel="stylesheet" type="text/css" media='print' />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("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="{{asset("dist/css/skins/_all-skins.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- iCheck -->
|
||||
<link href="{{asset("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("dist/css/tabby.css")}}" type="text/css">
|
||||
<link href="{{asset("downloads/jquerysctipttop.css")}}" rel="stylesheet" type="text/css">
|
||||
<link href="{{asset("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="{{asset("dist/css/tabby.css")}}" type="text/css"> -->
|
||||
|
||||
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
|
||||
|
||||
<link href="{{asset("dist/css/editor.css")}}" type="text/css" rel="stylesheet"/>
|
||||
<script src="{{asset("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]-->
|
||||
</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>
|
||||
@if(Auth::user())
|
||||
<!-- 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="dropdown messages-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-envelope-o"></i>
|
||||
<span class="label label-success">4</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header">You have 4 messages</li>
|
||||
<li>
|
||||
<!-- inner menu: contains the actual data -->
|
||||
<ul class="menu">
|
||||
<li><!-- start message -->
|
||||
<a href="#">
|
||||
<div class="pull-left">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image"/>
|
||||
</div>
|
||||
<h4>
|
||||
Support Team
|
||||
<small><i class="fa fa-clock-o"></i> 5 mins</small>
|
||||
</h4>
|
||||
<p>Why not buy a new awesome theme?</p>
|
||||
</a>
|
||||
</li><!-- end message -->
|
||||
</ul>
|
||||
</li>
|
||||
<li class="footer"><a href="#">See All Messages</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}"class="user-image" alt="User Image"/>
|
||||
<span class="hidden-xs">{{Auth::user()->name}}</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<!-- User image -->
|
||||
<li class="user-header">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
<p>
|
||||
|
||||
{{Auth::user()->name}} - {{Auth::user()->role}}
|
||||
<small></small>
|
||||
</p>
|
||||
</li>
|
||||
<!-- Menu Footer-->
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
<a href="{{url('user-profile/'.Auth::user()->id)}}" class="btn btn-default btn-flat">Profile</a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="{{url('auth/logout')}}" class="btn btn-default btn-flat">Sign out</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@else
|
||||
|
||||
<li>
|
||||
<a href="{{url('auth/login')}}" class="logo"><span>Sign In</span></a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="{{url('auth/register')}}" class="logo"><span>Register</span></a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
@endif
|
||||
</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">
|
||||
|
||||
@yield('sidebar')
|
||||
|
||||
<li class="header">TICKETS</li>
|
||||
<li>
|
||||
<a href="{{ route('ticket') }}">
|
||||
<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:#ddd ;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 @yield('Home') ><a href="#">Home</a></li>
|
||||
<li @yield('My') ><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>
|
||||
|
||||
|
||||
@yield('content')
|
||||
|
||||
</div><!-- /.content-wrapper -->
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b>Version</b> 2.0
|
||||
</div>
|
||||
<strong>Copyright © 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="{{asset("downloads/jquery.min.js")}}"></script>
|
||||
<!-- Bootstrap 3.3.2 JS -->
|
||||
<script src="{{asset("downloads/bootstrap.min.js")}}" type="text/javascript"></script>
|
||||
<!-- Slimscroll -->
|
||||
<script src="{{asset("plugins/slimScroll/jquery.slimscroll.min.js")}}" type="text/javascript"></script>
|
||||
<!-- FastClick -->
|
||||
<script src='{{asset("plugins/fastclick/fastclick.min.js")}}'></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="{{asset("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("plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
|
||||
<!-- Page Script -->
|
||||
<!-- // <script src="../plugins/jQuery/jQuery-2.1.3.min.js"></script> -->
|
||||
<script src="{{asset("dist/js/tabby.js")}}"></script>
|
||||
|
||||
<script src="{{asset("dist/js/editor.js")}}"></script>
|
||||
|
||||
@yield('footer')
|
||||
|
||||
</body>
|
||||
</html>
|
||||
306
code/resources/views/themes/default1/layouts/agent.blade.php
Normal file
306
code/resources/views/themes/default1/layouts/agent.blade.php
Normal file
@@ -0,0 +1,306 @@
|
||||
<!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="{{asset("plugins/fullcalendar/fullcalendar.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("plugins/fullcalendar/fullcalendar.print.css")}}" rel="stylesheet" type="text/css" media='print' />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("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="{{asset("dist/css/skins/_all-skins.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- iCheck -->
|
||||
<link href="{{asset("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("dist/css/tabby.css")}}" type="text/css">
|
||||
<link href="http://www.jqueryscript.net/css/jquerysctipttop.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">
|
||||
<!-- 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]-->
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||
@yield('HeadInclude')
|
||||
</head>
|
||||
<body class="skin-blue">
|
||||
<div class="wrapper" id="RefreshAssign">
|
||||
|
||||
<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 @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>
|
||||
</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="{{ url('/auth/logout') }}" 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">
|
||||
@yield('sidebar')
|
||||
<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 @yield('myticket')>
|
||||
<a href="{{url('ticket/myticket')}}">
|
||||
<i class="fa fa-user"></i> <span>My Tickets</span>
|
||||
<?php $myticket = App\Model\Ticket\Tickets::where('user_id', Auth::user()->id)->get();?>
|
||||
<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>
|
||||
<?php $unassigned = App\Model\Ticket\Tickets::where('assigned_to', '0')->get();?>
|
||||
<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\Ticket\Tickets::where('status', '5')->get();?>
|
||||
<small class="label pull-right bg-green">{{count($deleted)}}</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; border-top:1px solid #F0F0F0;">
|
||||
<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="#">Dashboard</a></li>
|
||||
<li id="bar" @yield('profile') ><a href="#">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('closed')><a href="{{ url('/ticket/closed') }}" >Closed</a></li>
|
||||
<li id="bar" @yield('newticket')><a href="{{ url('/newticket') }}" >New Ticket</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> 0.1
|
||||
</div>
|
||||
<strong>Copyright © 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="{{asset("plugins/slimScroll/jquery.slimscroll.min.js")}}" type="text/javascript"></script>
|
||||
<!-- FastClick -->
|
||||
<script src='{{asset("plugins/fastclick/fastclick.min.js")}}'></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="{{asset("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("plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
<!-- // <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> -->
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="js/jquery.maskedinput.min.js"></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="{{asset("dist/js/tabby.js")}}"></script>
|
||||
@yield('FooterInclude')
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,454 @@
|
||||
<!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="{{asset("plugins/fullcalendar/fullcalendar.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("plugins/fullcalendar/fullcalendar.print.css")}}" rel="stylesheet" type="text/css" media='print' />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("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="{{asset("dist/css/skins/_all-skins.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- iCheck -->
|
||||
<link href="{{asset("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("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:// -->
|
||||
<link rel="stylesheet" href="{{asset("dist/css/editor.css")}}" type="text/css">
|
||||
<link href="{{asset("plugins/filebrowser/plugin.js")}}" 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 class="skin-blue">
|
||||
<div class="wrapper">
|
||||
|
||||
<header class="main-header">
|
||||
<?php $company = App\Model\Settings\Company::where('id', '=', '1')->first();?>
|
||||
|
||||
<img src="{{asset('dist')}}{{'/'}}{{$company->logo}}" class="logo" alt="User Image" />
|
||||
<!-- 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>
|
||||
@if(Auth::user())
|
||||
@if(Auth::user()->role == 'agent'|| Auth::user()->role == 'admin')
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse">
|
||||
<ul class="tabs tabs-horizontal nav navbar-nav">
|
||||
<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>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
@endif
|
||||
@if(Auth::user()->role == 'admin' || Auth::user()->role == 'agent')
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="{{url('agents')}}">Admin 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">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}"class="user-image" alt="User Image"/>
|
||||
<span class="hidden-xs">{{Auth::user()->user_name}}</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<!-- User image -->
|
||||
<li class="user-header">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
<p>
|
||||
|
||||
{{Auth::user()->user_name}} - {{Auth::user()->role}}
|
||||
<small></small>
|
||||
</p>
|
||||
</li>
|
||||
<!-- Menu Footer-->
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
<a href="{{url('agent-profile')}}" class="btn btn-default btn-flat">Profile</a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="{{url('auth/logout')}}" class="btn btn-default btn-flat">Sign out</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@elseif(Auth::user()->role == 'user' )
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
|
||||
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}"class="user-image" alt="User Image"/>
|
||||
<span class="hidden-xs">{{Auth::user()->name}}</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<!-- User image -->
|
||||
<li class="user-header">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
<p>
|
||||
|
||||
{{Auth::user()->user_name}} - {{Auth::user()->role}}
|
||||
<small></small>
|
||||
</p>
|
||||
</li>
|
||||
<!-- Menu Footer-->
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
<a href="{{url('user-profile')}}" class="btn btn-default btn-flat">Profile</a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="{{url('auth/logout')}}" class="btn btn-default btn-flat">Sign out</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@endif
|
||||
|
||||
@else
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
<li>
|
||||
<a href="{{url('auth/login')}}" class="logo"><span>Sign In</span></a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="{{url('auth/register')}}" class="logo"><span>Register</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</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">
|
||||
@if(Auth::user())
|
||||
@if(Auth::user()->role == 'admin'||Auth::user()->role == 'agent')
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>{{Auth::user()->name}}</p>
|
||||
@if(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>
|
||||
|
||||
<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 @yield('myticket')>
|
||||
<a href="{{url('ticket/myticket')}}">
|
||||
<i class="fa fa-user"></i> <span>My Tickets</span>
|
||||
<?php $myticket = App\Model\Ticket\Tickets::where('user_id', Auth::user()->id)->get();?>
|
||||
<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>
|
||||
<?php $unassigned = App\Model\Ticket\Tickets::where('assigned_to', '0')->get();?>
|
||||
<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\Ticket\Tickets::where('status', '5')->get();?>
|
||||
<small class="label pull-right bg-green">{{count($deleted)}}</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>
|
||||
|
||||
@elseif(Auth::user()->role == 'user')
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>{{Auth::user()->name}}</p>
|
||||
@if(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">MAIN NAVIGATION</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="../../index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
|
||||
<li><a href="../../index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="{{url('myticket')}}">
|
||||
<i class="fa fa-th"></i> <span>MyTickets</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="../widgets.html">
|
||||
<i class="fa fa-th"></i> <span>Submit a Tickets</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
|
||||
@endif
|
||||
|
||||
@else
|
||||
|
||||
<ul class="sidebar-menu">
|
||||
<li>
|
||||
<a href="{{url('getform')}}">
|
||||
<i class="fa fa-envelope"></i> <span>Open A New Ticket</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="sidebar-menu">
|
||||
<li>
|
||||
<a href="{{url('checkticket')}}">
|
||||
<i class="fa fa-th"></i> <span>Check your Ticket</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@endif
|
||||
|
||||
</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 @yield('dashboard-bar')" id="tabA">
|
||||
<ul class="nav navbar-nav">
|
||||
<li id="bar" @yield('dashboard') ><a href="#">Dashboard</a></li>
|
||||
<li id="bar" @yield('profile') ><a href="#">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('closed')><a href="{{ url('/ticket/closed') }}" >Closed</a></li>
|
||||
<li id="bar" @yield('newticket')><a href="{{ url('/newticket') }}" >New Ticket</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> 0.1
|
||||
</div>
|
||||
<strong>Copyright © 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="{{asset("plugins/slimScroll/jquery.slimscroll.min.js")}}" type="text/javascript"></script>
|
||||
<!-- FastClick -->
|
||||
<script src='{{asset("plugins/fastclick/fastclick.min.js")}}'></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="{{asset("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("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 type="text/javascript">
|
||||
// $(document).ready(function() {
|
||||
|
||||
// $("#content").Editor();
|
||||
|
||||
// });
|
||||
// </script>
|
||||
<!-- // <script src="../plugins/jQuery/jQuery-2.1.3.min.js"></script> -->
|
||||
<script src="{{asset("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("//cdn.ckeditor.com/4.4.3/full/ckeditor.js")}}"></script>
|
||||
<script src="{{asset("plugins/filebrowser/plugin.js")}}"></script>
|
||||
|
||||
@yield('FooterInclude')
|
||||
</body>
|
||||
</html>
|
||||
571
code/resources/views/themes/default1/layouts/blank.blade.php
Normal file
571
code/resources/views/themes/default1/layouts/blank.blade.php
Normal file
@@ -0,0 +1,571 @@
|
||||
<!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="{{asset("plugins/fullcalendar/fullcalendar.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("plugins/fullcalendar/fullcalendar.print.css")}}" rel="stylesheet" type="text/css" media='print' />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("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="{{asset("dist/css/skins/_all-skins.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- iCheck -->
|
||||
<link href="{{asset("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("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:// -->
|
||||
<link rel="stylesheet" href="{{asset("dist/css/editor.css")}}" type="text/css">
|
||||
<link href="{{asset("plugins/filebrowser/plugin.js")}}" 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]-->
|
||||
@yield('HeadInclude')
|
||||
</head>
|
||||
<body class="skin-blue">
|
||||
<div class="wrapper">
|
||||
|
||||
<header class="main-header">
|
||||
<?php $company = App\Model\Settings\Company::where('id', '=', '1')->first();?>
|
||||
|
||||
<img src="{{asset('dist')}}{{'/'}}{{$company->logo}}" class="logo" alt="User Image" />
|
||||
<!-- 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>
|
||||
@if(Auth::user())
|
||||
@if(Auth::user()->role == 'agent')
|
||||
|
||||
<ul class="tabs tabs-horizontal nav navbar-nav">
|
||||
|
||||
<li @yield('Users')><a data-target="#tabF" href="#" >Users</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
@endif
|
||||
@if(Auth::user()->role == 'admin')
|
||||
<!-- 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>
|
||||
|
||||
</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">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}"class="user-image" alt="User Image"/>
|
||||
<span class="hidden-xs">{{Auth::user()->user_name}}</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<!-- User image -->
|
||||
<li class="user-header">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
<p>
|
||||
|
||||
{{Auth::user()->user_name}} - {{Auth::user()->role}}
|
||||
<small></small>
|
||||
</p>
|
||||
</li>
|
||||
<!-- Menu Footer-->
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
<a href="{{url('admin-profile')}}" class="btn btn-default btn-flat">Profile</a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="{{url('auth/logout')}}" class="btn btn-default btn-flat">Sign out</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@elseif(Auth::user()->role == 'user' || Auth::user()->role == 'agent' )
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
|
||||
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}"class="user-image" alt="User Image"/>
|
||||
<span class="hidden-xs">{{Auth::user()->user_name}}</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<!-- User image -->
|
||||
<li class="user-header">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
<p>
|
||||
|
||||
{{Auth::user()->user_name}} - {{Auth::user()->role}}
|
||||
<small></small>
|
||||
</p>
|
||||
</li>
|
||||
<!-- Menu Footer-->
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
@if(Auth::user()->role == 'agent')
|
||||
<a href="{{url('agent-profile')}}" class="btn btn-default btn-flat">Profile</a>
|
||||
@else
|
||||
<a href="{{url('user-profile')}}" class="btn btn-default btn-flat">Profile</a>
|
||||
|
||||
@endif
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="{{url('auth/logout')}}" class="btn btn-default btn-flat">Sign out</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@endif
|
||||
|
||||
@else
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
<li>
|
||||
<a href="{{url('auth/login')}}" class="logo"><span>Sign In</span></a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="{{url('auth/register')}}" class="logo"><span>Register</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</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">
|
||||
@if(Auth::user())
|
||||
@if(Auth::user()->role == 'agent')
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>{{Auth::user()->user_name}}</p>
|
||||
@if(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>
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
@elseif(Auth::user()->role == 'admin')
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>{{Auth::user()->user_name}}</p>
|
||||
@if(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>
|
||||
<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 @yield('myticket')>
|
||||
<a href="{{url('ticket/myticket')}}">
|
||||
<i class="fa fa-user"></i> <span>My Tickets</span>
|
||||
<?php $myticket = App\Model\Ticket\Tickets::where('user_id', Auth::user()->id)->get();?>
|
||||
<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>
|
||||
<?php $unassigned = App\Model\Ticket\Tickets::where('assigned_to', '0')->get();?>
|
||||
<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\Ticket\Tickets::where('status', '5')->get();?>
|
||||
<small class="label pull-right bg-green">{{count($deleted)}}</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>
|
||||
|
||||
|
||||
|
||||
@elseif(Auth::user()->role == 'user')
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="{{asset('dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>{{Auth::user()->user_name}}</p>
|
||||
@if(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">MAIN NAVIGATION</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="../../index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
|
||||
<li><a href="../../index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="{{url('myticket')}}">
|
||||
<i class="fa fa-th"></i> <span>MyTickets</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="../widgets.html">
|
||||
<i class="fa fa-th"></i> <span>Submit a Tickets</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
|
||||
@endif
|
||||
|
||||
@else
|
||||
|
||||
<ul class="sidebar-menu">
|
||||
<li>
|
||||
<a href="{{url('getform')}}">
|
||||
<i class="fa fa-envelope"></i> <span>Open A New Ticket</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="sidebar-menu">
|
||||
<li>
|
||||
<a href="{{url('checkticket')}}">
|
||||
<i class="fa fa-th"></i> <span>Check your Ticket</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@endif
|
||||
|
||||
</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">
|
||||
|
||||
</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') }}" >Emails</a></li></a></li>
|
||||
<li id="bar" @yield('ban')><a href="{{ url('banlist') }}" >Ban List</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 Topic</a></li>
|
||||
<li id="bar" @yield('sla')><a href="{{url('sla')}}">SLA Plans</a></li>
|
||||
<li id="bar" @yield('forms')><a href="{{url('form')}}">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('user-bar')" id="tabF">
|
||||
<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>
|
||||
</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> 0.1
|
||||
</div>
|
||||
<strong>Copyright © 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="{{asset("plugins/slimScroll/jquery.slimscroll.min.js")}}" type="text/javascript"></script>
|
||||
<!-- FastClick -->
|
||||
<script src='{{asset("plugins/fastclick/fastclick.min.js")}}'></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="{{asset("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("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 type="text/javascript">
|
||||
// $(document).ready(function() {
|
||||
|
||||
// $("#content").Editor();
|
||||
|
||||
// });
|
||||
// </script>
|
||||
<!-- // <script src="../plugins/jQuery/jQuery-2.1.3.min.js"></script> -->
|
||||
<script src="{{asset("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("//cdn.ckeditor.com/4.4.3/full/ckeditor.js")}}"></script>
|
||||
<script src="{{asset("plugins/filebrowser/plugin.js")}}"></script>
|
||||
|
||||
@yield('FooterInclude')
|
||||
</body>
|
||||
</html>
|
||||
394
code/resources/views/themes/default1/layouts/guest.blade.php
Normal file
394
code/resources/views/themes/default1/layouts/guest.blade.php
Normal file
@@ -0,0 +1,394 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>AdminLTE 2 | Boxed Layout</title>
|
||||
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
|
||||
<!-- Bootstrap 3.3.2 -->
|
||||
<link href="../../bootstrap/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="https://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" />
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- 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>
|
||||
<!-- ADD THE CLASS layout-boxed TO GET A BOXED LAYOUT -->
|
||||
<body class="skin-blue layout-boxed">
|
||||
<!-- Site wrapper -->
|
||||
<div class="wrapper">
|
||||
|
||||
<header class="main-header">
|
||||
<a href="../../index2.html" class="logo"><b>Admin</b>LTE</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>
|
||||
</a>
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<!-- Messages: style can be found in dropdown.less-->
|
||||
<li class="dropdown messages-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-envelope-o"></i>
|
||||
<span class="label label-success">4</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header">You have 4 messages</li>
|
||||
<li>
|
||||
<!-- inner menu: contains the actual data -->
|
||||
<ul class="menu">
|
||||
<li><!-- start message -->
|
||||
<a href="#">
|
||||
<div class="pull-left">
|
||||
<img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image"/>
|
||||
</div>
|
||||
<h4>
|
||||
Support Team
|
||||
<small><i class="fa fa-clock-o"></i> 5 mins</small>
|
||||
</h4>
|
||||
<p>Why not buy a new awesome theme?</p>
|
||||
</a>
|
||||
</li><!-- end message -->
|
||||
</ul>
|
||||
</li>
|
||||
<li class="footer"><a href="#">See All Messages</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- Notifications: style can be found in dropdown.less -->
|
||||
<li class="dropdown notifications-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-bell-o"></i>
|
||||
<span class="label label-warning">10</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header">You have 10 notifications</li>
|
||||
<li>
|
||||
<!-- inner menu: contains the actual data -->
|
||||
<ul class="menu">
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="fa fa-users text-aqua"></i> 5 new members joined today
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="footer"><a href="#">View all</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- Tasks: style can be found in dropdown.less -->
|
||||
<li class="dropdown tasks-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-flag-o"></i>
|
||||
<span class="label label-danger">9</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header">You have 9 tasks</li>
|
||||
<li>
|
||||
<!-- inner menu: contains the actual data -->
|
||||
<ul class="menu">
|
||||
<li><!-- Task item -->
|
||||
<a href="#">
|
||||
<h3>
|
||||
Design some buttons
|
||||
<small class="pull-right">20%</small>
|
||||
</h3>
|
||||
<div class="progress xs">
|
||||
<div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
|
||||
<span class="sr-only">20% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li><!-- end task item -->
|
||||
</ul>
|
||||
</li>
|
||||
<li class="footer">
|
||||
<a href="#">View all tasks</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<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>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- =============================================== -->
|
||||
|
||||
<!-- Left side column. contains the sidebar -->
|
||||
<aside class="main-sidebar">
|
||||
<!-- sidebar: style can be found in sidebar.less -->
|
||||
<section class="sidebar">
|
||||
<!-- Sidebar user panel -->
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image" />
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>Alexander Pierce</p>
|
||||
|
||||
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
|
||||
</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">MAIN NAVIGATION</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="../../index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
|
||||
<li><a href="../../index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview active">
|
||||
<a href="#">
|
||||
<i class="fa fa-files-o"></i>
|
||||
<span>Layout Options</span>
|
||||
<span class="label label-primary pull-right">4</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="top-nav.html"><i class="fa fa-circle-o"></i> Top Navigation</a></li>
|
||||
<li class="active"><a href="boxed.html"><i class="fa fa-circle-o"></i> Boxed</a></li>
|
||||
<li><a href="fixed.html"><i class="fa fa-circle-o"></i> Fixed</a></li>
|
||||
<li><a href="collapsed-sidebar.html"><i class="fa fa-circle-o"></i> Collapsed Sidebar</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="../widgets.html">
|
||||
<i class="fa fa-th"></i> <span>Widgets</span> <small class="label pull-right bg-green">new</small>
|
||||
</a>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-pie-chart"></i>
|
||||
<span>Charts</span>
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="../charts/morris.html"><i class="fa fa-circle-o"></i> Morris</a></li>
|
||||
<li><a href="../charts/flot.html"><i class="fa fa-circle-o"></i> Flot</a></li>
|
||||
<li><a href="../charts/inline.html"><i class="fa fa-circle-o"></i> Inline charts</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-laptop"></i>
|
||||
<span>UI Elements</span>
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="../UI/general.html"><i class="fa fa-circle-o"></i> General</a></li>
|
||||
<li><a href="../UI/icons.html"><i class="fa fa-circle-o"></i> Icons</a></li>
|
||||
<li><a href="../UI/buttons.html"><i class="fa fa-circle-o"></i> Buttons</a></li>
|
||||
<li><a href="../UI/sliders.html"><i class="fa fa-circle-o"></i> Sliders</a></li>
|
||||
<li><a href="../UI/timeline.html"><i class="fa fa-circle-o"></i> Timeline</a></li>
|
||||
<li><a href="../UI/modals.html"><i class="fa fa-circle-o"></i> Modals</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-edit"></i> <span>Forms</span>
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="../forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
|
||||
<li><a href="../forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
|
||||
<li><a href="../forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-table"></i> <span>Tables</span>
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="../tables/simple.html"><i class="fa fa-circle-o"></i> Simple tables</a></li>
|
||||
<li><a href="../tables/data.html"><i class="fa fa-circle-o"></i> Data tables</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="../calendar.html">
|
||||
<i class="fa fa-calendar"></i> <span>Calendar</span>
|
||||
<small class="label pull-right bg-red">3</small>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="../mailbox/mailbox.html">
|
||||
<i class="fa fa-envelope"></i> <span>Mailbox</span>
|
||||
<small class="label pull-right bg-yellow">12</small>
|
||||
</a>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-folder"></i> <span>Examples</span>
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="../examples/invoice.html"><i class="fa fa-circle-o"></i> Invoice</a></li>
|
||||
<li><a href="../examples/login.html"><i class="fa fa-circle-o"></i> Login</a></li>
|
||||
<li><a href="../examples/register.html"><i class="fa fa-circle-o"></i> Register</a></li>
|
||||
<li><a href="../examples/lockscreen.html"><i class="fa fa-circle-o"></i> Lockscreen</a></li>
|
||||
<li><a href="../examples/404.html"><i class="fa fa-circle-o"></i> 404 Error</a></li>
|
||||
<li><a href="../examples/500.html"><i class="fa fa-circle-o"></i> 500 Error</a></li>
|
||||
<li><a href="../examples/blank.html"><i class="fa fa-circle-o"></i> Blank Page</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-share"></i> <span>Multilevel</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> Level One</a></li>
|
||||
<li>
|
||||
<a href="#"><i class="fa fa-circle-o"></i> Level One <i class="fa fa-angle-left pull-right"></i></a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="#"><i class="fa fa-circle-o"></i> Level Two</a></li>
|
||||
<li>
|
||||
<a href="#"><i class="fa fa-circle-o"></i> Level Two <i class="fa fa-angle-left pull-right"></i></a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
|
||||
<li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="../../documentation/index.html"><i class="fa fa-book"></i> Documentation</a></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>
|
||||
|
||||
<!-- =============================================== -->
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Boxed Layout
|
||||
<small>Blank example to the boxed layout</small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li><a href="#">Examples</a></li>
|
||||
<li class="active">Blank page</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="callout callout-info">
|
||||
<h4>Tip!</h4>
|
||||
<p>Add the layout-boxed class to the body tag to get this layout. The boxed layout is helpful when working on large screens because it prevents the site from stretching very wide.</p>
|
||||
</div>
|
||||
<!-- Default box -->
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Title</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<button class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse"><i class="fa fa-minus"></i></button>
|
||||
<button class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove"><i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
Start creating your amazing application!
|
||||
</div><!-- /.box-body -->
|
||||
<div class="box-footer">
|
||||
Footer
|
||||
</div><!-- /.box-footer-->
|
||||
</div><!-- /.box -->
|
||||
|
||||
</section><!-- /.content -->
|
||||
</div><!-- /.content-wrapper -->
|
||||
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b>Version</b> 2.0
|
||||
</div>
|
||||
<strong>Copyright © 2014-2015 <a href="http://almsaeedstudio.com">Almsaeed Studio</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="../../bootstrap/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>
|
||||
</body>
|
||||
</html>
|
||||
104
code/resources/views/themes/default1/layouts/index.blade.php
Normal file
104
code/resources/views/themes/default1/layouts/index.blade.php
Normal file
@@ -0,0 +1,104 @@
|
||||
@extends('themes.default1.layouts.blank')
|
||||
|
||||
@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">{{Lang::get('lang.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">×</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">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<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>{{$email -> priority }}</td>
|
||||
<td>{{$email -> department }}</td>
|
||||
<td>{{$email -> created_at}}</td>
|
||||
<td>{{$email -> updated_at}}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['emails.destroy', $email->id],'method'=>'DELETE']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-star"></i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'actions-line icon-trash',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
45
code/resources/views/themes/default1/layouts/login.blade.php
Normal file
45
code/resources/views/themes/default1/layouts/login.blade.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<!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'>
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("dist/css/AdminLTE.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- iCheck -->
|
||||
<link href="{{asset("plugins/iCheck/square/blue.css")}}" rel="stylesheet" type="text/css" />
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- 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="login-page">
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
<a href="../../index2.html"><b>Faveo</b> HELP DESK</a>
|
||||
</div><!-- /.login-logo -->
|
||||
|
||||
@yield('body')
|
||||
|
||||
</div><!-- /.login-box -->
|
||||
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<!-- iCheck -->
|
||||
<script src="{{asset("plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$('input').iCheck({
|
||||
checkboxClass: 'icheckbox_square-blue',
|
||||
radioClass: 'iradio_square-blue',
|
||||
increaseArea: '20%' // optional
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,45 @@
|
||||
<!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'>
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("dist/css/AdminLTE.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- iCheck -->
|
||||
<link href="{{asset("plugins/iCheck/square/blue.css")}}" rel="stylesheet" type="text/css" />
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- 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="login-page">
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
<a href="../../index2.html"><b>Faveo</b> HELP DESK</a>
|
||||
</div><!-- /.login-logo -->
|
||||
|
||||
@yield('body')
|
||||
|
||||
</div><!-- /.login-box -->
|
||||
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<!-- iCheck -->
|
||||
<script src="{{asset("plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$('input').iCheck({
|
||||
checkboxClass: 'icheckbox_square-blue',
|
||||
radioClass: 'iradio_square-blue',
|
||||
increaseArea: '20%' // optional
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
269
code/resources/views/themes/default1/layouts/routes.php
Normal file
269
code/resources/views/themes/default1/layouts/routes.php
Normal file
@@ -0,0 +1,269 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register all of the routes for an application.
|
||||
| It's a breeze. Simply tell Laravel the URIs it should respond to
|
||||
| and give it the controller to call when that URI is requested.
|
||||
|
|
||||
*/
|
||||
|
||||
//Route::get('/', 'WelcomeController@index');
|
||||
|
||||
//Route::get('/', 'HomeController@index');
|
||||
|
||||
Route::controllers([
|
||||
'auth' => 'Auth\AuthController',
|
||||
'password' => 'Auth\PasswordController',
|
||||
]);
|
||||
|
||||
$router->get('getmail/{token}', 'Auth\AuthController@getMail');
|
||||
|
||||
/*
|
||||
|-------------------------------------------------------------------------------
|
||||
|Admin Routes
|
||||
|-------------------------------------------------------------------------------
|
||||
| Here is defining entire routes for the Admin Panel
|
||||
|
|
||||
|
|
||||
*/
|
||||
|
||||
// To get the dash board
|
||||
//Route::get('dashboard', 'HomeController@index');
|
||||
|
||||
Route::group(['middleware' => 'roles', 'roles' => 'user'], function () {
|
||||
// resource is a function to process create,edit,read and delete
|
||||
Route::resource('groups', 'Admin\GroupController'); // for group module, for CRUD
|
||||
|
||||
Route::resource('departments', 'Admin\DepartmentController'); // for departments module, for CRUD
|
||||
|
||||
Route::resource('teams', 'Admin\TeamController'); // in teams module, for CRUD
|
||||
|
||||
Route::resource('agents', 'Admin\AgentController'); // in agents module, for CRUD
|
||||
|
||||
Route::resource('emails', 'Admin\EmailsController'); // in emails module, for CRUD
|
||||
|
||||
Route::resource('banlist', 'Admin\BanlistController'); // in banlist module, for CRUD
|
||||
|
||||
Route::resource('template', 'Admin\TemplateController'); // in template module, for CRUD
|
||||
|
||||
Route::get('getdiagno', 'Admin\TemplateController@formDiagno'); // for getting form for diagnostic
|
||||
|
||||
Route::post('postdiagno', 'Admin\TemplateController@postDiagno'); // for getting form for diagnostic
|
||||
|
||||
Route::resource('helptopic', 'Admin\HelptopicController'); // in helptopics module, for CRUD
|
||||
|
||||
Route::resource('sla', 'Admin\SlaController'); // in SLA Plan module, for CRUD
|
||||
|
||||
Route::resource('form', 'Admin\FormController'); // in Form module, for CRUD
|
||||
|
||||
//$router->model('id','getcompany');
|
||||
|
||||
Route::get('getcompany', 'Admin\SettingsController@getcompany'); // direct to company setting page
|
||||
|
||||
Route::patch('postcompany/{id}', 'Admin\SettingsController@postcompany'); // Updating the Company table with requests
|
||||
|
||||
Route::get('getsystem', 'Admin\SettingsController@getsystem'); // direct to system setting page
|
||||
|
||||
Route::patch('postsystem/{id}', 'Admin\SettingsController@postsystem'); // Updating the System table with requests
|
||||
|
||||
Route::get('getticket', 'Admin\SettingsController@getticket'); // direct to ticket setting page
|
||||
|
||||
Route::patch('postticket/{id}', 'Admin\SettingsController@postticket'); // Updating the Ticket table with requests
|
||||
|
||||
Route::get('getemail', 'Admin\SettingsController@getemail'); // direct to email setting page
|
||||
|
||||
Route::patch('postemail/{id}', 'Admin\SettingsController@postemail'); // Updating the Email table with requests
|
||||
|
||||
Route::get('getaccess', 'Admin\SettingsController@getaccess'); // direct to access setting page
|
||||
|
||||
Route::patch('postaccess/{id}', 'Admin\SettingsController@postaccess'); // Updating the Access table with requests
|
||||
|
||||
Route::get('getresponder', 'Admin\SettingsController@getresponder'); // direct to responder setting page
|
||||
|
||||
Route::patch('postresponder/{id}', 'Admin\SettingsController@postresponder'); // Updating the Responder table with requests
|
||||
|
||||
Route::get('getalert', 'Admin\SettingsController@getalert'); // direct to alert setting page
|
||||
|
||||
Route::patch('postalert/{id}', 'Admin\SettingsController@postalert'); // Updating the Alert table with requests
|
||||
|
||||
/* Admin profile get */
|
||||
Route::get('admin-profile', 'Admin\ProfileController@getProfile');
|
||||
|
||||
/* Admin Profile Post */
|
||||
Route::patch('admin-profile', 'Admin\ProfileController@postProfile');
|
||||
|
||||
/* Admin Profile Password Post */
|
||||
Route::patch('admin-profile-password', 'Admin\ProfileController@postProfilePassword');
|
||||
|
||||
});
|
||||
/* calling ticket.blade.php file */
|
||||
|
||||
// $router->get('tickets','Admin\ThreadController@getTickets');
|
||||
|
||||
/* calling timeline.blade.php file */
|
||||
|
||||
Route::get('time', function () {
|
||||
return view('themes.default1.admin.tickets.timeline');
|
||||
|
||||
});
|
||||
|
||||
/*
|
||||
|------------------------------------------------------------------
|
||||
|Agent Routes
|
||||
|--------------------------------------------------------------------
|
||||
| Here defining entire Agent Panel routers
|
||||
|
|
||||
|
|
||||
*/
|
||||
Route::group(['middleware' => 'role.agent'], function () {
|
||||
/* User router is used to control the CRUD of user */
|
||||
Route::resource('user', 'Agent\UserController');
|
||||
|
||||
/* organization router used to deal CRUD function of organization */
|
||||
Route::resource('organizations', 'Agent\OrganizationController');
|
||||
|
||||
/* User profile get */
|
||||
Route::get('agent-profile', 'Agent\UserController@getProfile');
|
||||
|
||||
/* User Profile Post */
|
||||
Route::patch('agent-profile', 'Agent\UserController@postProfile');
|
||||
|
||||
/* Profile Password Post */
|
||||
Route::patch('agent-profile-password', 'Agent\UserController@postProfilePassword');
|
||||
|
||||
// Route::get('/abcd', 'GuestController@getList');
|
||||
|
||||
// Route::get('/qwer', ['as' => 'thread', 'uses' => 'GuestController@getThread']);
|
||||
|
||||
/* Fetch Emails */
|
||||
Route::get('/test', ['as' => 'thr', 'uses' => 'Agent\MailController@fetchdata']);
|
||||
|
||||
/* Get Ticket */
|
||||
Route::get('/ticket', ['as' => 'ticket', 'uses' => 'Agent\TicketController@ticket_list']);
|
||||
|
||||
/* Get Open Ticket */
|
||||
Route::get('/ticket/open', ['as' => 'open.ticket', 'uses' => 'Agent\TicketController@open_ticket_list']);
|
||||
|
||||
/* Get Answered Ticket */
|
||||
Route::get('/ticket/answered', ['as' => 'answered.ticket', 'uses' => 'Agent\TicketController@answered_ticket_list']);
|
||||
|
||||
/* Get Tickets Assigned to logged user */
|
||||
Route::get('/ticket/myticket', ['as' => 'myticket.ticket', 'uses' => 'Agent\TicketController@myticket_ticket_list']);
|
||||
|
||||
/* Get Overdue Ticket */
|
||||
Route::get('/ticket/overdue', ['as' => 'overdue.ticket', 'uses' => 'Agent\TicketController@overdue_ticket_list']);
|
||||
|
||||
/* Get Closed Ticket */
|
||||
Route::get('/ticket/closed', ['as' => 'closed.ticket', 'uses' => 'Agent\TicketController@closed_ticket_list']);
|
||||
|
||||
/* Get Create New Ticket */
|
||||
Route::get('/newticket', ['as' => 'newticket', 'uses' => 'Agent\TicketController@newticket']);
|
||||
|
||||
/* Post Create New Ticket */
|
||||
Route::post('/newticket/post', ['as' => 'post.newticket', 'uses' => 'Agent\TicketController@post_newticket']);
|
||||
|
||||
/* Get Thread by ID */
|
||||
Route::get('/thread/{id}', ['as' => 'ticket.thread', 'uses' => 'Agent\TicketController@thread']);
|
||||
|
||||
/* Patch Thread Reply */
|
||||
Route::patch('/thread/reply/{id}', ['as' => 'ticket.reply', 'uses' => 'Agent\TicketController@reply']);
|
||||
|
||||
/* Patch Internal Note */
|
||||
Route::patch('/internal/note/{id}', ['as' => 'Internal.note', 'uses' => 'Agent\TicketController@InternalNote']);
|
||||
|
||||
/* Patch Ticket assigned to whom */
|
||||
Route::patch('/ticket/assign/{id}', ['as' => 'assign.ticket', 'uses' => 'Agent\TicketController@assign']);
|
||||
|
||||
/* Patchi Ticket Edit */
|
||||
Route::patch('/ticket/post/edit/{id}', ['as' => 'ticket.post.edit', 'uses' => 'Agent\TicketController@ticket_edit_post']);
|
||||
|
||||
/* Get Print Ticket */
|
||||
Route::get('/ticket/print/{id}', ['as' => 'ticket.print', 'uses' => 'Agent\TicketController@ticket_print']);
|
||||
|
||||
/* Get Ticket Close */
|
||||
Route::get('/ticket/close/{id}', ['as' => 'ticket.close', 'uses' => 'Agent\TicketController@close']);
|
||||
|
||||
/* Get ticket Resolve */
|
||||
Route::get('/ticket/resolve/{id}', ['as' => 'ticket.resolve', 'uses' => 'Agent\TicketController@resolve']);
|
||||
|
||||
/* Get Ticket Open */
|
||||
Route::get('/ticket/open/{id}', ['as' => 'ticket.open', 'uses' => 'Agent\TicketController@open']);
|
||||
|
||||
/* Get Ticket Delete */
|
||||
Route::get('/ticket/delete/{id}', ['as' => 'ticket.delete', 'uses' => 'Agent\TicketController@delete']);
|
||||
|
||||
/* Get Ban Email */
|
||||
Route::get('/email/ban/{id}', ['as' => 'ban.email', 'uses' => 'Agent\TicketController@ban']);
|
||||
|
||||
/* Get Ticket Surrender */
|
||||
Route::get('/ticket/surrender/{id}', ['as' => 'ticket.surrender', 'uses' => 'Agent\TicketController@surrender']);
|
||||
|
||||
Route::get('/aaaa', 'Guest\GuestController@ticket_number');
|
||||
|
||||
});
|
||||
|
||||
/*
|
||||
|------------------------------------------------------------------
|
||||
|Guest Routes
|
||||
|--------------------------------------------------------------------
|
||||
| Here defining Guest User's routes
|
||||
|
|
||||
|
|
||||
*/
|
||||
|
||||
/* get the form for create a ticket by guest user */
|
||||
$router->get('getform', 'Guest\FormController@getForm');
|
||||
|
||||
/* post the AJAX form for create a ticket by guest user */
|
||||
$router->post('postform', 'Guest\FormController@postForm');
|
||||
|
||||
/* post the form to store the value */
|
||||
$router->post('postedform', 'Guest\FormController@postedForm');
|
||||
|
||||
//testing checkbox auto-populate
|
||||
$router->get('check', 'CheckController@getcheck');
|
||||
|
||||
$router->post('postcheck/{id}', 'CheckController@postcheck');
|
||||
|
||||
//guest layout
|
||||
$router->get('guest', 'Guest\OuthouseController@get');
|
||||
|
||||
//testing ckeditor
|
||||
//$router->get('ck','Admin\SettingsController@getck');
|
||||
|
||||
//===================================================================================
|
||||
|
||||
Route::group(['middleware' => 'role.user', 'roles' => 'user'], function () {
|
||||
/* User profile get */
|
||||
Route::get('user-profile', 'Guest\GuestController@getProfile');
|
||||
|
||||
/* User Profile Post */
|
||||
Route::patch('profile', 'Guest\GuestController@postProfile');
|
||||
|
||||
/* Profile Password Post */
|
||||
Route::patch('profile-password', 'Guest\GuestController@postProfilePassword');
|
||||
|
||||
});
|
||||
//====================================================================================
|
||||
/* Get my tickets */
|
||||
$router->get('myticket', ['as' => 'ticket', 'uses' => 'Guest\GuestController@getMyticket']);
|
||||
|
||||
/* Get my ticket thread */
|
||||
//$router->get('thread/{id}',['as'=>'ticket.thread','uses'=>'Guest\GuestController@getthread']);
|
||||
|
||||
// testing
|
||||
// Route::get('testing','Agent\MailController@getdata');
|
||||
|
||||
/* Check your Ticket */
|
||||
$router->get('checkticket', 'Guest\GuestController@getCheckTicket');
|
||||
|
||||
/* post Check Ticket */
|
||||
$router->post('postcheck', 'Guest\GuestController@PostCheckTicket');
|
||||
$router->get('postcheck', 'Guest\GuestController@PostCheckTicket');
|
||||
|
||||
/* 404 page */
|
||||
$router->get('404', 'error\ErrorController@error404');
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user