<table class="table table-striped table-sm table-hover" id="list">
    <tr class="text-center">
        <th>序号</th>
        <th>名称</th>
        <th>值</th>
        <th>描述</th>
        <th>操作员</th>
        <th>创建时间</th>
        <th>修改时间</th>
        <th>操作</th>
    </tr>
    <tr class="text-center" v-for="(configuration,i) in configurations" :key="configuration.id"
        @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
        <td>@{{ i+1 }}</td>
        <td>@{{ configuration.name }}</td>
        <td>@{{ configuration.value  }}</td>
        <td>@{{ configuration.description  }}</td>
        <td>
            <span v-if="configuration.operator">@{{ configuration.operator.name }}</span>
        </td>
        <td>@{{ configuration.created_at }}</td>
        <td>@{{ configuration.updated_at }}</td>
        <td>
            @can('系统配置-编辑')
                <button type="button" class="btn btn-sm btn-outline-primary" @click="edit(configuration,i)">编辑</button>
            @endcan
            @can('系统配置-删除')
                <button type="button" class="btn btn-sm btn-outline-danger" @click="destroy(configuration.id,i)">删除</button>
            @endcan
        </td>
    </tr>
</table>
{{$configurations->links()}}
