@extends('front_end.template.layout') @section('content')

Cart

@if($cart->isEmpty()) @else
@foreach($cart as $item) @endforeach
  Product Price Quantity Total
{{ $item['name'] }}
{{ $item['name'] }}
{{$item['color_text']}} {{$item['size_text']}}
{{ $item['description'] ?? '' }} @if(!empty($item['customer_notes']) || !empty($item['customer_file'])) View Details
@if(!empty($item['customer_notes']))
Note: {{ $item['customer_notes'] }}
@endif @if(!empty($item['customer_file'])) @php $ext = pathinfo($item['customer_file'], PATHINFO_EXTENSION); $isImage = in_array(strtolower($ext), ['jpg', 'jpeg', 'png', 'gif', 'webp']); @endphp
File: @if($isImage)
Uploaded file
@else View Uploaded File @endif
@endif
@endif
AED {{ number_format($item['price'], 2) }}
AED {{ number_format($item['price'] * $item['quantity'], 2) }}
Continue shopping
@endif
@if($cart->isNotEmpty())
@endif
@endsection