@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
| @endif |
{{ $checkbox_header_label }}
{{-- |
行数 | @foreach($table_headers as $index => $main_header) @php $attribute = Arr::get($field_attributes, $index); @endphp
@foreach($this->thHeaders($attribute, $main_header) as $header)
{{$header}}
@endforeach
|
@endforeach
|---|---|---|---|
|
↑
↓
|
@endif
|
@section('tds' . $i) @foreach($field_attributes as $col_number => $main_attribute) |
@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
@endforeach
|
@endforeach
@show