@extends('admin.setting.index')

@section('sub_content')
    <div class="setting-layout-body">
        <div class="settings-inner">
            <div class="settings-inner-header">
                <h5 class="settings-inner-title">{{ __($department->name) }}</h5>
                <p class="settings-inner-description">@lang('Manage agent list and form builder of this department')</p>
            </div>
            <ul class="settings-inner-tab">
                <li class="settings-inner-tab-item">
                    <a href="{{ route('admin.department.agent.list', $department->id) }}" class="settings-inner-tab-link {{ menuActive('admin.department.agent.list') }}">@lang('Agent List')</a>
                </li>
                @if (!$department->pipe_only)
                    <li class="settings-inner-tab-item">
                        <a href="{{ route('admin.department.form.builder', $department->id) }}" class="settings-inner-tab-link {{ menuActive('admin.department.form.builder') }}">@lang('Form Builder')</a>
                    </li>
                @endif
            </ul>
            <div class="settings-inner-body">
                @yield('department_sub_content')
            </div>
        </div>
    </div>
@endsection
