@extends('layouts.app') @section('title', '定期予約マスタ') @section('content')
{{-- パンくず・ヘッダ --}}

定期予約マスタ

@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif

※この画面では予約情報の検索・一括削除が行えます。

{{-- 絞り込みフィルター(ここは前回どおり。必要に応じて調整可) --}}

絞り込みフィルター

@csrf
解除
{{-- ツールバー:左=ボタン群、右=ページャ(CSV出力→削除) --}}
新規
{{ $list->appends(['sort'=>$sort,'sort_type'=>$sort_type])->links('pagination') }}
{{-- 一覧テーブル(先頭列の並び替えを削除/操作列にチェック+編集) --}}
@csrf
@php $currentSort = $sort ?? 'reserve_id'; $currentDir = strtolower($sort_type ?? 'asc'); if (!in_array($currentDir, ['asc','desc'], true)) { $currentDir = 'asc'; } $sortClass = function(string $key) use ($currentSort, $currentDir) { if ($currentSort === $key) { return 'sortable sorting_' . $currentDir; } return 'sortable sorting'; }; $renderSortIcon = function() { return ''; }; @endphp @foreach($list as $row) {{-- 操作セル--}} {{-- データ列(存在しないカラムは空文字で安全に表示) --}} {{-- 定期予約ID --}} {{-- 定期契約ID --}} {{-- 定期契約日時 --}} {{-- 利用者分類ID(分類名1/2/3 表示) --}} {{-- 利用者ID(ID 名字) --}} {{-- 予約日時 --}} {{-- 駐輪場ID --}} {{-- 駐輪場所ID --}} {{-- 車種区分ID:区分名を表示 --}} {{-- 駐輪分類ID:ptype_subject 表示 --}} {{-- 減免措置 --}} {{-- 自動リマインド日 --}} {{-- 手動リマインド日 --}} {{-- 800M以内フラグ --}} {{-- 解約日 --}} {{-- 有効フラグ --}} {{-- メール送信日時 --}} {{-- 手動通知 --}} {{-- 手動通知方法 --}} {{-- 空き待ち順 --}} @endforeach
定期予約ID {!! $renderSortIcon() !!} 定期契約ID {!! $renderSortIcon() !!} 定期契約日時 {!! $renderSortIcon() !!} 利用者分類ID {!! $renderSortIcon() !!} 利用者ID {!! $renderSortIcon() !!} 予約日時 {!! $renderSortIcon() !!} 駐輪場ID {!! $renderSortIcon() !!} 駐輪場所ID {!! $renderSortIcon() !!} 車種区分ID {!! $renderSortIcon() !!} 駐輪分類ID {!! $renderSortIcon() !!} 減免措置 {!! $renderSortIcon() !!} 自動リマインド日 {!! $renderSortIcon() !!} 手動リマインド日 {!! $renderSortIcon() !!} 800M以内フラグ {!! $renderSortIcon() !!} 解約日 {!! $renderSortIcon() !!} 有効フラグ {!! $renderSortIcon() !!} メール送信日時 {!! $renderSortIcon() !!} 手動通知 {!! $renderSortIcon() !!} 手動通知方法 {!! $renderSortIcon() !!} 空き待ち順 {!! $renderSortIcon() !!}
{{ $row->reserve_id }}{{ $row->contract_id ?? '' }}{{ $row->contract_created_at ?? '' }} @php $subjects = array_values(array_filter([ $row->usertype_subject1 ?? '', $row->usertype_subject2 ?? '', $row->usertype_subject3 ?? '', ], fn($value) => $value !== '')); @endphp {{ $subjects ? implode('/', $subjects) : '' }} {{ trim(($row->user_id ?? '') . ' ' . ($row->user_name ?? '')) }}{{ $row->reserve_date ?? '' }}{{ trim($row->park_name ?? '') }}{{ $row->display_prine_name ?? '' }}{{ $row->psection_subject ?? '' }}{{ $row->ptype_subject ?? '' }}{{ $row->reserve_reduction ?? '' }}{{ $row->reserve_auto_remind ?? '' }}{{ $row->reserve_manual_remind ?? '' }}{{ $row->flag_800m ?? '' }}{{ $row->reserve_cancelday ?? '' }} @if((string)$row->valid_flag === '1') 有効 @elseif((string)$row->valid_flag === '0') 無効 @else {{ $row->valid_flag ?? '' }} @endif {{ $row->sent_date ?? '' }}{{ $row->reserve_manual ?? '' }}{{ $row->reserve_notice ?? '' }}{{ $row->reserve_order ?? '' }}
{{-- 下側ページャ(右寄せ) --}}
{{ $list->appends(['sort'=>$sort,'sort_type'=>$sort_type])->links('pagination') }}
{{-- 一括削除のフロント処理(jQuery不要) --}} @endsection