@extends('layouts.admin')
@section('content')

<div class="card">
    <div class="card-header">
        {{ trans('global.show') }} {{ trans('cruds.fusionType.title') }}
    </div>

    <div class="card-body">
        <div class="form-group">
            <div class="form-group">
                <a class="btn btn-default" href="{{ route('admin.fusion-types.index') }}">
                    {{ trans('global.back_to_list') }}
                </a>
            </div>
            <table class="table table-bordered table-striped">
                <tbody>
                    <tr>
                        <th>
                            {{ trans('cruds.fusionType.fields.id') }}
                        </th>
                        <td>
                            {{ $fusionType->id }}
                        </td>
                    </tr>
                    <tr>
                        <th>
                            {{ trans('cruds.fusionType.fields.name') }}
                        </th>
                        <td>
                            {{ $fusionType->name }}
                        </td>
                    </tr>
                    <tr>
                        <th>
                            {{ trans('cruds.fusionType.fields.fusioncategory') }}
                        </th>
                        <td>
                            {{ $fusionType->fusioncategory->fusion_categories ?? '' }}
                        </td>
                    </tr>
                    <tr>
                        <th>
                            {{ trans('cruds.fusionType.fields.parent_name') }}
                        </th>
                        <td>
                            {{ $fusionType->parent_name->name ?? '' }}
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="form-group">
                <a class="btn btn-default" href="{{ route('admin.fusion-types.index') }}">
                    {{ trans('global.back_to_list') }}
                </a>
            </div>
        </div>
    </div>
</div>

<div class="card">
    <div class="card-header">
        {{ trans('global.relatedData') }}
    </div>
    <ul class="nav nav-tabs" role="tablist" id="relationship-tabs">
        <li class="nav-item">
            <a class="nav-link" href="#status_assets" role="tab" data-toggle="tab">
                {{ trans('cruds.asset.title') }}
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="#commission_type_commission_datas" role="tab" data-toggle="tab">
                {{ trans('cruds.commissionData.title') }}
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="#checklist_status_fusion_types1_checklist_reports" role="tab" data-toggle="tab">
                {{ trans('cruds.checklistReport.title') }}
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="#checklist_status_fusion_types2_checklist_reports" role="tab" data-toggle="tab">
                {{ trans('cruds.checklistReport.title') }}
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="#commission_value_fusion_types1_commission_datas" role="tab" data-toggle="tab">
                {{ trans('cruds.commissionData.title') }}
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="#commission_value_fusion_types2_commission_datas" role="tab" data-toggle="tab">
                {{ trans('cruds.commissionData.title') }}
            </a>
        </li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane" role="tabpanel" id="status_assets">
            @includeIf('admin.fusionTypes.relationships.statusAssets', ['assets' => $fusionType->statusAssets])
        </div>
        <div class="tab-pane" role="tabpanel" id="commission_type_commission_datas">
            @includeIf('admin.fusionTypes.relationships.commissionTypeCommissionDatas', ['commissionDatas' => $fusionType->commissionTypeCommissionDatas])
        </div>
        <div class="tab-pane" role="tabpanel" id="checklist_status_fusion_types1_checklist_reports">
            @includeIf('admin.fusionTypes.relationships.checklistStatusFusionTypes1ChecklistReports', ['checklistReports' => $fusionType->checklistStatusFusionTypes1ChecklistReports])
        </div>
        <div class="tab-pane" role="tabpanel" id="checklist_status_fusion_types2_checklist_reports">
            @includeIf('admin.fusionTypes.relationships.checklistStatusFusionTypes2ChecklistReports', ['checklistReports' => $fusionType->checklistStatusFusionTypes2ChecklistReports])
        </div>
        <div class="tab-pane" role="tabpanel" id="commission_value_fusion_types1_commission_datas">
            @includeIf('admin.fusionTypes.relationships.commissionValueFusionTypes1CommissionDatas', ['commissionDatas' => $fusionType->commissionValueFusionTypes1CommissionDatas])
        </div>
        <div class="tab-pane" role="tabpanel" id="commission_value_fusion_types2_commission_datas">
            @includeIf('admin.fusionTypes.relationships.commissionValueFusionTypes2CommissionDatas', ['commissionDatas' => $fusionType->commissionValueFusionTypes2CommissionDatas])
        </div>
    </div>
</div>

@endsection