@extends('layouts.main') @section('title', __('Sepetim')) @section('content')

@lang('Sepet Bilgisi')

@if($cart && $cart->getCartItems->isNotEmpty())
@foreach($cart->getCartItems as $item)
@if($item->getProduct->getProductImages->isNotEmpty()) {{ $item->getProduct->name }} @else
@endif
{{ $item->getProduct->name }}
@lang('Fiyat'): {{ number_format($item->getProduct->price, 2) }} TL @lang('Toplam'): {{ number_format($item->quantity * $item->getProduct->price, 2) }} TL
@lang('Adet'):
@endforeach

@lang('Sepet Özeti')



@lang('Ara Toplam') {{ number_format($cart->getCartItems->sum(fn($item) => $item->quantity * $item->getProduct->price), 2) }} TL
{{--
@lang('Kargo Ücreti') {{ number_format(15, 2) }} TL
--}}
@lang('Toplam') {{ number_format($cart->getCartItems->sum(fn($item) => $item->quantity * $item->getProduct->price) , 2) }} TL
@else
@lang('Sepetinizde ürün bulunmamaktadır.')
@endif
@endsection