この画面のデータ修正等の必要はありません。
{{-- ===================== 絞り込みフィルター ===================== --}}@extends('layouts.app') @section('title', '利用者マスタ') @section('content') @php $curSort = $sort ?? request('sort', 'user_seq'); $curDir = strtolower($dir ?? request('dir', $sort_type ?? 'desc')); if (!in_array($curDir, ['asc', 'desc'], true)) { $curDir = 'desc'; } $queryBase = collect([ 'user_id' => $user_id ?? null, 'user_categoryid' => $user_categoryid ?? null, 'user_tag_serial' => $user_tag_serial ?? null, 'quit_flag' => $quit_flag ?? null, 'user_phonetic' => $user_phonetic ?? null, 'phone' => $phone ?? null, 'email' => $email ?? null, 'tag_qr_flag' => $tag_qr_flag ?? null, 'quit_from' => $quit_from ?? null, 'quit_to' => $quit_to ?? null, ])->filter(function ($value) { return !is_null($value) && $value !== ''; })->all(); $thClass = function (string $key) use ($curSort, $curDir) { if ($curSort !== $key) { return 'sorting'; } return $curDir === 'asc' ? 'sorting_asc' : 'sorting_desc'; }; $urlFor = function (string $key) use ($curSort, $curDir, $queryBase) { $next = ($curSort === $key && $curDir === 'asc') ? 'desc' : 'asc'; return route('users', array_merge($queryBase, ['sort' => $key, 'dir' => $next])); }; @endphp {{-- ▼ コンテンツヘッダー(パンくず) --}}
この画面のデータ修正等の必要はありません。
{{-- ===================== 絞り込みフィルター ===================== --}}