@php $detail_first = in_array('item_codes', $another_storages) ? (in_array('start_date', $another_storages) ? 'row_data.0.start_date' : 'item_codes.0') : 'row_data.0.' . ($skip_element_id ?? 'item_code'); @endphp
@section('title_supplement') @show
@if (count($info = $this->editorInfo()) > 0)
@endif
canEdit) style="display: contents">
@yield('header')
@if($this->is_reorder_rows) @endif @foreach($table_headers as $index => $main_header) @php $attribute = Arr::get($field_attributes, $index); @endphp @endforeach @for($i = 0; $i < $row_count; $i++) @if($this->is_reorder_rows) @endif @section('tds' . $i) @foreach($field_attributes as $col_number => $main_attribute) @endforeach @show @endfor
{{ $checkbox_header_label }} {{-- --}} 行数 @foreach($this->thHeaders($attribute, $main_header) as $header)
{{$header}}
@endforeach
@foreach($this->tdAttributes($main_attribute) as $attribute)
@if (in_array($attribute, $not_editable_cols)) {{ $this->displayFormat($attribute, \Illuminate\Support\Arr::get($row_data, "{$i}.{$attribute}")) }} @else @php $format = toEnum(\Illuminate\Support\Arr::get($formats, $attribute, \App\Enums\FieldFormat::TEXT), \App\Enums\FieldFormat::class); $is_deleted = \Illuminate\Support\Arr::get($row_data, "{$i}.is_deleted", false); $model_name = "row_data.{$i}.{$attribute}"; $is_addNextRow = $this->valueFromProperty("row_data.{$i}.is_addNextRow") ?? false;//セット商品の場合はEnterキーで次の行を追加できるようにするフラグ $is_trigger_for_next_row =(in_array($attribute, $next_row_attributes) && $is_addNextRow)|| (($i == $row_count - 1) && ($main_attribute == last($field_attributes) || in_array($attribute, $next_row_attributes))); $trade_direction = \App\Enums\Partners\ETradeDirection::fromId($this->trade_direction_key); $shows_minus_mark = in_array($attribute, $shows_minus_mark_cols) && $trade_direction->getIsShowsMinusMark(); $wire_model_name = $model_name; $another_storage = \Illuminate\Support\Arr::get($this->another_storages, last(explode('.', $model_name))); if ($another_storage) { $index = explode('.', $model_name)[1]; $wire_model_name = "{$another_storage}.{$index}"; } $model_names[] = $wire_model_name; @endphp
@endif
@endforeach
@foreach($model_names ?? [] as $name) @error($name) {{ $message }} @enderror @endforeach
@yield('config') @include('livewire.components.session-message', ['key' => $key])