Skip to content

Commit

Permalink
build_corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
KNaveenraj-ladybird committed Oct 30, 2023
1 parent 28f95f2 commit 75b3079
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 27 deletions.
18 changes: 8 additions & 10 deletions app/Http/Controllers/Client/helpdesk/UnAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,13 @@ public function autoCloseTickets()
*
* @return response
*/
public static function changeLanguage($ids, $lang)
public static function changeLanguage($lang)
{
/* if(Cache::has('language'))
{
return Cache::get('language');
} else return 'false';
Cache::put('language',$);
// if(Cache::has('language'))
// {
// return Cache::get('language');
// } else return 'false';
// Cache::put('language',$);
$path = base_path('lang'); // Path to check available language packages
if (array_key_exists($lang, \Config::get('languages')) && in_array($lang, scandir($path))) {
// dd(array_key_exists($lang, Config::get('languages')));
Expand All @@ -352,9 +352,7 @@ public static function changeLanguage($ids, $lang)

return true;

*/

$path = base_path('lang'); // Path to check available language packages
/* $path = base_path('lang'); // Path to check available language packages
if (array_key_exists($lang, \Config::get('languages')) && in_array($lang, scandir($path))) {
if (Auth::check()) {
$id = Auth::user()->id;
Expand All @@ -366,7 +364,7 @@ public static function changeLanguage($ids, $lang)
}
}
return redirect()->back();
return redirect()->back();*/
}

// Follow up tickets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,41 +139,33 @@ class="nav-link active"
if ($group->can_edit_ticket == 1) {
?>
<button type="button" class="btn btn-sm btn-default btn-tool">
<<<<<<< HEAD

<i class="fas fa-edit" style="color:green;"></i> {{trans('lang.edit')}}
=======
<i class="fas fa-edit" style="color:green;"></i> Edit
>>>>>>> 8b838c20f (changes)

</button> <?php } ?>

<?php if ($group->can_assign_ticket == 1) { ?>
<button type="button" class="btn btn-sm btn-default btn-tool">
<<<<<<< HEAD

<i class="fas fa-hand-point-right" style="color:orange;"></i> {{trans('lang.assign')}}
=======
<i class="fas fa-hand-point-right" style="color:orange;"></i> Assign
>>>>>>> 8b838c20f (changes)

</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">
<<<<<<< HEAD

<i class="fas fa-arrows-alt" style="color:red;"></i> {{trans('lang.surrender')}}
=======
<i class="fas fa-arrows-alt" style="color:red;"></i> Surrender
>>>>>>> 8b838c20f (changes)

</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">
<<<<<<< HEAD

<i class="fas fa-print"></i> {{trans('lang.generate_pdf')}}
=======
<i class="fas fa-print"></i> Generate PDF
>>>>>>> 8b838c20f (changes)

</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
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@
// });
Route::get('check_ticket/swtich-language/{id}', [Client\helpdesk\UnAuthController::class, 'changeUserLanguage']);
Route::get('category-list/swtich-language/{id}', [Client\helpdesk\UnAuthController::class, 'changeUserLanguage']);
Route::get('show-ticket/{ids}/swtich-language/{id}', [Client\helpdesk\UnAuthController::class, 'changeLanguage']);
Route::get('show/swtich-language/{id}', [Client\helpdesk\UnAuthController::class, 'changeUserLanguage']);
Route::get('pages/swtich-language/{id}', [Client\helpdesk\UnAuthController::class, 'changeUserLanguage'])->name('switch-user-lang');
Route::get('swtich-language/{id}', [Client\helpdesk\UnAuthController::class, 'changeUserLanguage'])->name('switch-user-lang');
Route::get('thread/swtich-language/{id}', [Client\helpdesk\UnAuthController::class, 'changeUserLanguage'])->name('switch-user-lang');
Expand Down

0 comments on commit 75b3079

Please sign in to comment.