@extends('layouts.app')
@section('title', 'インボイス設定 - 編集')

@section('content')
<div class="content-header">
  <div class="container-fluid">
    <div class="row mb-2">
      <div class="col-sm-6">
        <h1 class="m-0 text-dark">編集</h1>
      </div>
      <div class="col-sm-6">
        <ol class="breadcrumb float-sm-right text-sm">
          <li class="breadcrumb-item"><a href="{{ route('home') }}">ホーム</a></li>
          <li class="breadcrumb-item"><a href="{{ route('inv_settings') }}">インボイス設定</a></li>
          <li class="breadcrumb-item active">編集</li>
        </ol>
      </div>
    </div>
  </div>
</div>

<section class="content">
  <div class="container-fluid">

    {{-- 編集フォーム --}}
    <form id="form_edit" action="{{ route('inv_settings_edit', ['id' => $record->seq]) }}" method="POST">
        @csrf
            @include('admin.invsettings._form', [
              'isEdit'   => true,
              'record'   => $record,
              'row'      => $record,
              'managementList' => $managementList ?? []
            ])
    </form>

    {{-- 削除フォーム --}}
    <form id="form_delete" action="{{ route('inv_settings_delete') }}" method="POST" style="display:none;">
        @csrf
      <input type="hidden" name="id" value="{{ $record->seq }}">
    </form>

  </div>
</section>
@endsection
