update v1.0.5
This commit is contained in:
@@ -32,7 +32,7 @@ class="active"
|
||||
<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">
|
||||
<div class="box-body table-responsive">
|
||||
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@@ -41,7 +41,7 @@ class="active"
|
||||
<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')}}
|
||||
{!! Session::get('success') !!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@@ -50,11 +50,11 @@ class="active"
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
{!! Session::get('fails') !!}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table class="table table-hover" style="overflow:hidden;">
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.topic')}}</th>
|
||||
@@ -65,12 +65,31 @@ class="active"
|
||||
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
$default_helptopic = App\Model\helpdesk\Settings\Ticket::where('id','=','1')->first();
|
||||
$default_helptopic = $default_helptopic->help_topic;
|
||||
|
||||
?>
|
||||
|
||||
<!-- 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>
|
||||
<td><a href="{{route('helptopic.edit',$topic->id)}}">{!! $topic->topic !!}
|
||||
@if($topic->id == $default_helptopic)
|
||||
( Default )
|
||||
<?php
|
||||
$disable = 'disabled';
|
||||
?>
|
||||
@else
|
||||
<?php
|
||||
$disable = '';
|
||||
?>
|
||||
@endif
|
||||
</a></td>
|
||||
|
||||
<!-- topic Status : if status==1 active -->
|
||||
<td>
|
||||
@@ -94,8 +113,13 @@ class="active"
|
||||
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id','=',$topic->priority)->first(); ?>
|
||||
<td>{!! $priority->priority_desc !!}</td>
|
||||
<!-- Department -->
|
||||
<?php $dept = App\Model\helpdesk\Agent\Department::where('id', '=', $topic->department)->first(); ?>
|
||||
<td>{!! $dept->name !!}</td>
|
||||
@if($topic->department != null)
|
||||
<?php $dept = App\Model\helpdesk\Agent\Department::where('id', '=', $topic->department)->first();
|
||||
$dept = $dept->name; ?>
|
||||
@elseif($topic->department == null)
|
||||
<?php $dept = ""; ?>
|
||||
@endif
|
||||
<td> {!! $dept !!} </td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! UTC::usertimezone($topic->updated_at) !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
@@ -105,12 +129,10 @@ class="active"
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat '.$disable,
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
@endforeach
|
||||
|
Reference in New Issue
Block a user