<x-head />
<x-header />
<section class="slider">
    <div id="carouselExampleFade" class="carousel slide carousel-fade" data-bs-ride="carousel">
        <div class="carousel-inner sliderPhoto">
            <div class="carousel-item carousel-item-next">
                <img class="imgslid" src="index_files/slider1.png" alt="...">
            </div>
            <div class="carousel-item active carousel-item-next">
                <img class="imgslid" src="index_files/slider2.png" alt="...">
            </div>
        </div>
        <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleFade"
            data-bs-slide="prev">
            <span class="carousel-control-prev-icon" aria-hidden="true"></span>
            <span class="visually-hidden">Previous</span>
        </button>
        <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleFade"
            data-bs-slide="next">
            <span class="carousel-control-next-icon" aria-hidden="true"></span>
            <span class="visually-hidden">Next</span>
        </button>
    </div>
</section>

<!-- блоки под слайдером -->

<section class="bloks">
    @auth
    <div class="blok border border-black">
        <p class="texttar sttext">Ваш номер:</p>
        <br>
        <p class="sttext">{{ $subscriber->number_phone }}</p>
    </div>
    @endauth

    <div class="blok border border-black">
        <p class="texttar sttext">Тарифы</p>
        <div class="fontzag" style="font-size:25px; position: relative; left: 100px; top: 30px;">✯ Выгодные тарифы
            <br>
            ✯ Cвязь и интернет
        </div>

    </div>
    <div class="blok border border-black">
        <p class="texttar sttext">Интернет и ТВ</p>
        <div class="fontzag" style="font-size:25px; position: relative; left: 100px; top: 30px;">

            <p>✯ Все устройства для
                <br>
                 домашнего
                <br>
                ✯ Интернет и ТВ
            </p>
        </div>
    </div>

</section>

<!-- tariff -->

<section class="tarifsec">
    <div class="headtar">
        <p class="fontzag text-light fontre">Тарифы</p>
    </div>
    @foreach($trafics as $trafic)
    <div class="tariff border border-black">
        <p class="texttar tartext">Тариф "{{ $trafic->name_trafic }}"</p>
        <div class="fontmini d-flex flex-row mb-6 gigmin">
            <div class="p-4">{{ $trafic->price_second }} рублей за секунду</div>
            <div class="p-4">Безлимиты</div>
            <div class="p-4">Соц.Сети</div>
            <div class="p-4">Мессенджеры</div>
            <div class="p-4">Музыка</div>
        </div>
        @if(Auth::user() && Auth::user()->role != 'admin' && $subscriber->trafic_id != $trafic->id) 
        <a href="{{ route('trafic', $trafic->id) }}"><button type="button" class="buy btn btn-outline-dark" style="border-radius: 40px;">Купить</button></a>
        @elseif(Auth::user() && Auth::user()->role != 'admin')
        <button type="button" class="buy btn btn-outline-dark" style="border-radius: 40px;" disabled>Подключено</button>
        @endif
        @if(Auth::user() && Auth::user()->role == 'admin')
        <a href="{{ route('deletetrafic', $trafic->id) }}"><button type="button" class="buy btn btn-outline-dark" style="border-radius: 40px;">Удалить</button></a>
        @endif
    </div>
    @endforeach
</section>

<!-- text -->

<section class="tarifsec">
    <div class="headtar">
        <p class="text-light fontzag fontre">Информация</p>
    </div>

    <div class="tariff border border-black texttar">
        <div style=" font-size: 40px; position: relative; top: 60px; left: 100px;">Партнеры</div>
        <div style="position: relative; left: 400px; top: 70px;">
            <a href="https://www.tinkoff.ru/">
                <img src="index_files/tinkoff.png" style="width: 200px;
                height: 50px;" alt="">
            </a>
            <a href="https://www.tinkoff.ru/">
                <img src="index_files/lukoil.png" style="width: 200px;
                height: 50px;" alt="">
            </a>
            <a href="https://www.tinkoff.ru/">
                <img src="index_files/gazprom.png" style="width: 200px;
                height: 50px;" alt="">
            </a>
            <a href="https://www.tinkoff.ru/">
                <img src="index_files/rostelekom.png" style="width: 200px;
                height: 50px;" alt="">
            </a>
        </div>


    </div>
    <div class="tariff border border-black">
        <div class="texttar" style="font-size: 40px; position: relative; top: 60px; left: 100px;">
            Список городов где доступен miga
        </div>

        <ul class="list-group list-group-flush " style="display: block ruby; left: 350px; position: relative; top: 72px;">
            <li class="list-group-item">◆ Челябинск</li>
            <li class="list-group-item">◆ Санкт-Петербург</li>
            <li class="list-group-item">◆ Москва</li>
            <li class="list-group-item">◆ Чебоксары</li>
            <li class="list-group-item">◆ Чернобыль</li>
        </ul>
    </div>
    <div class="tariff border border-black texttar">
        <p class="resd">Остались вопросы? Напиши в чат и наши специалисты ответят со скоростью
            света.</p>

        <button type="button" class="btn btn-outline-dark helper poderjka" style="border-radius: 40px;"
            data-bs-toggle="modal" data-bs-target="#exampleModal" data-bs-whatever="@getbootstrap">Служба
            поддержки</button>

        <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel"
            aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <h1 class="modal-title fs-5" id="exampleModalLabel">Задать вопрос</h1>
                        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                    </div>
                    <div class="modal-body">
                        <form>
                            <div class="mb-3">
                                <label for="message-text" class="col-form-label">Сообщение:</label>
                                <textarea class="form-control" id="message-text"></textarea>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-outline-danger"
                            data-bs-dismiss="modal">Закрыть</button>
                        <button type="button" class="btn btn-outline-primary">Отправить</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="carouselExampleControls" class=" carousel slide" data-bs-ride="carousel" style="width: 100%; margin: 0 auto ;">
        <div class="carousel-inner slider">
            <div class="carousel-item active" style="left: 75px;">
                <div style="display: block ruby; max-width: 100%; flex-wrap: wrap; justify-content: space-between;">

                    <div class="card" style="width: 18rem;">
                        <img src="index_files/iphone15.jpeg" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/iphone14.jpeg" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/iphone13.png" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/iphone12.png" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/iphone12.png" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/iphone12.png" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>

                </div>




            </div>
            <div class="carousel-item " style="left: 75px;">
                <div style="display: block ruby; max-width: 100%; flex-wrap: wrap; justify-content: space-between;">
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/GalaxyS24.JPG" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/GalaxyS24.JPG" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/GalaxyS24.JPG" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/GalaxyS24.JPG" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/GalaxyS24.JPG" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/GalaxyS24.JPG" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                </div>




            </div>
            <div class="carousel-item" style="left: 75px;">
                <div style="display: block ruby; max-width: 100%; flex-wrap: wrap; justify-content: space-between;">

                    <div class="card" style="width: 18rem;">
                        <img src="index_files/GalaxyS24.JPG" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/GalaxyS24.JPG" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/GalaxyS24.JPG" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/GalaxyS24.JPG" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/GalaxyS24.JPG" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                    <div class="card" style="width: 18rem;">
                        <img src="index_files/GalaxyS24.JPG" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">Card title</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk
                                of the card's content.</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                </div>




            </div>
        </div>
        <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls"
            data-bs-slide="prev">
            <span class="carousel-control-prev-icon" aria-hidden="true"></span>
            <span class="visually-hidden">Previous</span>
        </button>
        <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControls"
            data-bs-slide="next">
            <span class="carousel-control-next-icon" aria-hidden="true"></span>
            <span class="visually-hidden">Next</span>
        </button>
    </div>
</section>

<x-footer />