update for version 1.0.2
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">You are here: </li>
|
||||
<li><a href="#">Home</a></li>
|
||||
<li class="active">Ticket Status</li>
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li><a href="#">{!! Lang::get('lang.home') !!}</a></li>
|
||||
<li class="active">{!! Lang::get('lang.ticket_status') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@@ -32,12 +32,12 @@ $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',\Crypt:
|
||||
<!-- </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>
|
||||
{!! Lang::get('lang.change_status') !!} <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#" id="open"><i class="fa fa-folder-open" style="color:#FFD600;"> </i>Open</a></li>
|
||||
<li><a href="#" id="close"><i class="fa fa-check" style="color:#15F109;"> </i>Close</a></li>
|
||||
<li><a href="#" id="resolved"><i class="fa fa-check-circle " style="color:#0EF1BE;"> </i> Resolved</a></li>
|
||||
<li><a href="#" id="open"><i class="fa fa-folder-open" style="color:#FFD600;"> </i>{!! Lang::get('lang.open') !!}</a></li>
|
||||
<li><a href="#" id="close"><i class="fa fa-check" style="color:#15F109;"> </i>{!! Lang::get('lang.close') !!}</a></li>
|
||||
<li><a href="#" id="resolved"><i class="fa fa-check-circle " style="color:#0EF1BE;"> </i> {!! Lang::get('lang.resolved') !!}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@@ -65,13 +65,13 @@ $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',\Crypt:
|
||||
<?php
|
||||
$sla = $tickets->sla;
|
||||
$SlaPlan = App\Model\helpdesk\Manage\Sla_plan::where('id','=',1)->first();?>
|
||||
<b>SLA Plan: {{$SlaPlan->grace_period}} </b>
|
||||
<b>{!! Lang::get('lang.sla_plan') !!}: {{$SlaPlan->grace_period}} </b>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<b>Created Date: </b> {{ UTC::usertimezone($tickets->created_at) }}
|
||||
<b>{!! Lang::get('lang.created_date') !!}: </b> {{ UTC::usertimezone($tickets->created_at) }}
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<b>Due Date: </b>
|
||||
<b>{!! Lang::get('lang.due_date') !!}: </b>
|
||||
<?php
|
||||
$time = $tickets->created_at;
|
||||
$time = date_create($time);
|
||||
@@ -84,7 +84,7 @@ $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',\Crypt:
|
||||
@foreach($response as $last)
|
||||
<?php $ResponseDate = $last->created_at; ?>
|
||||
@endforeach
|
||||
<b>Last Response: </b> {{ UTC::usertimezone($ResponseDate)}}
|
||||
<b>{!! Lang::get('lang.last_response') !!}: </b> {{ UTC::usertimezone($ResponseDate)}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -92,7 +92,7 @@ $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',\Crypt:
|
||||
<div class="col-md-6">
|
||||
<table class="table table-hover">
|
||||
<!-- <tr><th></th><th></th></tr> -->
|
||||
<tr><td><b>Status:</b></td> <?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id','=',$tickets->status)->first();?>
|
||||
<tr><td><b>{!! Lang::get('lang.status') !!}:</b></td> <?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id','=',$tickets->status)->first();?>
|
||||
|
||||
@if($status->id == 1)
|
||||
<td title="{{$status->properties}}" style="color:orange">{{$status->state}}</td></tr>
|
||||
@@ -102,7 +102,7 @@ $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',\Crypt:
|
||||
<td title="{{$status->properties}}" style="color:green">{{$status->state}}</td></tr>
|
||||
@endif
|
||||
|
||||
<tr><td><b>Priority:</b></td> <?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();?>
|
||||
<tr><td><b>{!! Lang::get('lang.priority') !!}:</b></td> <?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();?>
|
||||
|
||||
@if($priority->priority_id == 1)
|
||||
<td title="{{$priority->priority_desc}}" style="color:green">{{$priority->priority}}</td>
|
||||
@@ -113,7 +113,7 @@ $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',\Crypt:
|
||||
@endif
|
||||
|
||||
</tr>
|
||||
<tr><td><b>Department:</b></td>
|
||||
<tr><td><b>{!! Lang::get('lang.department') !!}:</b></td>
|
||||
<?php
|
||||
$help_topic = App\Model\helpdesk\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();
|
||||
$department = App\Model\helpdesk\Agent\Department::where('id', '=', $help_topic->department)->first();
|
||||
@@ -126,8 +126,8 @@ $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',\Crypt:
|
||||
<!-- <div class="callout callout-success"> -->
|
||||
<table class="table table-hover">
|
||||
<!-- <tr><th></th><th></th></tr> -->
|
||||
<tr><td><b>Help Topic:</b></td> <?php $help_topic = App\Model\helpdesk\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
|
||||
<tr><td><b>Last Message:</b></td> <td>{{$last->poster}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.help_topic') !!}:</b></td> <?php $help_topic = App\Model\helpdesk\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.last_message') !!}:</b></td> <td>{{$last->poster}}</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
@@ -318,7 +318,7 @@ $data = $ConvDate[0];
|
||||
@endif
|
||||
<?php $id2 = Crypt::decrypt($id); ?>
|
||||
<div id="respond" class="comment-respond form-border">
|
||||
<h3 id="reply-title" class="comment-reply-title section-title"><i class="line"></i>Leave a Reply</h3>
|
||||
<h3 id="reply-title" class="comment-reply-title section-title"><i class="line"></i>{!! Lang::get('lang.leave_a_reply') !!}</h3>
|
||||
@if(Auth::user())
|
||||
{!! Form::open(['url'=>'post/reply/'.$id2.'#formabc']) !!}
|
||||
@else
|
||||
@@ -334,7 +334,7 @@ $data = $ConvDate[0];
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<button type="submit" class="btn btn-custom btn-lg">Post Comment</button>
|
||||
<button type="submit" class="btn btn-custom btn-lg">{!! Lang::get('lang.post_comment') !!}</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
|
||||
@section('submit')
|
||||
class = "active"
|
||||
@stop
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">You are here: </li>
|
||||
<li><a href="{!! URL::route('form') !!}">Submit Ticket</a></li>
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li><a href="{!! URL::route('form') !!}">{!! Lang::get('lang.submit_a_ticket') !!}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
@section('check')
|
||||
<div class="banner-wrapper text-center clearfix">
|
||||
<h3 class="banner-title text-info h4">Have a Ticket?</h3>
|
||||
<h3 class="banner-title text-info h4">{!! Lang::get('lang.have_a_ticket') !!}?</h3>
|
||||
<div class="banner-content">
|
||||
{!! Form::open(['url' => 'checkmyticket' , 'method' => 'POST'] )!!}
|
||||
|
||||
@@ -22,7 +26,7 @@
|
||||
{!! Form::label('ticket_number',Lang::get('lang.ticket_number'),['style' => 'display: block']) !!}
|
||||
{!! $errors->first('ticket_number', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('ticket_number',null,['class' => 'form-control']) !!}
|
||||
<br/><input type="submit" value="Check Ticket Status" class="btn btn-info">
|
||||
<br/><input type="submit" value="{!! Lang::get('lang.check_ticket_status') !!}" class="btn btn-info">
|
||||
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
@@ -56,11 +60,11 @@
|
||||
{!! Form::open(['action'=>'Client\helpdesk\FormController@postedForm','method'=>'post']) !!}
|
||||
<div>
|
||||
<div class="content-header">
|
||||
<h4>Ticket {!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-info pull-right'])!!}</h4>
|
||||
<h4>{!! Lang::get('lang.ticket') !!} {!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-info pull-right'])!!}</h4>
|
||||
</div>
|
||||
<div class="row col-md-12">
|
||||
<div class="col-md-12 form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
|
||||
{!! Form::label('help_topic', 'Choose a Help Topic') !!}
|
||||
{!! Form::label('help_topic', Lang::get('lang.choose_a_help_topic')) !!}
|
||||
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
|
||||
<?php
|
||||
$forms = App\Model\helpdesk\Form\Forms::get();
|
||||
|
||||
@@ -7,51 +7,41 @@
|
||||
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
@stop
|
||||
@section('home')
|
||||
class = "active"
|
||||
@stop
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">You are here: </li>
|
||||
<li><a href="{!! URL::route('home') !!}">Home</a></li>
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li><a href="{!! URL::route('home') !!}">{!! Lang::get('lang.home') !!}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
<div id="content" class="site-content col-md-12">
|
||||
|
||||
<div id="corewidgetbox">
|
||||
<div class="widgetrow text-center">
|
||||
@if(Auth::user())
|
||||
@else
|
||||
<span onclick="javascript: window.location.href='{{url('auth/register')}}';">
|
||||
<a href="{{url('auth/register')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_register.png');">
|
||||
<span class="widgetitemtitle">Register</span>
|
||||
</a>
|
||||
</span>
|
||||
@endif
|
||||
@if(App\Model\helpdesk\Settings\System::first()->status == 1)
|
||||
<span onclick="javascript: window.location.href='https://support.ebs.in/app/index.php?/Tickets/Submit';">
|
||||
<a href="{{url('form')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_submitticket.png');">
|
||||
<span class="widgetitemtitle">Submit a Ticket</span>
|
||||
</a>
|
||||
</span>
|
||||
@endif
|
||||
<span onclick="javascript: window.location.href='https://support.ebs.in/app/index.php?/News/List';">
|
||||
<a href="{{url('mytickets')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_news.png');">
|
||||
<span class="widgetitemtitle">My Tickets</span>
|
||||
</a>
|
||||
</span>
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<div id="corewidgetbox">
|
||||
<div class="widgetrow text-center">
|
||||
@if(Auth::user())
|
||||
@else
|
||||
<span onclick="javascript: window.location.href='{{url('auth/register')}}';">
|
||||
<a href="{{url('auth/register')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_register.png');">
|
||||
<span class="widgetitemtitle">{!! Lang::get('lang.register') !!}</span>
|
||||
</a>
|
||||
</span>
|
||||
@endif
|
||||
@if(App\Model\helpdesk\Settings\System::first()->status == 1)
|
||||
<span onclick="javascript: window.location.href='https://support.ebs.in/app/index.php?/Tickets/Submit';">
|
||||
<a href="{{url('form')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_submitticket.png');">
|
||||
<span class="widgetitemtitle">{!! Lang::get('lang.submit_a_ticket') !!}</span>
|
||||
</a>
|
||||
</span>
|
||||
@endif
|
||||
<span onclick="javascript: window.location.href='https://support.ebs.in/app/index.php?/News/List';">
|
||||
<a href="{{url('mytickets')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_news.png');">
|
||||
<span class="widgetitemtitle">{!! Lang::get('lang.my_tickets') !!}</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript"> $(function(){ $('.dialogerror, .dialoginfo, .dialogalert').fadeIn('slow');$("form").bind("submit", function(e){$(this).find("input:submit").attr("disabled", "disabled");});});</script>
|
||||
<script type="text/javascript" >try {if (top.location.hostname != self.location.hostname) { throw 1; }} catch (e) { top.location.href = self.location.href; }</script>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
<div class="site-hero clearfix">
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">You are here: </li>
|
||||
<li class="active"><a href="{!! URL::route('ticket2') !!}">Mytickets</a></li>
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li class="active"><a href="{!! URL::route('ticket2') !!}">{!! Lang::get('lang.my_tickets') !!}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@@ -32,8 +32,8 @@ $close = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=' , Auth::user()-
|
||||
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#tab_1" data-toggle="tab" aria-expanded="true">Opened <small class="label bg-orange">{!! $open->total() !!}</small></a></li>
|
||||
<li class=""><a href="#tab_2" data-toggle="tab" aria-expanded="false">Closed <small class="label bg-green">{!! $close->total() !!}</small></a></li>
|
||||
<li class="active"><a href="#tab_1" data-toggle="tab" aria-expanded="true">{!! Lang::get('lang.opened') !!} <small class="label bg-orange">{!! $open->total() !!}</small></a></li>
|
||||
<li class=""><a href="#tab_2" data-toggle="tab" aria-expanded="false">{!! Lang::get('lang.closed') !!} <small class="label bg-green">{!! $close->total() !!}</small></a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ $close = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=' , Auth::user()-
|
||||
<!-- Check all button -->
|
||||
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
|
||||
<a class="btn btn-default btn-sm" id="click1"><i class="fa fa-refresh"></i></a>
|
||||
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
|
||||
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
<div class="pull-right" id="refresh21">
|
||||
{!! $open->count().'-'.$open->total(); !!}
|
||||
</div>
|
||||
@@ -56,22 +56,22 @@ $close = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=' , Auth::user()-
|
||||
<thead>
|
||||
<th></th>
|
||||
<th>
|
||||
Subject
|
||||
{!! Lang::get('lang.subject') !!}
|
||||
</th>
|
||||
<th>
|
||||
Ticket ID
|
||||
{!! Lang::get('lang.ticket_id') !!}
|
||||
</th>
|
||||
<th>
|
||||
Priority
|
||||
{!! Lang::get('lang.priority') !!}
|
||||
</th>
|
||||
<th>
|
||||
Last Replier
|
||||
{!! Lang::get('lang.last_replier') !!}
|
||||
</th>
|
||||
<th>
|
||||
Last Activity
|
||||
{!! Lang::get('lang.last_activity') !!}
|
||||
</th>
|
||||
<th>
|
||||
Status
|
||||
{!! Lang::get('lang.status') !!}
|
||||
</th>
|
||||
</thead>
|
||||
<tbody id="hello">
|
||||
@@ -129,7 +129,7 @@ $close = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=' , Auth::user()-
|
||||
<!-- Check all button -->
|
||||
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
|
||||
<a class="btn btn-default btn-sm" id="click2"><i class="fa fa-refresh"></i></a>
|
||||
<input type="submit" class="btn btn-default text-blue btn-sm" name="submit" value="Open">
|
||||
<input type="submit" class="btn btn-default text-blue btn-sm" name="submit" value="{!! Lang::get('lang.open') !!}">
|
||||
<div class="pull-right" id="refresh22">
|
||||
{!! $close->count().'-'.$close->total(); !!}
|
||||
</div>
|
||||
@@ -141,22 +141,22 @@ $close = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=' , Auth::user()-
|
||||
<thead>
|
||||
<th></th>
|
||||
<th>
|
||||
Subject
|
||||
{!! Lang::get('lang.subject') !!}
|
||||
</th>
|
||||
<th>
|
||||
Ticket ID
|
||||
{!! Lang::get('lang.ticket_id') !!}
|
||||
</th>
|
||||
<th>
|
||||
Priority
|
||||
{!! Lang::get('lang.priority') !!}
|
||||
</th>
|
||||
<th>
|
||||
Last Replier
|
||||
{!! Lang::get('lang.last_replier') !!}
|
||||
</th>
|
||||
<th>
|
||||
Last Activity
|
||||
{!! Lang::get('lang.last_activity') !!}
|
||||
</th>
|
||||
<th>
|
||||
Status
|
||||
{!! Lang::get('lang.status') !!}
|
||||
</th>
|
||||
</thead>
|
||||
<tbody id="hello">
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
|
||||
@section('kb')
|
||||
class = "active"
|
||||
@stop
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here')!!}: </li>
|
||||
<li>{!! Lang::get('lang.home') !!}</li>
|
||||
<li>{!! Lang::get('lang.frequently_asked_questions') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.allarticle') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
@foreach($article as $arti)
|
||||
<h3><a href="{{route('show',$arti->slug)}}">{{$arti->name}}</a></h3>
|
||||
<hr>
|
||||
<ul class="col-md-10" id="article1">
|
||||
<li class="pull-left"><img src="{{asset('lb-faveo/Img/icon/time.png')}}"> <?php $utc = $arti->created_at;
|
||||
$time = UTC::usertimezone($utc);
|
||||
?>{!! $time !!}
|
||||
<?php
|
||||
$category_id = App\Model\kb\Relationship::where('article_id', $arti->id)->lists('category_id');
|
||||
foreach ($category_id as $id) {
|
||||
$category = App\Model\kb\Category::where('id', $id)->first();
|
||||
?>
|
||||
<a href="{{asset('category-list/'.$category->slug)}}"><img src="{{asset('lb-faveo/Img/icon/category.png')}}"> {{$category->name}}</a> </li>
|
||||
<?php }
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<br>
|
||||
<hr>
|
||||
|
||||
<?php $str = $arti->description ?>
|
||||
<?php $excerpt = App\Http\Controllers\client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 300) ?>
|
||||
|
||||
<p>{!!$excerpt!!} <a class="readmore-link" href="{{route('show',$arti->slug)}}">{!! Lang::get('lang.read_more') !!}</a></p>
|
||||
|
||||
|
||||
@endforeach
|
||||
<div class="pagination">
|
||||
<?php echo $article->render(); ?>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -0,0 +1,68 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
|
||||
@section('kb')
|
||||
class = "active"
|
||||
@stop
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li>{!! Lang::get('lang.home') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.allcategory') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<header class="archive-header">
|
||||
@foreach($categorys as $category)
|
||||
<h1 class="archive-title">{!! $category->name !!}</h1>
|
||||
</header><!-- .archive-header -->
|
||||
<blockquote class="archive-description" style="display: none;">
|
||||
<p>{!! $category->description !!}</p>
|
||||
</blockquote>
|
||||
@endforeach
|
||||
<div class="archive-list archive-article">
|
||||
<?php foreach ($article_id as $id) { ?>
|
||||
<?php $article = App\Model\kb\Article::where('id', $id)->get(); ?>
|
||||
@foreach($article as $arti)
|
||||
<article class="hentry">
|
||||
<header class="entry-header">
|
||||
<i class="fa fa-list-alt fa-2x fa-fw pull-left text-muted"></i>
|
||||
<h2 class="entry-title h4"><a href="{{url('show/'.$arti->slug)}}" onclick="toggle_visibility('foo');">{{$arti->name}}</a></h2>
|
||||
</header><!-- .entry-header -->
|
||||
<?php $str = $arti->description; ?>
|
||||
<?php $excerpt = App\Http\Controllers\client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 400); ?>
|
||||
<blockquote class="archive-description">
|
||||
<p>{!!$excerpt!!}</p><br/>
|
||||
<a class="readmore-link" href="{{url('show/'.$arti->slug)}}">{!! Lang::get('lang.read_more') !!}</a>
|
||||
</blockquote>
|
||||
<footer class="entry-footer">
|
||||
<div class="entry-meta text-muted">
|
||||
<span class="date"><i class="fa fa-clock-o fa-fw"></i> <time datetime="2013-10-22T20:01:58+00:00">{{$arti->created_at->format('l, d-m-Y')}}</time></span>
|
||||
</div><!-- .entry-meta -->
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- .hentry -->
|
||||
@endforeach
|
||||
<?php
|
||||
}
|
||||
echo $all->render();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function toggle_visibility(id) {
|
||||
var e = document.getElementById(id);
|
||||
if (e.style.display == 'block')
|
||||
e.style.display = 'none';
|
||||
else
|
||||
e.style.display = 'block';
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
@stop
|
||||
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
|
||||
@section('kb')
|
||||
class = "active"
|
||||
@stop
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here')!!}: </li>
|
||||
<li>{!! Lang::get('lang.home') !!}</li>
|
||||
<li>{!! Lang::get('lang.frequently_asked_questions') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.allcategory') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<!-- Start of Page Container -->
|
||||
<div class="row home-listing-area">
|
||||
<div class="span8">
|
||||
<h2>{!! Lang::get('lang.categories') !!}</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row separator">
|
||||
@foreach($categorys as $category)
|
||||
<div class="col-xs-6">
|
||||
{{-- get the article_id where category_id == current category --}}
|
||||
<?php
|
||||
$all = App\Model\kb\Relationship::where('category_id', $category->id)->get();
|
||||
//dd($all);
|
||||
/* from whole attribute pick the article_id */
|
||||
$article_id = $all->lists('article_id');
|
||||
?>
|
||||
|
||||
<section class="articles-list">
|
||||
<h3><a href="{{url('category-list/'.$category->slug)}}">{{$category->name}}</a> <span>({{count($all)}})</span></h3>
|
||||
<ul class="articles">
|
||||
<hr>
|
||||
<?php foreach ($article_id as $id) {
|
||||
?>
|
||||
<?php
|
||||
$article = App\Model\kb\Article::where('id', $id)->get();
|
||||
$article = $article->where('status', 1);
|
||||
$article = $article->where('type', 1);
|
||||
//dd($article);
|
||||
?>
|
||||
@foreach($article as $arti)
|
||||
<li class="article-entry image" style="margin-left: 50px;">
|
||||
<h4><a href="{{url('show/'.$arti->slug)}}">{{$arti->name}}</a></h4>
|
||||
<span class="article-meta">{{$arti->created_at}}
|
||||
<?php $str = $arti->description ?>
|
||||
<?php $excerpt = App\Http\Controllers\client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 55) ?>
|
||||
|
||||
<p>{!!$excerpt!!} <a class="readmore-link" href="{{url('show/'.$arti->slug)}}">{!! Lang::get('lang.read_more') !!}</a></p>
|
||||
</li>
|
||||
@endforeach
|
||||
<?php }
|
||||
?>
|
||||
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
<div>
|
||||
{!! $categorys->render() !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of page content -->
|
||||
|
||||
@stop
|
||||
@@ -0,0 +1,12 @@
|
||||
{!!$name!!}<br>
|
||||
<br>
|
||||
<br>
|
||||
{!!$email!!}
|
||||
<br>
|
||||
<br>
|
||||
{!!$subject!!}
|
||||
<br>
|
||||
<br>
|
||||
{!!$details!!}
|
||||
<br>
|
||||
<br>
|
||||
@@ -0,0 +1,94 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
|
||||
@section('contact')
|
||||
class = "active"
|
||||
@stop
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">You are here: </li>
|
||||
<li>Home</li>
|
||||
<li class="active">Contact Us</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@section('check')
|
||||
<!-- Start of Page Container -->
|
||||
|
||||
<div style="padding-top: 60px;">
|
||||
|
||||
@if($settings->address)
|
||||
<h2>Our Address</h2>
|
||||
{!! $settings->address !!}
|
||||
@endif
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-9">
|
||||
<article class="type-page hentry clearfix">
|
||||
<h1 class="post-title">
|
||||
<a href="#">Contact us</a>
|
||||
</h1>
|
||||
<hr>
|
||||
<p></p>
|
||||
</article>
|
||||
{!! Form::open(['method'=>'post','action'=>'client\kb\UserController@postContact']) !!}
|
||||
@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 {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name','Name') !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('email','Email') !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('subject') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('subject','Subject') !!}
|
||||
{!! $errors->first('subject', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('subject',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('message') ? 'has- error' : '' }}">
|
||||
{!! Form::label('message','Messege', ['style' => 'display: block']) !!}
|
||||
{!! $errors->first('message', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::textarea('message',null,['class' => 'form-control','size' => '30x7','id'=>'message']) !!}
|
||||
|
||||
</div>
|
||||
<div>
|
||||
|
||||
{!! Form::submit('Send Message',['class'=>'form-group btn btn-primary'])!!}
|
||||
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@stop
|
||||
@@ -0,0 +1,36 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">You are here: </li>
|
||||
<li>Home</li>
|
||||
<li>Frequently Asked Questions</li>
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
|
||||
<!-- Start of Page Container -->
|
||||
<div id="content" class="site-content col-md-9">
|
||||
<div class="row home-listing-area">
|
||||
<div class="span8">
|
||||
<h2>Faq</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row separator">
|
||||
|
||||
|
||||
<section>
|
||||
{!! $faq->faq !!}
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- end of page content -->
|
||||
|
||||
@stop
|
||||
@@ -0,0 +1,104 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
@section('home')
|
||||
class = "active"
|
||||
@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
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
<div class="container">
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li class="active">{!! Lang::get('lang.home') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
<div id="content" class="site-content col-md-9">
|
||||
<div class="row">
|
||||
<?php $categories = App\Model\kb\Category::paginate('4');
|
||||
?>
|
||||
@foreach($categorys as $category)
|
||||
{{-- get the article_id where category_id == current category --}}
|
||||
<?php
|
||||
$all = App\Model\kb\Relationship::where('category_id', '=',$category->id)->get();
|
||||
/* from whole attribute pick the article_id */
|
||||
$page = App\Model\kb\Relationship::where('category_id', '=',$category->id)->paginate('3');
|
||||
/* from whole attribute pick the article_id */
|
||||
$article_id = $page->lists('article_id');
|
||||
$count = count($article_id);
|
||||
?>
|
||||
<div class="col-md-6">
|
||||
<section class="box-categories">
|
||||
<h1 class="section-title h4 clearfix">
|
||||
<i class="fa fa-folder-open-o fa-fw text-muted"></i>
|
||||
<small class="pull-right"><i class="fa fa-hdd-o fa-fw"></i></small>
|
||||
{{$category->name}}
|
||||
</h1>
|
||||
<ul class="fa-ul">
|
||||
<?php foreach ($article_id as $id) {
|
||||
?>
|
||||
<?php
|
||||
$article = App\Model\kb\Article::where('id', '=', $id)->where('status', '=','1')->where('type', '=','1')->get();
|
||||
?>
|
||||
@foreach($article as $arti)
|
||||
<li>
|
||||
<i class="fa-li fa fa-list-alt fa-fw text-muted"></i>
|
||||
<h3 class="h5"><a href="#"><a href="{{url('show/'.$arti->slug)}}">{{$arti->name}}</a></h3>
|
||||
<span class="article-meta">{{$arti->created_at}}</span>
|
||||
<?php $str = $arti->description;
|
||||
$len = strlen($str); ?>
|
||||
<?php $excerpt = App\Http\Controllers\client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 50); ?>
|
||||
<p >{!!$excerpt!!} <br/><a class="more-link text-center" href="{{url('show/'.$arti->slug)}}" style="color: orange">{!! Lang::get('lang.read_more') !!}</a></p>
|
||||
</li>
|
||||
@endforeach
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<p class="more-link text-center"><a href="{{url('category-list/'.$category->slug)}}" class="btn btn-custom btn-xs">{!! Lang::get('lang.view_all') !!}</a></p>
|
||||
</section>
|
||||
</div>
|
||||
@endforeach
|
||||
{!! $categories->setPath('show/'); !!}
|
||||
</div>
|
||||
<section class="section">
|
||||
<div class="banner-wrapper banner-horizontal clearfix">
|
||||
<h4 class="banner-title h4">{!! Lang::get('lang.need_more_support') !!}?</h4>
|
||||
<div class="banner-content">
|
||||
<p>{!! Lang::get('lang.if_you_did_not_find_an_answer_please_raise_a_ticket_describing_the_issue') !!}.</p>
|
||||
</div>
|
||||
<p><a href="{{url('form')}}" class="btn btn-custom">{!! Lang::get('lang.submit_a_ticket') !!}</a></p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@section('category')
|
||||
<h2 class="section-title h4 clearfix">{!! Lang::get('lang.categories') !!}</h2>
|
||||
<ul class="nav nav-pills nav-stacked nav-categories">
|
||||
@foreach($categorys as $category)
|
||||
<?php
|
||||
$num = \App\Model\kb\Relationship::where('category_id','=', $category->id)->get();
|
||||
$article_id = $num->lists('article_id');
|
||||
$numcount = count($article_id);
|
||||
?>
|
||||
<li><a href="{{url('category-list/'.$category->slug)}}"><span class="badge pull-right">{{$numcount}}</span>{{$category->name}}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@stop
|
||||
|
||||
@stop
|
||||
@@ -0,0 +1,35 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li class="active">{{$page->name}}</li>
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
|
||||
<!-- Start of Page Container -->
|
||||
<div class="col-md-12">
|
||||
<div class="row home-listing-area">
|
||||
<div class="span8">
|
||||
<h2>{{$page->name}}</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row separator">
|
||||
|
||||
|
||||
<section>
|
||||
{!! $page->description !!}
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- end of page content -->
|
||||
</div>
|
||||
@stop
|
||||
@@ -0,0 +1,206 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
@section('HeadInclude')
|
||||
<link href="{{asset("lb-faveo/dist/css/AdminLTE.css")}}" rel="stylesheet" type="text/css" />
|
||||
@stop
|
||||
@section('breadcrumb')
|
||||
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">You are here: </li>
|
||||
|
||||
<li>Home</li>
|
||||
|
||||
<li class="active">Edit Profile</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<section class="section-title">
|
||||
<h2>
|
||||
Profile Settings </h2>
|
||||
</section>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
{!! Form::model($user,['url'=>'post-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('success1'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Success.
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success1')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- fail message -->
|
||||
@if(Session::has('fails1'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Failed.
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails1')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="form-group {{ $errors->has('firstname') ? 'has-error' : '' }}">
|
||||
<!-- first name -->
|
||||
{!! Form::label('firstname',Lang::get('lang.firstname')) !!}
|
||||
{!! $errors->first('firstname', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('firstname',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('lastname') ? 'has-error' : '' }}">
|
||||
<!-- last name -->
|
||||
{!! Form::label('lastname',Lang::get('lang.lastname')) !!}
|
||||
{!! $errors->first('lastname', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('lastname',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<!-- gender -->
|
||||
{!! Form::label('gender',Lang::get('lang.gender')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('gender','1',true) !!}{{Lang::get('lang.male')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('gender','0') !!}{{Lang::get('lang.female')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<!-- email -->
|
||||
{!! Form::label('email',Lang::get('lang.email')) !!}
|
||||
<div>
|
||||
{{$user->email}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('company') ? 'has-error' : '' }}">
|
||||
<!-- company -->
|
||||
{!! Form::label('company',Lang::get('lang.company')) !!}
|
||||
{!! $errors->first('company', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('company',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-3 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
<!-- phone extensionn -->
|
||||
{!! Form::label('ext',Lang::get('lang.ext')) !!}
|
||||
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('ext',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-9 form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
|
||||
<!-- phone number -->
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
<!-- mobile -->
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile')) !!}
|
||||
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('profile_pic') ? 'has-error' : '' }}" >
|
||||
<!-- profile pic -->
|
||||
<div class="btn btn-default btn-file">
|
||||
{!! Form::label('profile_pic',Lang::get('lang.profilepicture')) !!}
|
||||
{!! $errors->first('profile_pic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::file('profile_pic') !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{!! Form::token() !!}
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
{!! Form::model($user,['url'=>'client-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('success2'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Success.
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success2')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- fail message -->
|
||||
@if(Session::has('fails2'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Failed.
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails2')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- old password -->
|
||||
<div class="form-group has-feedback {{ $errors->has('old_password') ? 'has-error' : '' }}">
|
||||
{!! Form::label('old_password',Lang::get('lang.oldpassword')) !!}
|
||||
{!! Form::password('old_password',['placeholder'=>'Password','class' => 'form-control']) !!}
|
||||
{!! $errors->first('old_password', '<spam class="help-block">:message</spam>') !!}
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
</div>
|
||||
<!-- new password -->
|
||||
<div class="form-group has-feedback {{ $errors->has('new_password') ? 'has-error' : '' }}">
|
||||
{!! Form::label('new_password',Lang::get('lang.newpassword')) !!}
|
||||
{!! Form::password('new_password',['placeholder'=>'New Password','class' => 'form-control']) !!}
|
||||
{!! $errors->first('new_password', '<spam class="help-block">:message</spam>') !!}
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
</div>
|
||||
<!-- cofirm password -->
|
||||
<div class="form-group has-feedback {{ $errors->has('confirmpassword') ? 'has-error' : '' }}">
|
||||
{!! Form::label('confirm_password',Lang::get('lang.confirm_password')) !!}
|
||||
{!! Form::password('confirm_password',['placeholder'=>'Confirm Password','class' => 'form-control']) !!}
|
||||
{!! $errors->first('confirm_password', '<spam class="help-block">:message</spam>') !!}
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
@stop
|
||||
@@ -0,0 +1,39 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero">
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">You are here: </li>
|
||||
<li>Home</li>
|
||||
<li class="active">Search Results</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
@foreach($result as $arti)
|
||||
<article class="format-standard type-post hentry clearfix">
|
||||
|
||||
<header class="clearfix">
|
||||
<h3 class="post-title">
|
||||
<a href="{{url('show/'.$arti->slug)}}">{{$arti->name}}</a>
|
||||
</h3>
|
||||
<div class="post-meta clearfix">
|
||||
<span class="date">{{$arti->created_at->format('l, d-m-Y')}}</span>
|
||||
<span class="category"><a href="#" title="View all posts in Server & Database">Server & Database</a></span>
|
||||
</div><!-- end of post meta -->
|
||||
</header>
|
||||
<?php $str = $arti->description ?>
|
||||
<?php $excerpt = App\Http\Controllers\client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 100) ?>
|
||||
<p>{!!$excerpt!!} <a class="readmore-link" href="{{url('show/'.$arti->slug)}}">Read more</a></p>
|
||||
@endforeach
|
||||
</article>
|
||||
|
||||
<!-- end of page content -->
|
||||
|
||||
<div class="pagination">
|
||||
<?php echo $result->render(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div>
|
||||
@@ -0,0 +1,131 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
@section('breadcrumb')
|
||||
|
||||
<?php
|
||||
|
||||
$all = App\Model\kb\Relationship::where('article_id','=', $arti->id)->get();
|
||||
/* from whole attribute pick the article_id */
|
||||
$category_id = $all->lists('category_id');
|
||||
?>
|
||||
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<?php $category = App\Model\kb\Category::where('id', $category_id)->first(); ?>
|
||||
<li><a href="{{url('category-list/'.$category->slug)}}">{{$category->name}}</a></li>
|
||||
<li class="active">{{$arti->name}}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
|
||||
<!--
|
||||
<article class=" type-post format-standard hentry clearfix">
|
||||
|
||||
<h1 class="post-title"><a href="#">{{$arti->name}}</a></h1>
|
||||
|
||||
<div class="post-meta clearfix">
|
||||
<span class="date">{{$arti->created_at}}</span>
|
||||
<span class="category"><a href="#" title="View all posts in Server & Database">{{$category->name}}</a></span>
|
||||
</div> end of post meta
|
||||
{!!$arti->description!!}
|
||||
</article>-->
|
||||
|
||||
<article class="hentry">
|
||||
<header class="entry-header">
|
||||
<h1 class="entry-title">{{$arti->name}}</h1>
|
||||
|
||||
<div class="entry-meta text-muted">
|
||||
<span class="date"><i class="fa fa-film fa-fw"></i> <time datetime="2013-09-19T20:01:58+00:00">{{$arti->created_at}}</time></span>
|
||||
<span class="category"><i class="fa fa-folder-open-o fa-fw"></i> <a href="#">{{$category->name}}</a></span>
|
||||
</div><!-- .entry-meta -->
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content clearfix">
|
||||
|
||||
<p>{!!$arti->description!!}</p>
|
||||
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
</article><!-- .hentry -->
|
||||
<?php $comments = App\Model\kb\Comment::where('article_id', $arti->id)->where('status', '1')->get(); ?>
|
||||
|
||||
<div id="comments" class="comments-area">
|
||||
@foreach($comments as $comment)
|
||||
<ol class="comment-list">
|
||||
<li class="comment">
|
||||
<article class="comment-body">
|
||||
<footer class="comment-meta">
|
||||
<div class="comment-author">
|
||||
<img src="{{asset("lb-faveo/dist/img/avatar_1.png")}}" alt="" height="50" width="50" class="avatar" />
|
||||
<b class="fn"><a href="#" rel="external" class="url">{!! $comment->name !!}</a></b>
|
||||
</div><!-- .comment-author -->
|
||||
|
||||
<div class="comment-metadata">
|
||||
<small class="date text-muted">
|
||||
<time datetime="2013-10-23T01:50:50+00:00">{!! $comment->created_at !!}</time>
|
||||
</small>
|
||||
</div><!-- .comment-metadata -->
|
||||
</footer><!-- .comment-meta -->
|
||||
|
||||
<div class="comment-content">
|
||||
|
||||
<p>{!! $comment->comment !!}</p>
|
||||
</div><!-- .comment-content -->
|
||||
|
||||
<div class="comment-reply text-right">
|
||||
{{-- <a class="btn btn-custom btn-sm" href="#">Reply</a> --}}
|
||||
</div><!-- .comment-reply -->
|
||||
</article><!-- .comment-body -->
|
||||
</li><!-- .comment -->
|
||||
</ol><!-- .comment-list -->
|
||||
@endforeach
|
||||
<div id="respond" class="comment-respond form-border">
|
||||
<h3 id="reply-title" class="comment-reply-title section-title">{!! Lang::get('lang.leave_a_reply') !!}</h3>
|
||||
{!! Form::open(['method'=>'post','url'=>'postcomment/'.$arti->slug]) !!}
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<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" style="red">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="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="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>
|
||||
<button type="submit" class="btn btn-custom btn-lg">{!! Lang::get('lang.post_message') !!}</button>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<div class="form-group {{ $errors->has('comment') ? 'has- error' : '' }}">
|
||||
{!! Form::label('comment',Lang::get('lang.message')) !!}
|
||||
{!! $errors->first('comment', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::textarea('comment',null,['class' => 'form-control','size' => '30x8','id'=>'comment']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{!! Form::close() !!}
|
||||
</div><!-- #respond -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("textarea").wysihtml5();
|
||||
});
|
||||
</script>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -0,0 +1,330 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title> Faveo Knowledge Base</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("lb-faveo/plugins/fullcalendar/fullcalendar.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("lb-faveo/plugins/fullcalendar/fullcalendar.print.css")}}" rel="stylesheet" type="text/css" media='print' />
|
||||
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("lb-faveo/dist/css/app.css")}}" rel="stylesheet" type="text/css" />
|
||||
<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>
|
||||
<div id="page" class="hfeed site">
|
||||
<header id="masthead" class="site-header" role="banner">
|
||||
<div class="container">
|
||||
<div id="logo" class="site-logo text-center" style="font-size: 40px">
|
||||
<a href="{{url('/')}}" rel="home"><?php $company = App\Model\kb\Settings::where('id', '=', '1')->first(); ?>
|
||||
@if($company->logo)
|
||||
<img src="{{asset('lb-faveo/dist/image')}}{{'/'}}{{$company->logo}}" class="logo" alt="" width="200"/>
|
||||
@elseif($company->company_name)
|
||||
<b>{{$company->company_name}} </b>
|
||||
@else
|
||||
<b>Knowledge</b> Base
|
||||
@endif
|
||||
</a>
|
||||
</div><!-- #logo -->
|
||||
|
||||
<div id="navbar" class="navbar-wrapper text-center">
|
||||
<nav class="navbar navbar-default site-navigation" role="navigation">
|
||||
|
||||
<ul class="nav navbar-nav navbar-menu">
|
||||
<li class="active"><a href="{{route('home')}}">Home</a></li>
|
||||
<li><a href="#">KnowledgeBase</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="{{route('article-list')}}">Articles</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</li>
|
||||
<?php $pages = App\Model\kb\Page::where('status', '1')->where('visibility', '1')->get();
|
||||
?>
|
||||
@foreach($pages as $page)
|
||||
<li><a href="{{route('pages',$page->name)}}">{{$page->name}}</a></li>
|
||||
@endforeach
|
||||
<li><a href="{{route('contact')}}">Contact us</a></li>
|
||||
|
||||
@if(Auth::user())
|
||||
|
||||
|
||||
<li><a href="#" >My Profile</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<div class="banner-wrapper user-menu text-center clearfix">
|
||||
@if(Auth::user())
|
||||
@if(Auth::user()->profile_pic)
|
||||
<img src="{{asset('lb-faveo/dist/img')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image"/>
|
||||
@else
|
||||
<img src="{{ Gravatar::src(Auth::user()->email) }}" class="img-circle" alt="User Image">
|
||||
@endif
|
||||
@endif
|
||||
<span class="hidden-xs">{!! Auth::user()->firstname." ".Auth::user()->lastname !!}</span>
|
||||
<div class="banner-content">
|
||||
<a href="{{url('client-profile')}}" class="btn btn-custom btn-xs">Edit Profile</a> <a href="{{url('auth/logout')}}" class="btn btn-custom btn-xs">Log out</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul><!-- .navbar-user -->
|
||||
@else
|
||||
<ul class="nav navbar-nav navbar-login">
|
||||
<li><a href="#" class="collapsed" data-toggle="collapse" data-target="#login-form">Login <i class="sub-indicator fa fa-chevron-circle-down fa-fw text-muted"></i></a></li>
|
||||
</ul><!-- .navbar-login -->
|
||||
|
||||
<div id="login-form" class="login-form collapse fade clearfix">
|
||||
|
||||
{!! Form::open(['action'=>'Auth\AuthController@postLogin', 'method'=>'post']) !!}
|
||||
<div class="form-group has-feedback {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::text('email',null,['placeholder'=>'Email','class' => 'form-control']) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group has-feedback {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{!! Form::password('password',['placeholder'=>'Password','class' => 'form-control']) !!}
|
||||
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
</div>
|
||||
<ul class="list-unstyled pull-left">
|
||||
<li><a href="{{url('password/email')}}">Forgot password</a><br></li>
|
||||
<li><a href="{{url('auth/register')}}">Create Account</a></li>
|
||||
</ul>
|
||||
<button type="submit" class="btn btn-custom pull-right">Login</button>
|
||||
{!! Form::close() !!}
|
||||
</div><!-- #login-form -->
|
||||
@endif
|
||||
</nav><!-- #site-navigation -->
|
||||
</div><!-- #navbar -->
|
||||
<div id="header-search" class="site-search clearfix">
|
||||
@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 id="header-search" class="site-search clearfix" style="padding-top: 30px;"><!-- #header-search -->
|
||||
{!!Form::open(['method'=>'get','action'=>'client\kb\UserController@search','class'=>'search-form clearfix'])!!}
|
||||
<div class="form-border">
|
||||
|
||||
<div class="form-inline ">
|
||||
<div class="form-group">
|
||||
<input type="text" name="s" class="search-field form-control input-lg" title="Enter search term" placeholder="Have a question? Type your search term here..." />
|
||||
</div>
|
||||
<button type="submit" class="search-submit btn btn-custom btn-lg pull-right">Search</button>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
<!-- Right side column. Contains the navbar and content of the page -->
|
||||
@yield('breadcrumb')
|
||||
<!-- Main content -->
|
||||
<div id="main" class="site-main clearfix">
|
||||
<div class="container">
|
||||
<div class="content-area">
|
||||
<div class="row">
|
||||
@yield('content')
|
||||
<div id="sidebar" class="site-sidebar col-md-3">
|
||||
<div class="widget-area">
|
||||
<section id="section-banner" class="section">
|
||||
@yield('check')
|
||||
</section><!-- #section-banner -->
|
||||
<section id="section-categories" class="section">
|
||||
@yield('category')
|
||||
|
||||
</section><!-- #section-categories -->
|
||||
</div>
|
||||
</div><!-- #sidebar -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<footer id="colophon" class="site-footer" role="contentinfo">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="widget-area">
|
||||
<section id="section-about" class="section">
|
||||
<?php $footer = App\Model\kb\Footer::whereId('1')->first(); ?>
|
||||
<h2 class="section-title h4 clearfix">{{$footer->title}}</h2>
|
||||
<div class="textwidget">
|
||||
<p>{!!$footer->footer!!}</p>
|
||||
</div>
|
||||
</section><!-- #section-about -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="widget-area">
|
||||
<section id="section-latest-news" class="section">
|
||||
<?php $footer2 = App\Model\kb\Footer2::whereId('1')->first(); ?>
|
||||
@if($footer2->title)
|
||||
<h2 class="section-title h4 clearfix">{{$footer2->title}}</h2>
|
||||
<p>{!!$footer2->footer!!}</p>
|
||||
@else
|
||||
<h2 class="section-title h4 clearfix">Categories</h2>
|
||||
<?php $categorys = App\Model\kb\Category::get(); ?>
|
||||
@foreach($categorys as $category)
|
||||
<p><a href="{{url('category-list/'.$category->slug)}}">{{$category->name}}</a> </p>
|
||||
@endforeach
|
||||
@endif
|
||||
</section><!-- #section-latest-news -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="widget-area">
|
||||
<section id="section-newsletter" class="section">
|
||||
<?php $footer3 = App\Model\kb\Footer3::whereId('1')->first(); ?>
|
||||
<h2 class="section-title h4 clearfix">{{$footer3->title}}</h2>
|
||||
<p>{!!$footer3->footer!!}</p>
|
||||
</section><!-- #section-newsletter -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="widget-area">
|
||||
<section id="section-newsletter" class="section">
|
||||
<?php $footer4 = App\Model\kb\Footer4::whereId('1')->first(); ?>
|
||||
<h2 class="section-title h4 clearfix">{{$footer4->title}}</h2>
|
||||
<p style="list-style: none;">{!!$footer4->footer!!}</p>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="site-info col-md-6">
|
||||
<p class="text-muted">Copyright © {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>. All rights reserved. Powered by <a href="http://www.faveohelpdesk.com/">Faveo</a></p>
|
||||
</div>
|
||||
<div class="site-social text-right col-md-6">
|
||||
<?php $social = App\Model\kb\Social::where('id', '1')->first(); ?>
|
||||
<ul class="list-inline hidden-print">
|
||||
@if($social->facebook)
|
||||
<li><a href="{{$social->facebook}}" class="btn btn-social btn-facebook"><i class="fa fa-facebook fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->twitter)
|
||||
<li><a href="{{$social->twitter}}" class="btn btn-social btn-twitter"><i class="fa fa-twitter fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->google)
|
||||
<li><a href="{{$social->google}}" class="btn btn-social btn-google-plus"><i class="fa fa-google-plus fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->linkedin)
|
||||
<li><a href="{{$social->linkedin}}" class="btn btn-social btn-linkedin"><i class="fa fa-linkedin fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->vimeo)
|
||||
<li><a href="{{$social->vimeo}}" class="btn btn-social btn-vimeo"><i class="fa fa-vimeo-square fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->youtube)
|
||||
<li><a href="{{$social->youtube}}" class="btn btn-social btn-youtube"><i class="fa fa-youtube-play fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->pinterest)
|
||||
<li><a href="{{$social->pinterest}}" class="btn btn-social btn-pinterest"><i class="fa fa-pinterest fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->dribbble)
|
||||
<li><a href="{{$social->dribbble}}" class="btn btn-social btn-dribbble"><i class="fa fa-dribbble fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->flickr)
|
||||
<li><a href="{{$social->flickr}}" class="btn btn-social btn-flickr"><i class="fa fa-flickr fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->instagram)
|
||||
<li><a href="{{$social->instagram}}" class="btn btn-social btn-instagram"><i class="fa fa-instagram fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->rss)
|
||||
<li><a href="{{$social->rss}}" class="btn btn-social btn-rss"><i class="fa fa-rss fa-fw"></i></a></li>
|
||||
@endif
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer><!-- #colophon -->
|
||||
|
||||
</div>
|
||||
<!-- jQuery 2.1.3 -->
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||
<!-- Bootstrap 3.3.2 JS -->
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<!-- Slimscroll -->
|
||||
<script src="{{asset("lb-faveo/dist/js/superfish.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/dist/js/mobilemenu.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/dist/js/know.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script>
|
||||
$(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>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<body>
|
||||
<div id="page" class="hfeed site">
|
||||
<header id="masthead" class="site-header" role="banner">
|
||||
<div class="container" style="margin-bottom:-25px;">
|
||||
<div class="container" style="">
|
||||
<div id="logo" class="site-logo text-center" style="font-size: 30px;">
|
||||
<?php
|
||||
$company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first();
|
||||
@@ -37,7 +37,7 @@
|
||||
@if($system->url)
|
||||
<a href="{!! $system->url !!}" rel="home">
|
||||
@else
|
||||
<a href="{{url('home')}}" rel="home">
|
||||
<a href="{{url('/')}}" rel="home">
|
||||
@endif
|
||||
@if($company->use_logo == 1)
|
||||
<img src="{{asset('lb-faveo/dist')}}{{'/'}}{{$company->logo}}" alt="User Image" width="200px" height="200px"/>
|
||||
@@ -54,13 +54,26 @@
|
||||
<div id="navbar" class="navbar-wrapper text-center">
|
||||
<nav class="navbar navbar-default site-navigation" role="navigation">
|
||||
<ul class="nav navbar-nav navbar-menu">
|
||||
<li @yield('home')><a href="{{url('home')}}">Home</a></li>
|
||||
<li @yield('home')><a href="{{url('home')}}">{!! Lang::get('lang.home') !!}</a></li>
|
||||
@if($system->first()->status == 1)
|
||||
<li @yield('submit')><a href="{{URL::route('form')}}">Submit A Ticket</a></li>
|
||||
<li @yield('submit')><a href="{{URL::route('form')}}">{!! Lang::get('lang.submit_a_ticket') !!}</a></li>
|
||||
@endif
|
||||
<li @yield('kb')><a href="#">{!! Lang::get('lang.knowledge_base') !!}</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="{{route('category-list')}}">{!! Lang::get('lang.categories') !!}</a></li>
|
||||
<li><a href="{{route('article-list')}}">{!! Lang::get('lang.articles') !!}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php $pages = App\Model\kb\Page::where('status', '1')->where('visibility', '1')->get();
|
||||
?>
|
||||
@foreach($pages as $page)
|
||||
<li><a href="{{route('pages',$page->slug)}}">{{$page->name}}</a></li>
|
||||
@endforeach
|
||||
@if(Auth::user())
|
||||
<li @yield('myticket')><a href="{{url('mytickets')}}">My Tickets</a></li>
|
||||
<li @yield('profile')><a href="#" >My Profile</a>
|
||||
<li @yield('myticket')><a href="{{url('mytickets')}}">{!! Lang::get('lang.my_tickets') !!}</a></li>
|
||||
|
||||
{{-- <li @yield('contact')><a href="{{route('contact')}}">Contact us</a></li> --}}
|
||||
<li @yield('profile')><a href="#" >{!! Lang::get('lang.my_profile') !!}</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<div class="banner-wrapper user-menu text-center clearfix">
|
||||
@@ -71,19 +84,19 @@
|
||||
@endif
|
||||
<h3 class="banner-title text-info h4">{{Auth::user()->first_name." ".Auth::user()->last_name}}</h3>
|
||||
<div class="banner-content">
|
||||
{{-- <a href="{{url('kb/client-profile')}}" class="btn btn-custom btn-xs">Edit Profile</a> --}} <a href="{{url('auth/logout')}}" class="btn btn-custom btn-xs">Log out</a>
|
||||
{{-- <a href="{{url('kb/client-profile')}}" class="btn btn-custom btn-xs">Edit Profile</a> --}} <a href="{{url('auth/logout')}}" class="btn btn-custom btn-xs">{!! Lang::get('lang.log_out') !!}</a>
|
||||
</div>
|
||||
@if(Auth::user())
|
||||
@if(Auth::user()->role != 'user')
|
||||
<div class="banner-content">
|
||||
<a href="{{url('dashboard')}}" class="btn btn-custom btn-xs">Dashboard</a>
|
||||
<a href="{{url('dashboard')}}" class="btn btn-custom btn-xs">{!! Lang::get('lang.dashboard') !!}</a>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
@if(Auth::user())
|
||||
@if(Auth::user()->role == 'user')
|
||||
<div class="banner-content">
|
||||
<a href="{{url('client-profile')}}" class="btn btn-custom btn-xs">Profile</a>
|
||||
<a href="{{url('client-profile')}}" class="btn btn-custom btn-xs">{!! Lang::get('lang.profile') !!}</a>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
@@ -95,39 +108,48 @@
|
||||
</ul><!-- .navbar-user -->
|
||||
@else
|
||||
<ul class="nav navbar-nav navbar-login">
|
||||
<li <?php if($errors->first('email') || $errors->first('password')){ ?> class="sfHover" <?php } else { ?> <?php } ?> ><a href="#" data-toggle="collapse" <?php if($errors->first('email') || $errors->first('password')){ } else { ?> class="collapsed" <?php } ?> data-target="#login-form">Login <i class="sub-indicator fa fa-chevron-circle-down fa-fw text-muted"></i></a></li>
|
||||
<li <?php if($errors->first('email') || $errors->first('password')){ ?> class="sfHover" <?php } else { ?> <?php } ?> ><a href="#" data-toggle="collapse" <?php if($errors->first('email') || $errors->first('password')){ } else { ?> class="collapsed" <?php } ?> data-target="#login-form">{!! Lang::get('lang.login') !!} <i class="sub-indicator fa fa-chevron-circle-down fa-fw text-muted"></i></a></li>
|
||||
</ul><!-- .navbar-login -->
|
||||
<div id="login-form" <?php if($errors->first('email') || $errors->first('password')){ ?> class="login-form collapse fade clearfix in" <?php } else { ?> class="login-form collapse fade clearfix" <?php } ?> >
|
||||
{!! Form::open(['action'=>'Auth\AuthController@postLogin', 'method'=>'post']) !!}
|
||||
|
||||
<div class="form-group has-feedback {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::text('email',null,['placeholder'=>'Email','class' => 'form-control']) !!}
|
||||
{!! Form::text('email',null,['placeholder'=>Lang::get('lang.e-mail'),'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']) !!}
|
||||
{!! Form::password('password',['placeholder'=>Lang::get('lang.password'),'class' => 'form-control']) !!}
|
||||
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
</div>
|
||||
<ul class="list-unstyled pull-left">
|
||||
<li><a href="{{url('password/email')}}">Forgot password</a><br></li>
|
||||
<li><a href="#">Create Account</a></li>
|
||||
<li><a href="{{url('password/email')}}">{!! Lang::get('lang.forgot_password') !!}</a><br></li>
|
||||
<li><a href="#">{!! Lang::get('lang.create_account') !!}</a></li>
|
||||
</ul>
|
||||
<button type="submit" class="btn btn-custom pull-right">Login</button>
|
||||
<button type="submit" class="btn btn-custom pull-right">{!! Lang::get('lang.login') !!}</button>
|
||||
{!! Form::close() !!}
|
||||
</div><!-- #login-form -->
|
||||
@endif
|
||||
</nav><!-- #site-navigation -->
|
||||
</div><!-- #navbar -->
|
||||
<div id="header-search" class="site-search clearfix">
|
||||
|
||||
|
||||
<div id="header-search" class="site-search clearfix" style="padding-bottom:5px"><!-- #header-search -->
|
||||
{!!Form::open(['method'=>'get','action'=>'client\kb\UserController@search','class'=>'search-form clearfix'])!!}
|
||||
<div class="form-border">
|
||||
|
||||
|
||||
<div class="form-inline ">
|
||||
<div class="form-group">
|
||||
<input type="text" name="s" class="search-field form-control input-lg" title="Enter search term" placeholder="{!! Lang::get('lang.have_a_question?_type_your_search_term_here') !!}" />
|
||||
</div>
|
||||
<button type="submit" class="search-submit btn btn-custom btn-lg pull-right">{!! Lang::get('lang.search') !!}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
<!-- Right side column. Contains the navbar and content of the page -->
|
||||
@yield('breadcrumb')
|
||||
@@ -152,8 +174,9 @@
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
@yield('content')
|
||||
@endif
|
||||
|
||||
@yield('content')
|
||||
<div id="sidebar" class="site-sidebar col-md-3">
|
||||
<div class="widget-area">
|
||||
<section id="section-banner" class="section">
|
||||
@@ -235,7 +258,46 @@ $footer4 = App\Model\helpdesk\Theme\Footer4::whereId('1')->first();
|
||||
<hr/>
|
||||
<div class="row">
|
||||
<div class="site-info col-md-6">
|
||||
<p class="text-muted">Copyright © {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>. All rights reserved. Powered by <a href="http://www.faveohelpdesk.com/">Faveo</a></p>
|
||||
<p class="text-muted">{!! Lang::get('lang.copyright') !!} © {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>. {!! Lang::get('lang.all_rights_reserved') !!}. {!! Lang::get('lang.powered_by') !!} <a href="http://www.faveohelpdesk.com/">Faveo</a></p>
|
||||
</div>
|
||||
<div class="site-social text-right col-md-6">
|
||||
<?php $social = App\Model\kb\Social::where('id', '1')->first(); ?>
|
||||
<ul class="list-inline hidden-print">
|
||||
@if($social->facebook)
|
||||
<li><a href="{{$social->facebook}}" class="btn btn-social btn-facebook"><i class="fa fa-facebook fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->twitter)
|
||||
<li><a href="{{$social->twitter}}" class="btn btn-social btn-twitter"><i class="fa fa-twitter fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->google)
|
||||
<li><a href="{{$social->google}}" class="btn btn-social btn-google-plus"><i class="fa fa-google-plus fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->linkedin)
|
||||
<li><a href="{{$social->linkedin}}" class="btn btn-social btn-linkedin"><i class="fa fa-linkedin fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->vimeo)
|
||||
<li><a href="{{$social->vimeo}}" class="btn btn-social btn-vimeo"><i class="fa fa-vimeo-square fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->youtube)
|
||||
<li><a href="{{$social->youtube}}" class="btn btn-social btn-youtube"><i class="fa fa-youtube-play fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->pinterest)
|
||||
<li><a href="{{$social->pinterest}}" class="btn btn-social btn-pinterest"><i class="fa fa-pinterest fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->dribbble)
|
||||
<li><a href="{{$social->dribbble}}" class="btn btn-social btn-dribbble"><i class="fa fa-dribbble fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->flickr)
|
||||
<li><a href="{{$social->flickr}}" class="btn btn-social btn-flickr"><i class="fa fa-flickr fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->instagram)
|
||||
<li><a href="{{$social->instagram}}" class="btn btn-social btn-instagram"><i class="fa fa-instagram fa-fw"></i></a></li>
|
||||
@endif
|
||||
@if($social->rss)
|
||||
<li><a href="{{$social->rss}}" class="btn btn-social btn-rss"><i class="fa fa-rss fa-fw"></i></a></li>
|
||||
@endif
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer><!-- #colophon -->
|
||||
|
||||
Reference in New Issue
Block a user