@extends('components.customer-layout') @section('header')

Investment Pack

@endsection @section('content')
{{-- Top Performers --}} @foreach ($data as $groupsofdatas => $childofdatas)

{{ str_replace('Pack', '', ucwords(str_replace('-', ' ', $groupsofdatas))) }} Pack

{{ $childofdatas['catDesc'] }}

@foreach ($childofdatas['allPlans'] as $children)
...
@if ($children['soldOutStatus'] == 'YES') Sold Out @endif
{{--

{{ date('d M,Y', strtotime($children['createdAt'])) }}

--}}
img
{{ $children['name'] }}
@ {{ ucwords(str_replace('-', ' ', $groupsofdatas)) }}
{{ $children['percentageIncrease'] >= 0 ? '+' : '' }}{{ number_format($children['percentageIncrease'], 2, '.', ',') }}%
{{ Str::limit($children['description'], 35, $end = '...') }}

Minimum Amount

${{ number_format(floatval($children['min']), 2) }}
@php // Determine button class $buttonClass = ($children['soldOutStatus'] == 'YES' && $childofdatas['isFoundation'] === false ? 'btn-dark' : $children['soldOutStatus'] == 'YES' && $childofdatas['isFoundation'] === true && $childofdatas['availableSlot'] === 0) ? 'btn-dark' : 'btn-primary'; // Determine href value if ( $children['soldOutStatus'] == 'YES' && $childofdatas['isFoundation'] === false ) { $href = 'javascript:void(0)'; } elseif ( $children['soldOutStatus'] == 'YES' && $childofdatas['isFoundation'] === true && $childofdatas['availableSlot'] === 0 ) { $href = 'javascript:void(0)'; } else { $href = route('user.web.invest', [ 'name' => $groupsofdatas, 'plan' => $children['id'], ]); } @endphp Invest
@endforeach
@endforeach
@endsection