
<div class="row">
    @foreach($bayipaketler as $paket)
        <div class="col-sm-12 col-md-12 col-lg-4 p-0 default-pricing-mt wow fadeInUp">
            <div style="margin-bottom: 50px" class="pricing-item default-pricing">


                <div class="pricing-item-header blue-gradient">
                    <h3>{{$paket->baslik}}</h3>

                    <div class="pricing-header-icon">
                        <div class="pricing-icon-inner">
                            <i class="{{$paket->iconyol}}"></i>
                        </div>
                    </div>
                </div>


                <div class="pricing-item-amount bg-off-white">
                    @if(!$paket->alt_baslik=="")
                        <p class="pricing-item-amount-number" style="font-size: 18px;line-height: 20px;margin-bottom:10px;text-align: center">{{$paket->alt_baslik}}</p>

                    @endif
                    <h4 class="pricing-item-amount-number text-center">{{$paket->fiyat}}<small>₺</small><span style="font-size: 15px">{{$paket->sure}}</span></h4>
                </div>

                <div class="pricing-item-body">
                    <ul class="pricing-body-list">

                        @foreach($bayiozellikler as $ozellik)
                            @if($ozellik->bayi_paket_id==$paket->id)
                                <li>
                                    <span class="pricing-check-icon">
                                        <i class="{{$ozellik->iconyol}}"></i>
                                    </span>
                                    <span class=""> {{$ozellik->baslik}}</span>
                                </li>
                            @endif
                        @endforeach

                    </ul>


                    <div class="cta-one__btn-block mt-5 text-center">


                        <a style="width: 90%;border-radius: 10px" href="#" wire:click.prevent="addToCart({{$paket->id}},'{{$paket->baslik}}',{{$paket->fiyat}})" class="thm-btn cta-one__btn buttonrenk">Sepete Ekle</a>

                        <!-- /.thm-btn cta-one__btn -->
                    </div>
                </div>



            </div><!-- /.pricing-one__single -->

        </div><!-- /.col-lg-4 -->

    @endforeach


        @once
            <script>
                window.addEventListener('islembasarili', function(e) {


                    let data = e.detail;
                    let title = data.title;
                    let message = data.message;
                    let type = data.type;


                    iziToast.show({
                        title: title,
                        message: message,
                        color: 'green',
                        position: 'bottomRight', // bottomRight, bottomLeft, topRight, topLeft, topCenter, bottomCenter, center
                        timeout: 3000,

                    });





                });





            </script>






        @endonce

</div>



