@use('\Illuminate\Support\Number', 'Number') @use('\Illuminate\Support\Str', 'Str') Manage plans
@if ($this->plans->count() > 0 && !$updateMode && !$newPlan)
@can('create investment plan') Add New @endcan
@endif @if ($newPlan)
@include('livewire.admin.investment-plan.includes.new-plan')
@endif @if (!$newPlan)
@if ($this->plans->count() === 0)
@can('create investment plan') Add New @endcan
@endif @if ($this->plans->count() > 0)
@if ($updateMode)
@include('livewire.admin.investment-plan.includes.edit-plan')
@endif @if (!$updateMode)
@foreach ($this->plans as $plan) @endforeach
Name Price Minimum Deposit Maximum Deposit Status Action
{{ $plan->name }} {{ Number::currency($plan->price, $settings->s_currency) }} {{ Number::currency($plan->min_price, $settings->s_currency) }} {{ Number::currency($plan->max_price, $settings->s_currency) }} $plan->status == 'inactive', 'badge-success' => $plan->status == 'active', ])>{{ Str::ucfirst($plan->status) }}
{{ $this->plans->links() }}
@endif
@endif
@endif
{{-- End Delete Plan Modal --}}