@extends('master')
@section('icerik')
    <section id="section-cars" style="background-size: 100%; background-repeat: no-repeat;">
        <div class="container" style="background-size: 100%; background-repeat: no-repeat;">

            <h3>Kiralık araç seçeneklerimizi</h3>
            <p>Adrese teslim rent-a-car için kullanabileceğiniz araç seçeneklerimiz</p>

            <div class="row" style="background-size: 100%; background-repeat: no-repeat;">

                <div class="col-lg-12" style="background-size: 100%; background-repeat: no-repeat;">
                    <div class="row" style="background-size: 100%; background-repeat: no-repeat;">

                        @foreach($kiralik as $item)
                        <div class="col-xl-4 col-lg-6" style="background-size: 100%; background-repeat: no-repeat;">
                            <div class="de-item mb30" style="background-size: 100%; background-repeat: no-repeat;">
                                <div class="d-img" style="background-size: 100%; background-repeat: no-repeat;">
                                    <img src="{{ $item->img }}" class="img-fluid arac" alt="">
                                </div>
                                <div class="d-info" style="background-size: 100%; background-repeat: no-repeat;">
                                    <div class="d-text" style="background-size: 100%; background-repeat: no-repeat;">
                                        <h4>{{ $item->isim }}</h4>
                                        <div class="d-item_like" style="background-size: 100%; background-repeat: no-repeat;">
                                            <i class="fa fa-heart"></i><span>{{ $item->like }}</span>
                                        </div>
                                        <div class="d-atr-group" style="background-size: 100%; background-repeat: no-repeat;">
                                            <span class="d-atr"><img src="images/icons/1.svg" alt="">{{ $item->kapi }}</span>
                                            <span class="d-atr"><img src="images/icons/2.svg" alt="">{{ $item->bagaj }}</span>
                                            <span class="d-atr"><img src="images/icons/3.svg" alt="">{{ $item->kapi }}</span>
                                            <span class="d-atr"><img src="images/icons/4.svg" alt="">{{ $item->tip }}</span>
                                        </div>
                                        <div class="d-price" style="background-size: 100%; background-repeat: no-repeat;">
                                            Günlük*

                                            @if($ayar['pb']==session()->get('pb'))
                                                <span>{{ $item->ucret360 }} {{ $ayar['pb'] }} <i class="fa fa-refresh" data-ucret="{{ $item->ucret360 }}" onclick="modal('parabirimi','')"></i> </span>
                                            @else
                                                <span>{{ number_format(($item->ucret360 * $doviz[$ayar['pb']]) / $doviz[session()->get('pb')], 2) }} {{ session()->get('pb') }}
 <i class="fa fa-refresh" data-ucret="{{ $item->ucret360 }}" onclick="modal('parabirimi','')"></i> </span>
                                            @endif
                                            <a class="btn-main" href="/arac-kirala?id={{ $item->id }}">Şimdi Kirala</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        @endforeach


                        <div class="alert-info alert">* Uzun dönem kiralamada günlük fiyat</div>


                    </div>
                </div>
            </div>
        </div>
    </section>
@endsection
