Skip to content

Commit

Permalink
changes-3
Browse files Browse the repository at this point in the history
  • Loading branch information
KNaveenraj-ladybird committed Oct 12, 2023
1 parent b0a8d66 commit 22d01f8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,25 +139,25 @@ class="nav-link active"
if ($group->can_edit_ticket == 1) {
?>
<button type="button" class="btn btn-sm btn-default btn-tool">
<i class="fas fa-edit" style="color:green;"></i> Edit
<i class="fas fa-edit" style="color:green;"></i> {{trans('lang.edit')}}
</button> <?php } ?>

<?php if ($group->can_assign_ticket == 1) { ?>
<button type="button" class="btn btn-sm btn-default btn-tool">
<i class="fas fa-hand-point-right" style="color:orange;"></i> Assign
<i class="fas fa-hand-point-right" style="color:orange;"></i> {{trans('lang.assign')}}
</button> <?php } ?>

@if($tickets->assigned_to == Auth::user()->id)
<button type="button" id="surrender_button" class="btn btn-sm btn-default btn-tool" data-toggle="modal" data-target="#surrender">
<i class="fas fa-arrows-alt" style="color:red;"></i> Surrender
<i class="fas fa-arrows-alt" style="color:red;"></i> {{trans('lang.surrender')}}
</button>
@endif


<?php \Illuminate\Support\Facades\Event::dispatch('show-add-event-btn', []); ?>

<a href="{{url('ticket/print/'.$tickets->id)}}" target="_blank" class="btn btn-default btn-tool btn-sm">
<i class="fas fa-print"></i> Generate PDF
<i class="fas fa-print"></i> {{trans('lang.generate_pdf')}}
</a> <div class="btn-group">
<button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" id="d1"><i class="fas fa-exchange-alt" style="color:teal;" id="hidespin"> </i><i class="fa fa-spinner fa-spin" style="color:teal; display:none;" id="spin"></i>
{!! Lang::get('lang.change_status') !!} <span class="caret"></span>
Expand Down
23 changes: 23 additions & 0 deletions resources/views/vendor/Chumper/ticket-javascript.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,29 @@ function myFunction()
"sPaginationType": "full_numbers",
"bProcessing": true,
"lengthMenu": [[10, 25, 50, 100, 500], [10, 25, 50, 100, 500]],
"oLanguage": {
"sEmptyTable": "{!! Lang::get('datatables.sEmptyTable') !!}",
"sInfo": "{!! Lang::get('datatables.sInfo') !!}",
"sInfoEmpty": "{!! Lang::get('datatables.sInfoEmpty') !!}",
"sInfoFiltered": "{!! Lang::get('datatables.sInfoFiltered') !!}",
"sInfoPostFix": "{!! Lang::get('datatables.sInfoPostFix') !!}",
"sInfoThousands": "{!! Lang::get('datatables.sInfoThousands') !!}",
"sLengthMenu": "{!! Lang::get('datatables.sLengthMenu') !!}",
"sLoadingRecords": "{!! Lang::get('datatables.sLoadingRecords') !!}",
"sProcessing": "{!! Lang::get('datatables.sProcessing') !!}",
"sSearch": "{!! Lang::get('datatables.sSearch') !!}",
"sZeroRecords": "{!! Lang::get('datatables.sZeroRecords') !!}",
"oPaginate": {
"sFirst": "{!! Lang::get('datatables.oPaginate.sFirst') !!}",
"sLast": "{!! Lang::get('datatables.oPaginate.sLast') !!}",
"sNext": "{!! Lang::get('datatables.oPaginate.sNext') !!}",
"sPrevious": "{!! Lang::get('datatables.oPaginate.sPrevious') !!}"
},
"oAria": {
"sSortAscending": "{!! Lang::get('datatables.oAria.sSortAscending') !!}",
"sSortDescending": "{!! Lang::get('datatables.oAria.sortDescending') !!}"
},
},
"ajax": {
url: "{{url('filter')}}",
data: function (d) {
Expand Down

0 comments on commit 22d01f8

Please sign in to comment.