@extends('admin.layout.master') @section('content')

Abandoned Carts Details

Cart ID # {{ $cart_id }}

Last Attempt: {{ $abandoned_cart->last_attempt }}
@if(!empty($abandoned_cart->created_at)) Created Date: {{ date('n/d/Y g:i A',strtotime($abandoned_cart->created_at)) }}
@else Created Date: {{ date('n/d/Y g:i A',strtotime($abandoned_cart->updated_at)) }}
@endif Updated Date: {{ date('n/d/Y g:i A',strtotime($abandoned_cart->updated_at)) }}
SHIP TO
{{ $abandoned_cart->shipfirstname }} {{ $abandoned_cart->shiplastname }}

@if(!empty($abandoned_cart->shipcompanyname)){{ $abandoned_cart->shipcompanyname }}
@endif {{ $abandoned_cart->shipaddress1 }}
@if(!empty($abandoned_cart->shipaddress2)) {{ $abandoned_cart->shipaddress2 }}
@endif {{ $abandoned_cart->shipcity }}, {{ $abandoned_cart->shipstate }} {{ $abandoned_cart->shippostalcode }}
{{ $abandoned_cart->shipcountry }}

{{ !empty($abandoned_cart->shipphonenumber) ? $abandoned_cart->shipphonenumber : $abandoned_cart->billingphonenumber }}

{{ !empty($abandoned_cart->customer_email) ? $abandoned_cart->customer_email :"" }}

BILL TO
{{ $abandoned_cart->billingfirstname }} {{ $abandoned_cart->billinglastname }}

@if(!empty($abandoned_cart->billingcompanyname)){{ $abandoned_cart->billingcompanyname }}
@endif {{ $abandoned_cart->billingaddress1 }}
@if(!empty($abandoned_cart->billingaddress2)) {{ $abandoned_cart->billingaddress2 }}
@endif {{ $abandoned_cart->billingcity }}, {{ $abandoned_cart->billingstate }} {{ $abandoned_cart->billingpostalcode }}
{{ $abandoned_cart->billingcountry }}

{{ !empty($abandoned_cart->billingphonenumber) ? $abandoned_cart->billingphonenumber : $abandoned_cart->shipphonenumber }}

SHIPPING INFO
Shipping Method: {{ !empty($abandoned_cart->shippingmethodname) ? $abandoned_cart->shippingmethodname : "N/A" }}
@php $itemprice = 0; @endphp @foreach ($abandoned_cart_items as $cart) @php $itemprice += $cart->total; @endphp @endforeach
Product Name Product Code Quantity Price Total
{{ $cart->pin->Name }} {{ $cart->product_id }} {{ $cart->quantity }} ${{ $cart->price }} ${{ $cart->total }}
    Payment Method
@if(!empty($abandoned_cart->cc_last4))
@if($abandoned_cart->creditcardtype == 'mastercard') @else @endif
.... .... .... {{ substr($abandoned_cart->cc_last4, -4) }}

Exp - {{ $abandoned_cart->creditcardexpdate }}

@endif @if(!empty($abandoned_cart->paypal_order_id))
{{ $abandoned_cart->paypalemail }}
@endif {{--
{{ \Session::get('paypalemail') }}
--}}
@php $subtotal = $itemprice; @endphp
@if(!empty($abandoned_cart->coupon_discount)) @endif
Subtotal : ${{ number_format((float)$subtotal, 2, '.', '') }}
Discount ({{ $abandoned_cart->coupon_code }}) : -${{ number_format((float)$abandoned_cart->coupon_discount, 2, '.', '') }}
Shipping @if(!empty($abandoned_cart->shippingmethodname)) ({{ $abandoned_cart->shippingmethodname }} @if($abandoned_cart->shippingsurcharges > 0) inc. surcharges of ${{ number_format((float)$abandoned_cart->shippingsurcharges, 2, '.', '') }}@endif) @endif : ${{ number_format((float)($abandoned_cart->totalshippingcost), 2, '.', '') }}
Estimated Tax : ${{ number_format((float)($abandoned_cart->salestax1), 2, '.', '') }}
Total : ${{ number_format((float)($abandoned_cart->total_payment_received), 2, '.', '') }}
@endsection