@extends('master')
@section('icerik')
    <div class="container pt-3 pb-3">

        <h3>Araç Kira Rezervasyon</h3>
        <div class="row">
            <div class="col-lg-4"> <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="{{ $arac->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>{{ $arac->isim }}</h4>
                            <div class="d-item_like" style="background-size: 100%; background-repeat: no-repeat;">
                                <i class="fa fa-heart"></i><span>{{ $arac->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="">{{ $arac->kapi }}</span>
                                <span class="d-atr"><img src="images/icons/2.svg" alt="">{{ $arac->bagaj }}</span>
                                <span class="d-atr"><img src="images/icons/3.svg" alt="">{{ $arac->kapi }}</span>
                                <span class="d-atr"><img src="images/icons/4.svg" alt="">{{ $arac->tip }}</span>
                            </div>
                            <div class="d-price" style="background-size: 100%; background-repeat: no-repeat;">
                              @if($ayar['pb']==session()->get('pb'))
                                Kapora <span>{{ $ayar['kapora'] }} {{ $ayar['pb'] }}</span>

                                @else
                                    Kapora <span>{{ number_format(($ayar['kapora'] * $doviz[$ayar['pb']] / $doviz[session()->get('pb')]), 2) }} {{ session()->get('pb') }}
</span>
                                @endif
                            </div>
                        </div>
                    </div>
                </div></div>
            <div class="col-lg-8">
                <p>Seçtiğiniz araç <b>{{ $arac->isim }}</b>, Kiralama süresi <b>{{ $gun }} gün</b>  üzerinden kiralama işlemine
                    devam etmek için kapora bedeli olan <b> @if($ayar['pb']==session()->get('pb'))
                            <span>{{ $ayar['kapora'] }} {{ $ayar['pb'] }}</span>

                        @else
                            <span>{{ number_format(($ayar['kapora'] * $doviz[$ayar['pb']] / $doviz[session()->get('pb')]), 2) }} {{ session()->get('pb') }}
</span>
                        @endif</b> ücreti aşağıdaki yöntemlerden biri ile ödeyerek
                    aracınızı kiralayabilirsiniz. Geri kalan ücret/ücretler araç tesliminde / araç iadesinde / sözleşme
                    sürecinde tahsil edilecektir.</p>
                <div class="row">

                    <div class="col-lg-6" style="background-size: 100%; background-repeat: no-repeat;">
                        <a href="/paytr?tip=kiralama&id={{ $request->id }}&alinma={{ $request->alinma }}&birakilma={{ $request->birakilma }}" class="odeme btn-main btn-fullwidth pull-right" style="margin-bottom: 10px;"><i class="fa fa-credit-card-alt"></i> Kredi Kartı İle Ödeme Yap</a>
                    </div><div class="col-lg-6" style="background-size: 100%; background-repeat: no-repeat;">
                        <a href="/havale?tip=kiralama&arac={{ $request->id }}&alinma={{ $request->alinma }}&birakilma={{ $request->birakilma }}" class="odeme btn-main btn-fullwidth pull-right" style="margin-bottom: 10px;"><i class="fa fa-calendar-check-o"></i> Havale ile Ödeme Yap</a>
                    </div>
                </div>
            </div>
        </div>
    </div>

@endsection
