@php // 表示項目の絞込み $display_cols = \Illuminate\Support\Arr::where($cols, function ($col) use ($selected_cols) { return \Illuminate\Support\Arr::get($selected_cols, $this->asParam($col)); }); @endphp
@yield('header' . $key) @php $statistics_count = count($this->statistics_data); @endphp @if($has_statistics)
@if ($is_loading_statistics || !$is_render_started)
@else
@foreach($statistics_data as $index => $value)
@endforeach
@endif
@endif
@foreach($main_filter_cols as $filter_col) @php $filter_name = \Illuminate\Support\Arr::get($filters, $filter_col); $attribute = \Illuminate\Support\Arr::get(array_flip($param_names), $filter_col); $format = \Illuminate\Support\Arr::get($formats, $attribute, \App\Enums\FieldFormat::UNDEFINED->value); @endphp
{{$filter_name}}
@endforeach @if(count($main_filter_cols) > 0)
絞込み実行
@endif
@yield('additional_filter' . $key)
@if($title)
@endif
{{-- @if($upload_action_cls)--}} {{-- --}} {{-- データ取込--}} {{-- --}} {{-- @endif--}} @if ($add_btn_route) {{$add_btn_name}} @elseif ($this->isCreatable()) {{$add_btn_name}} @endif @if(isset($additional_header_btn)) @foreach($additional_header_btn as $name => $route) {{$name}} @endforeach @endif
@if (count($search_cols) > 0)
@endif
@if ($filter_view || count($filter_cols) > 0)
@if($filter_view) @include($filter_view) @endif
@endif @if($is_changeable_col)
表示項目
表示項目の選択
    @foreach($cols as $name => $col)
  • @endforeach
@endif
@if(count($actions) == 1) @php $action = head($actions); $action_name = array_keys($actions)[0]; @endphp {{$action_name}} @elseif(count($actions) > 0)
@endif @if ($transaction_type) 印刷 @endif @if ($is_exportable) CSV @endif
@if ($is_render_started)
@if($has_checkboxes) @endif @if($has_detail) @endif @foreach($display_cols as $index => $col) @php $format = \Illuminate\Support\Arr::get($formats, $col, 'text'); $format = toEnum($format, \App\Enums\FieldFormat::class); @endphp @endforeach @yield('additional_th' . $key) @if($is_editable || $is_deletable || count($edit_btns) > 0 || count($side_disp_btns) > 0 || $edit_btn_route) @php $width = $this->editBtnWidth(); @endphp @endif @yield('additional_tr' . $key) @foreach($items as $i => $item) @php $params = collect($detail_view_cols ?? [])->mapWithKeys(function ($col, $key) use ($item) { if(isset($item->$col)){ return [$key => $item->$col]; }else{ return [$key => $col]; } })->toArray(); $row_class = $this->getRowClass($item) ?? 'bg-white'; @endphp detailViewRoute($item)) @click="showSidePanel('{{toEnum($detail_view_route, \App\Enums\WebRoute::class)->url($this->detailViewId($item), $params)}}')" @class([ 'bg-vivid-200' => $selected_id == $item->id, 'bg-white' => $selected_id != $item->id, 'hover:bg-vivid-200 cursor-pointer divide-gray-200 border-b', ]) @elseif($has_detail) @click="open_record = open_record === {{$item->id}} ? null : {{$item->id}}" :class="open_record === {{$item->id}} ? 'bg-vivid-200' : 'divide-gray-200 border-b {{ $row_class }}'" class="hover:bg-vivid-200 cursor-pointer divide-gray-200 border-b" @elseif($is_selectable) :class="{{$i}} == highlight_index ? 'bg-vivid-300' : 'hover:bg-vivid-200 cursor-pointer divide-gray-200 border-b'" @else @if($item->is_candidate) class="bg-gray-200 divide-gray-200 border-b" @else class="{{ $row_class }} divide-gray-200 border-b" @endif @endif > @if($has_checkboxes) @endif @if($has_detail) @endif @foreach($display_cols as $j => $col) @php $param_name = $this->asParam($col); $options = \Illuminate\Support\Arr::get($view_options, $param_name); $colors = \Illuminate\Support\Arr::get($badge_colors, $param_name); $value = $this->getValue($item, $col); $option_name = $options ? \Illuminate\Support\Arr::get($options, $value ?? '0') : null; $color = $colors ? toEnum(\Illuminate\Support\Arr::get($colors, $value ?? '0'), \App\Enums\BadgeColor::class) : null; $format = \Illuminate\Support\Arr::get($formats, $col, 'text'); $format = toEnum($format, \App\Enums\FieldFormat::class); $attribute_function = \Illuminate\Support\Arr::get($attribute_functions, $param_name); @endphp @endforeach @yield('additional_td' . $key . '-' . $item->id) @if($is_editable || $is_deletable || count($edit_btns) > 0 || count($side_disp_btns) > 0 || $edit_btn_route) @endif @if($has_detail) @endif @endforeach
{{$index}} @if(!in_array($col, $unsortable_cols)) @if ($order_by === $col) @if ($order_asc) @else @endif @else @endif @endif 操作
@php $disabled = $this->isCheckDisabled($item); $checked = $this->isChecked($item->id) && !$disabled; @endphp @if(!in_array($param_name, $not_editable_cols) && $editable_type == \App\Enums\EditableType::INLINE) @php $wire_model_name = "{$param_name}.{$item->id}" @endphp @else @if($is_editable && $edit_id == $item->id && in_array($param_name, $foreign_names)) {{$$param_name}} @elseif($option_name) @if($color) {{$option_name}} @else {{$option_name}} @endif @elseif(\App\Enums\FieldFormat::BOOLEAN->isSameAs($format)) @if($value) @else @endif @elseif(!is_null($attribute_function) && method_exists($this, $attribute_function)) {{$this->$attribute_function($item)}} @elseif(\App\Enums\FieldFormat::FOREIGN_LABEL->isSameAs($format)) {{${$col.'_field'}[$item->id]}} @else {{$value}} @endif @endif @if($this->isRecreatableRecord($item)) @if($this->isEditableRecord($item))
@if($edit_btn_route = $this->editViewRoute($item)) {{ $edit_btn_name }} @elseif($is_editable) {{ $edit_btn_name }} @endif @foreach($side_disp_btns as $side_disp_btn => $route) {{$side_disp_btn}} @endforeach @foreach($edit_btns as $edt_btn => $route) @php $link = toEnum($route, \App\Enums\WebRoute::class); $icon = \Illuminate\Support\Arr::get($edit_btn_icons, $edt_btn, 'fa-plus'); @endphp @if ($link) {{$edt_btn}} @else {{$edt_btn}} @endif @endforeach @if($is_deletable && $this->isDeletableRecord($item)) 削除 @endif {{-- 3点ボタンは不評だったのでなくす --}} {{-- --}} {{--
    --}} {{-- @if($edit_btn_route)--}} {{--
  • --}} {{-- --}} {{-- 編集--}} {{-- --}} {{--
  • --}} {{-- @elseif($is_editable)--}} {{--
  • --}} {{-- --}} {{-- 編集--}} {{-- --}} {{--
  • --}} {{-- @endif--}} {{-- @foreach($edit_btns as $edt_btn => $route)--}} {{--
  • --}} {{-- --}} {{-- --}} {{-- {{$edt_btn}}--}} {{-- --}} {{--
  • --}} {{-- @endforeach--}} {{--
--}} {{-- @if($is_deletable)--}} {{--
--}} {{-- --}} {{-- 削除--}} {{-- --}} {{--
--}} {{-- @endif--}} {{--
--}}
@else
@if($edit_btn_route) 訂正 @endif
@endif @endif
@if($detail_view) @include($detail_view) @else
@foreach($this->detailTables($item) as $table_cls => $properties) @livewire($table_cls::getLivewireName(), [...$properties, 'key' => $key . '-' . $item->id], key($table_cls . '-' . $item->id)) @endforeach
@foreach($this->detailInfo($item) as $key => $detail) @endforeach
@endif
@if(\App\Enums\EPaginationType::NORMAL->isSameAs($pagination_type)) {{$items->onEachSide(1)->links()}} @elseif(\App\Enums\EPaginationType::SIMPLE_ASYNC->isSameAs($pagination_type)) @include('layouts.simple-async-pagination') @else {{$items->links()}} @endif
@else @endif @if($this->hasBottomButtons()) @yield('config') @endif @if($has_drawer) {{--ドロワーを開くためにjsから呼び出す--}} {{--ドロアーの中身--}}
@if($edit_id) {{$edit_name}}の更新 @else 新規登録 @endif
@foreach($validationAttributes as $validation_param => $label) @php $param_name = last(explode('.', $validation_param)); $attribute = array_search($param_name, $param_names); $result_name = \Illuminate\Support\Arr::get($foreign_names, $param_name); @endphp @if (!$edit_id || !in_array($param_name, $not_editable_cols))
@endif @endforeach
@if($edit_id && $is_copy_button) 複製(F10) @endif @if($edit_id) 更新(F1) @else 登録(F1) @endif
@endif @include('livewire.components.session-message', ['key' => $key])
@script @endscript