Churakovmike/laravel-db-doc-generator

View on GitHub
resources/views/_partials/indexes.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/** @var \ChurakovMike\DbDocumentor\Interfaces\ViewPresenterInterface $presenter */
?>
@if(count($presenter->getIndexes()) > 0)
<h2>@lang('churakovmike_dbdoc::dbdoc.table-indexes-title')</h2>
<div class="table-responsive">
    <table class="table table-striped table-sm table-bordered">
        <thead>
        <tr>
            <th>@lang('churakovmike_dbdoc::dbdoc.table-indexes-name')</th>
            <th>@lang('churakovmike_dbdoc::dbdoc.table-indexes-fields')</th>
        </tr>
        </thead>
        <tbody>
        @foreach($presenter->getIndexes() as $index)
        <tr>
            <td>{{$index->getName()}}</td>
            <td>{{$index->getColumns()}}</td>
        </tr>
        @endforeach
        </tbody>
    </table>
</div>
@endif