@php $curSort = request('sort', 'stt'); $curDir = strtolower((string) request('direction', 'desc')); if (!in_array($curDir, ['asc', 'desc'])) { $curDir = 'desc'; } $isColVisible = function(string $key) use ($visibleColumns): bool { return !isset($visibleColumns) || !empty($visibleColumns[$key]); }; @endphp @if ($isColVisible('stt'))
STT @if (($curSort === 'stt' || $curSort === 'st_app') && $curDir === 'asc') @elseif (($curSort === 'stt' || $curSort === 'st_app') && $curDir === 'desc') @else @endif
@endif @if ($isColVisible('app_name'))
APP Name @if ($curSort === 'app_name' && $curDir === 'asc') @elseif ($curSort === 'app_name' && $curDir === 'desc') @else @endif
@endif @if ($isColVisible('package'))
Package @if ($curSort === 'package' && $curDir === 'asc') @elseif ($curSort === 'package' && $curDir === 'desc') @else @endif
@endif @if ($isColVisible('status'))
Status
@endif @if ($isColVisible('store'))
Store
@endif @if ($isColVisible('admob'))
Admob
@endif @if ($isColVisible('test_case')) Test Case @endif @if ($isColVisible('ads_script')) Ads Script @endif @if ($isColVisible('check_app')) Check App @endif @if ($isColVisible('designer'))
Designer
@endif @if ($isColVisible('developer'))
Developer
@endif @if ($isColVisible('tester'))
Tester
@endif @if ($isColVisible('mkt'))
MKT
@endif @if ($isColVisible('data'))
Data
@endif @if ($isColVisible('design_link')) Design @endif @if ($isColVisible('folder_link')) Folder @endif @if ($isColVisible('git_link')) Git @endif @if ($isColVisible('app_link')) Link App @endif @if ($isColVisible('actions')) Hành động @endif