{{-- Tab --}}
<nav>
    <div class="nav nav-tabs mb-4" id="nav-tab" role="tablist">
        @foreach($languages as $code => $name)
            <a class="lang-tab nav-item nav-link @if($code == config('app.static_default_language')) active @endif" id="nav-home-tab" data-lang="{{ $code }}" data-bs-toggle="tab" href="#nav-{{$code}}" role="tab"
               aria-controls="nav-home" aria-selected="true">{{ $name }}</a>
        @endforeach
    </div>
</nav>

<div class="tab-content" id="nav-tabContent">

    @foreach($languages->keys() as $langCode)

        <div class="tab-pane fade  @if($langCode == config('app.static_default_language')) show active @endif" id="nav-{{$langCode}}" role="tabpanel" aria-labelledby="nav-home-tab">
            <form action="{{ route('admin.plan.update', $plan->id) }}" method="post" enctype="multipart/form-data">
                @method('PUT')
                @csrf
                <input type="hidden" name="lang" value="{{ $langCode }}">

                @include('backend.plan.partial._form',['langCode' => $langCode, 'planData' => $plan])

            </form>
        </div>
    @endforeach
</div>
{{-- End of tab --}}
