@php $detail_sections = [ '取引条件' => [ '明細端数' => [ 'key' => 'slip_fraction', 'selected_key' => $slip_fraction, 'base_options' => App\Enums\Partners\EFraction::idNames() ], '請求区分' => [ 'key' => 'payment_method', 'selected_key' => $payment_method, 'base_options' => $payment_method_options ], '中身区分' => [ 'key' => 'container_trade_type', 'selected_key' => $container_trade_type, 'base_options' => $container_trade_options, ], '先方印字' => [ 'key' => 'partner_print_type', 'selected_key' => $partner_print_type, 'base_options' => App\Enums\Partners\EPartnerPrintType::idNames() ], ], '消費税条件' => [ '税額表示' => [ 'key' => 'display_tax_type', 'selected_key' => $display_tax_type, 'base_options' => \App\Enums\TaxType::idNames() ], '保証金課税' => [ 'key' => 'container_deposit_tax_type', 'selected_key' => $container_deposit_tax_type, 'base_options' => \App\Enums\Partners\EContainerDepositTaxType::idNames() ], '計算単位' => [ 'key' => 'calculation_method', 'selected_key' => $calculation_method, 'base_options' => \App\Enums\Partners\ECalculationUnit::idNames() ], '税額端数' => [ 'key' => 'tax_fraction', 'selected_key' => $tax_fraction, 'base_options' => \App\Enums\Partners\EFraction::idNames() ], ], '割戻条件' => [ '仕割課税' => [ 'key' => 'tax_rebate', 'selected_key' => $tax_rebate, 'base_options' => \App\Enums\TaxType::idNames() ], '仕割税端数' => [ 'key' => 'tax_rebate_fraction', 'selected_key' => $tax_rebate_fraction, 'base_options' => \App\Enums\Partners\EFraction::idNames() ], ] ]; @endphp
@if(!$is_supplier) @endif
@foreach($detail_sections as $section => $detail_form)
@foreach($detail_form as $detail_label => $detail) @endforeach @if($section == '取引条件' && !$is_supplier) @endif @if($section == '割戻条件' && $is_supplier) @endif
@endforeach
@if($is_supplier) @else @endif
@if(!$is_supplier)
{{-- --}}
@endif
@if (!$is_new)
@if($is_supplier) @livewire(\App\Livewire\Tables\SupplierDetailDatatable::class, [ 'per_page' => 5, 'title' => '予定', 'default_filters' => [ 'supplier_id' => $supplier_buyer_id ]], key('supplier_detail-' . $supplier_buyer_id)) @else @livewire(\App\Livewire\Tables\BuyerDetailDatatable::class, [ 'per_page' => 5, 'title' => '予定', 'default_filters' => [ 'buyer_id' => $supplier_buyer_id ]], key('buyer_detail-' . $supplier_buyer_id)) @endif
@endif