@extends('frontend.layouts.app') @section('title') @endsection @section('seo') Book Now | Anisabel Suites @endsection @section('content')

Membership Subscription

@foreach ($orders as $order)
    @foreach (json_decode($order->particulars) as $particular) @php $product = App\Models\MemberProduct::where('title', '=', $particular) ->get() ->first(); @endphp @if ($product != null)
  • Product Image
  • @endif @endforeach
@php $index1 = 0; @endphp @foreach (json_decode($order->particulars) as $particular) @php $product = App\Models\MemberProduct::where('title', '=', $particular) ->get() ->first(); $quantity = json_decode($order->quantities); @endphp {{-- @if ($product != null) --}}

{{ $particular }} x {{ $quantity[$index1] }}

{{-- @endif --}} @php $index1++; @endphp @endforeach

{{ $order->descriptions }}

@php $total = 0; $index = 0; $prices = json_decode($order->prices); // dd($particulars[1]); @endphp @foreach (json_decode($order->quantities) as $quantity) @php $total_a = 0; $total_a = (int) $prices[$index] * (int) $quantity; $total = $total + $total_a; $index++; @endphp @endforeach

₱ {{ number_format($total, 2) }} (Paid)


@endforeach
@endsection