$str = '1.2019-10-25 10:33:19';
$result = explode('.', $str);
echo $result[1];
SELECT * FROM users u ORDER BY CASE WHEN u.top_date > NOW() THEN u.top_date END DESC, u.balls DESC
return User::where('is_deleted', '0')
->with(['langs', 'categories'])
->where('is_published', true)
->where('subscription', '>=', now())
->orderByRaw('CASE WHEN top_date > NOW() THEN top_date END DESC, balls DESC')
->filter($filters)
->paginate(15);
$('.news-content').find('img').clone().appendTo('.photo-gallery > .row').wrap('<div class="col-tt-3"><a href=""></a></div>');
$('.photo-gallery a').each(function() {
var $this = $(this);
var url = $this.find('img').attr('src');
$this.find('img').parent().attr('href', url);
});