@extends('frontend.include.layout') @section('content')
@if($message = Session::get('error')) @endif @if($message = Session::get('success')) @endif
{{ $cart_count }} items in your Cart
Total
@php $sub_total=0; @endphp
Image
Asset Details
Price
Remove
@foreach($cart_details as $key => $cart_detail) @php $asset_detail= \App\Models\AssetDetails::where('id',$cart_detail->asset_id)->first(); @endphp
@php $assetimagedisplay=json_decode($asset_detail->images); @endphp

{{ $asset_detail->asset_name }}


@php $actordetails=\App\Models\ActorController::select('name','slug')->where('id', $asset_detail->userid)->first(); @endphp
{{ $actordetails->name }}
${{ $asset_detail->cost }} ({{ $asset_detail->offer_price }}) | Offer {{ $asset_detail->offer_discount }}%
@php $sub_total=$sub_total+$asset_detail->cost; @endphp @endforeach
.
Subtotal ({{ $cart_count }} items): ${{ $sub_total }}
   
Subtotal ({{ $cart_count }} items)

${{ $sub_total }}

Secure checkout:
@php if(auth()->user()) { @endphp
@csrf
@php } else { @endphp Proceed To CheckOut @php } @endphp

@endsection