<html>
<x-head />

<body class="body">
    <x-header />

    <div class="main">
        <div class="container">
            <section id="menu">
                <li><h3>Абоненты</h3>
                <!-- <a href="">Добавить абонента</a> -->
            </li> 
            @foreach ($abs as $ab)
                <li class="ap">
                    <p>{{$ab->user->name}}</p>
                    <p>{{$ab->user->lastname}}</p>
                    <p>{{$ab->user->number}}</p>
                    <p>{{$ab->tariff->name}}</p>
                    <div>
                        <a href="{{Route('calinas', $ab->id)}}"><button class="but">Звонки</button></a>
                        <a href="{{Route('edit_abonent', $ab->id)}}"><button class="but">Изменить</button></a>
                    </div>
                </li>
                @endforeach
            </section>
        </div>
    </div>

</body>

</html>