Replace deprecated array and string helpers
Laravel recommends using the `Str` and `Arr` class methods directly instead of the respective helper functions. These helper functions are deprecated in Laravel 5.8 and removed in Laravel 6.
This commit is contained in:
@@ -66,7 +66,7 @@ class="nav-link active"
|
||||
<div class="card card-light card-outline">
|
||||
|
||||
<div class="card-body box-profile">
|
||||
<h3 class="profile-username text-center has-tooltip" title="{{$orgs->name}}">{{str_limit($orgs->name,15)}}</h3>
|
||||
<h3 class="profile-username text-center has-tooltip" title="{{$orgs->name}}">{{Str::limit($orgs->name,15)}}</h3>
|
||||
|
||||
<p class="text-muted text-center">Organization</p>
|
||||
|
||||
@@ -80,14 +80,14 @@ class="nav-link active"
|
||||
<li class="list-group-item">
|
||||
|
||||
<label>{!! Lang::get('lang.website') !!}</label>
|
||||
<a class="float-right" title="{{$orgs->website}}">{!! str_limit($orgs->website,15) !!}</a>
|
||||
<a class="float-right" title="{{$orgs->website}}">{!! Str::limit($orgs->website,15) !!}</a>
|
||||
</li>
|
||||
|
||||
@if($orgs->phone)
|
||||
<li class="list-group-item">
|
||||
|
||||
<label>{!! Lang::get('lang.phone') !!}</label>
|
||||
<a class="float-right" title="{{$orgs->phone}}">{!! str_limit($orgs->phone,15) !!}</a>
|
||||
<a class="float-right" title="{{$orgs->phone}}">{!! Str::limit($orgs->phone,15) !!}</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@@ -129,7 +129,7 @@ class="nav-link active"
|
||||
<img src="{{ Gravatar::src( $users->email) }}" class="img-circle elevation-2">
|
||||
</div>
|
||||
|
||||
<h3 class="widget-user-username" title="{{$users->user_name}}">{!! str_limit($users->user_name,15) !!}</h3>
|
||||
<h3 class="widget-user-username" title="{{$users->user_name}}">{!! Str::limit($users->user_name,15) !!}</h3>
|
||||
|
||||
<h5 class="widget-user-desc" style="font-size: 14px;">Organization Manager</h5>
|
||||
</div>
|
||||
@@ -142,7 +142,7 @@ class="nav-link active"
|
||||
|
||||
<a href="javascript:;" class="nav-link text-dark"> {!! Lang::get('lang.e-mail') !!}
|
||||
|
||||
<span class="float-right" title="{{$users->email}}">{!! str_limit($users->email,15) !!}</span>
|
||||
<span class="float-right" title="{{$users->email}}">{!! Str::limit($users->email,15) !!}</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -150,7 +150,7 @@ class="nav-link active"
|
||||
|
||||
<a href="javascript:;" class="nav-link text-dark"> {!! Lang::get('lang.phone') !!}
|
||||
|
||||
<span class="float-right" title="{{$users->phone_number}}">{!! str_limit($users->phone_number,15) !!}</span>
|
||||
<span class="float-right" title="{{$users->phone_number}}">{!! Str::limit($users->phone_number,15) !!}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@@ -3,10 +3,10 @@
|
||||
Lang::get('lang.status')=>$status->name,
|
||||
Lang::get('lang.priority')=>$priority->priority_desc,
|
||||
Lang::get('lang.department')=>$dept123->name,
|
||||
Lang::get('lang.email')=>str_limit($user->email,30),
|
||||
Lang::get('lang.email')=>Str::limit($user->email,30),
|
||||
Lang::get('lang.source')=>$ticket_source,
|
||||
Lang::get('lang.help_topic')=>$help_topic->topic,
|
||||
Lang::get('lang.last_message')=>str_limit($username,30),
|
||||
Lang::get('lang.last_message')=>Str::limit($username,30),
|
||||
Lang::get('lang.organization') => $LastResponse->getOrgWithLink(),
|
||||
];
|
||||
|
||||
|
@@ -266,7 +266,7 @@ if ($thread->title != "") {
|
||||
@if($dept123)
|
||||
<td title="{{$dept123->name}}">{{$dept123->name}}</td></tr>
|
||||
@endif
|
||||
<tr><td><b>{!! Lang::get('lang.email') !!}:</b></td> <td>{{str_limit($user->email,30)}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.email') !!}:</b></td> <td>{{Str::limit($user->email,30)}}</td></tr>
|
||||
@if($user->ban > 0) <tr><td style="color:orange;"><i class="fa fa-warning"></i><b>
|
||||
{!! Lang::get('lang.this_ticket_is_under_banned_user')!!}</td><td></td></tr>@endif
|
||||
</div>
|
||||
@@ -303,7 +303,7 @@ if ($thread->title != "") {
|
||||
@if($user->mobile !=null)<tr><td><b>{!! Lang::get('lang.mobile') !!}:</b></td> <td>{{$user->ext . $user->mobile}}</td></tr>@endif
|
||||
<tr><td><b>{!! Lang::get('lang.source') !!}:</b></td> <td>{{$ticket_source}}</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>{{str_limit($username,30)}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.last_message') !!}:</b></td> <td>{{Str::limit($username,30)}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.organization') !!}:</b></td> <td>{!!$LastResponse->getOrgWithLink()!!}</td></tr>
|
||||
<?php Event::fire(new App\Events\TicketDetailTable($TicketData)); ?>
|
||||
</div>
|
||||
@@ -661,9 +661,9 @@ if ($thread->title != "") {
|
||||
@endif
|
||||
|
||||
@if($conversation->user_id != null)
|
||||
<a href='{!! url("/user/".$role->id) !!}'>{!! str_limit($usernam,30) !!}</a>
|
||||
<a href='{!! url("/user/".$role->id) !!}'>{!! Str::limit($usernam,30) !!}</a>
|
||||
@else
|
||||
{!! str_limit($usernam,30) !!}
|
||||
{!! Str::limit($usernam,30) !!}
|
||||
@endif
|
||||
|
||||
@if($conversation->id == $ij->id)
|
||||
|
@@ -106,18 +106,18 @@ class="nav-link active"
|
||||
@else
|
||||
<?php $name_of_user = $users->user_name; ?>
|
||||
@endif
|
||||
<h4 class="" title="{{$name_of_user}}">{{str_limit($name_of_user, 25)}}</h4>
|
||||
<h4 class="" title="{{$name_of_user}}">{{Str::limit($name_of_user, 25)}}</h4>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<ul class="list-group list-group-unbordered mb-3 mt-3">
|
||||
@if($users->user_name)
|
||||
<li class="list-group-item mb-0">
|
||||
<b>{{Lang::get('lang.user_name')}}</b> <a class="float-right" title="{{$users->user_name}}">{{str_limit($users->user_name,10) }}</a>
|
||||
<b>{{Lang::get('lang.user_name')}}</b> <a class="float-right" title="{{$users->user_name}}">{{Str::limit($users->user_name,10) }}</a>
|
||||
</li>
|
||||
@endif
|
||||
<li class="list-group-item mb-0">
|
||||
<b>{{Lang::get('lang.email')}}</b> <a class="float-right" title="{{$users->email}}"> {{str_limit($users->email,10) }}</a>
|
||||
<b>{{Lang::get('lang.email')}}</b> <a class="float-right" title="{{$users->email}}"> {{Str::limit($users->email,10) }}</a>
|
||||
</li>
|
||||
|
||||
@if($users->is_delete != '1')
|
||||
@@ -144,7 +144,7 @@ class="nav-link active"
|
||||
|
||||
|
||||
|
||||
<a href="" data-toggle="modal" data-target="#editassign" title="{{$organization->name}}"> <span style="color:green;">{{str_limit($organization->name,10)}}</span> </a>
|
||||
<a href="" data-toggle="modal" data-target="#editassign" title="{{$organization->name}}"> <span style="color:green;">{{Str::limit($organization->name,10)}}</span> </a>
|
||||
|
||||
|
||||
<a class="float-right" href="#" data-toggle="modal" data-target="#delete-{{$org_id}}" title="{!! Lang::get('lang.remove') !!}"><i class="fas fa-times" style="color:red;"> </i></a>
|
||||
@@ -196,25 +196,25 @@ class="nav-link active"
|
||||
@if($users->country_code)
|
||||
<li class="list-group-item mb-0">
|
||||
<b>{{Lang::get('lang.country_code')}}</b> <a class="float-right" title="{{$users->country_code}}">
|
||||
{{str_limit($users->country_code,10) }}</a>
|
||||
{{Str::limit($users->country_code,10) }}</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($users->ext)
|
||||
<li class="list-group-item mb-0">
|
||||
<b>{{Lang::get('lang.ext')}}</b> <a class="float-right" title="{{$users->ext}}"> {{str_limit($users->ext,10)}}</a>
|
||||
<b>{{Lang::get('lang.ext')}}</b> <a class="float-right" title="{{$users->ext}}"> {{Str::limit($users->ext,10)}}</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($users->mobile)
|
||||
<li class="list-group-item mb-0">
|
||||
<b>{{Lang::get('lang.mobile')}}</b> <a class="float-right" title="{{$users->mobile}}"> {{str_limit($users->mobile,10)}}</a>
|
||||
<b>{{Lang::get('lang.mobile')}}</b> <a class="float-right" title="{{$users->mobile}}"> {{Str::limit($users->mobile,10)}}</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($users->phone_number)
|
||||
<li class="list-group-item mb-0">
|
||||
<b>{{Lang::get('lang.phone')}}</b><a class="float-right" title="{{$users->phone_number}}">{{str_limit($users->phone_number,10)}}</a>
|
||||
<b>{{Lang::get('lang.phone')}}</b><a class="float-right" title="{{$users->phone_number}}">{{Str::limit($users->phone_number,10)}}</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
|
@@ -13,7 +13,7 @@
|
||||
<div class="caption text-center">
|
||||
<div class="btn-group">
|
||||
<button type="button" onclick="clickFolder('folder_{{ $key }}',0)" class="btn btn-default btn-xs">
|
||||
{{ str_limit($dir_name, $limit = 10, $end = '...') }}
|
||||
{{ Str::limit($dir_name, $limit = 10, $end = '...') }}
|
||||
</button>
|
||||
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown" aria-expanded="false">
|
||||
<span class="caret"></span>
|
||||
@@ -42,7 +42,7 @@
|
||||
<div class="caption text-center">
|
||||
<div class="btn-group ">
|
||||
<button type="button" onclick="useFile('{{ $file_name }}')" class="btn btn-default btn-xs">
|
||||
{{ str_limit($file_name, $limit = 10, $end = '...') }}
|
||||
{{ Str::limit($file_name, $limit = 10, $end = '...') }}
|
||||
</button>
|
||||
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown" aria-expanded="false">
|
||||
<span class="caret"></span>
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<div class="caption text-center">
|
||||
<div class="btn-group">
|
||||
<button type="button" data-id="{{ $dir_name['long'] }}" class="btn btn-default btn-xs folder-item">
|
||||
{{ str_limit($dir_name['short'], $limit = 10, $end = '...') }}
|
||||
{{ Str::limit($dir_name['short'], $limit = 10, $end = '...') }}
|
||||
</button>
|
||||
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown" aria-expanded="false">
|
||||
<span class="caret"></span>
|
||||
|
@@ -14,7 +14,7 @@
|
||||
<div class="caption text-center">
|
||||
<div class="btn-group">
|
||||
<button type="button" onclick="clickFolder('folder_{{ $key }}',0)" class="btn btn-default btn-xs">
|
||||
{{ str_limit($dir_name, $limit = 10, $end = '...') }}
|
||||
{{ Str::limit($dir_name, $limit = 10, $end = '...') }}
|
||||
</button>
|
||||
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown" aria-expanded="false">
|
||||
<span class="caret"></span>
|
||||
@@ -44,7 +44,7 @@
|
||||
<div class="caption text-center">
|
||||
<div class="btn-group ">
|
||||
<button type="button" onclick="useFile('{{ $file_name }}')" class="btn btn-default btn-xs">
|
||||
{{ str_limit($file_name, $limit = 10, $end = '...') }}
|
||||
{{ Str::limit($file_name, $limit = 10, $end = '...') }}
|
||||
</button>
|
||||
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown" aria-expanded="false">
|
||||
<span class="caret"></span>
|
||||
|
@@ -16,7 +16,7 @@
|
||||
<div class="caption text-center">
|
||||
<div class="btn-group">
|
||||
<button type="button" onclick="useFile('{{ $file_name }}')" class="btn btn-default btn-xs">
|
||||
{{ str_limit($file_name, $limit = 10, $end = '...') }}
|
||||
{{ Str::limit($file_name, $limit = 10, $end = '...') }}
|
||||
</button>
|
||||
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown" aria-expanded="false">
|
||||
<span class="caret"></span>
|
||||
|
Reference in New Issue
Block a user