@extends('layouts.frontend.app') @section('content')
@include('layouts.frontend.header')
{{-- --}} @php $total = 0 @endphp @if(session('cart')) @foreach(session('cart') as $id => $detail) @foreach($detail as $i => $details) @php if($details['discount'] != 0) { $total += $details['discount_price'] * $details['quantity']; }else{ $total += $details['price'] * $details['quantity']; } @endphp {{-- --}} @endforeach @endforeach @endif
Product Size Price Discount Price Discount QuantitySub TotalAction
@if ($details['photo']) product @else product @endif

{{ \Illuminate\Support\Str::words($details['name'],3) }}

{{ $details['name'] }}

{{\App\Models\ProductVariation::find($i)->size}} {{ number_format($details['price'],0) }} {{ number_format($details['discount_price'],0) ?? 0}} {{$details['discount'] ?? 0 }} %
- +
{{ $total }} {{-- --}}
Total : {{ number_format($total) }} MMK
@if(\Illuminate\Support\Facades\Auth::check()) B U Y @else B U Y @endif CONTINUE SHOPPING
@include('layouts.frontend.footer')
@include('partials.login_modal') @endsection @section('script') @endsection