@extends('layouts.admin') @section('css') @endsection @section('content') All Plans Add Plan @include('components.admin.error-message') @if(!empty($plans)) @foreach($plans as $plan) {{$plan->name}} $ {{$plan->price}} Price: {{number_format($plan->price,2,'.',',')}} Duration: {{$plan->duration_days}} {{$plan->intervals}} Status {{$plan->status == 1 ? 'active': 'inactive'}} Edit Delete Edit Plan Information @csrf Name Price Duration Interval @foreach (['hourly', 'daily', 'weekly', 'bi-weekly', 'monthly', 'yearly'] as $interval) intervals === $interval ? 'selected' : '' }}> {{ ucfirst($interval) }} @endforeach Features {{ $plan->features ? implode("\n", $plan->features) : '' }} Status status == '1' ? 'selected' : '' }}>Yes status == '0' ? 'selected' : '' }}>No Submit Cancel @endforeach @endif Add Plan @csrf Name Min Price Duration Feature Interval Hourly Daily Weekly Bi-weekly Monthly Yearly Submit Cancel @endsection @section('script') @endsection