@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;">
            <div class="row" style="background-size: 100%; background-repeat: no-repeat;">

                <h3>Transfer için araç seçeneklerimiz</h3>
                <p>Adresten adrese transfer hizmetlerimiz için kullanabileceğiniz araç seçeneklerimiz</p>

                <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($arac 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="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->yolcu }}</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;">
                                            Km ücreti (Açılış hariç)


                                            @if($ayar['pb']==session()->get('pb'))
                                            <span>{{ $item->km }}<small> {{ $ayar['pb'] }}</small> <i class="fa fa-refresh"  onclick="modal('parabirimi','')"></i></span>
                                            @else
                                                <span>{{ number_format(($item->km * $doviz[$ayar['pb']]) / $doviz[session()->get('pb')], 2) }} <small> {{ session()->get('pb') }} </small> <i class="fa fa-refresh"  onclick="modal('parabirimi','')"></i></span>

                                            @endif


                                            <a class="btn-main" href="/transfer-sorgula?arac={{ $item->id }}">Transfer Sorgula</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                            @endforeach



                    </div>
                </div>
            </div>
        </div>
    </section>

    <style>.arac {  object-fit: cover;
            height: 200px;
            width: 100%; }</style>
@endsection
