@extends('layouts.app') @section('content') {{-- Page Header --}} {{-- Boost Plans Table --}}

{{ __('Plans List') }} (Latest)

@forelse($plans as $plan) @php $planItems = json_decode($plan->plan_items, true) ?? []; @endphp @empty @endforelse
{{ __('ID') }} {{ __('Name') }} {{ __('Description') }} {{ __('Payable Amount') }} {{ __('Discount Amount') }} {{ __('Plan Items') }} {{ __('Sustain Days') }} {{ __('Thumbnail') }} {{ __('Actions') }}
{{ $plan->id }} {{ Illuminate\Support\Str::limit($plan->name, 10, '...') }} {{ $plan->description ? Illuminate\Support\Str::limit($plan->description, 10) : 'N/A' }} {{ $plan->payable_amount && $plan->payable_amount > 0 ? currencyFormat($plan->payable_amount) : '0' }} {{ $plan->discount_amount && $plan->discount_amount > 0 ? currencyFormat($plan->discount_amount) : '0' }}
    @forelse($planItems as $item)
  • @php $text = is_array($item) ? json_encode($item) : $item; @endphp {{ Illuminate\Support\Str::limit($text, 10, '...') }}
  • @empty
  • -
  • @endforelse
{{ $plan->sustain_days }} @if ($plan->thumbnail) Thumbnail @else - @endif
@can('plans.edit') @endcan @can('plans.show') @endcan @can('plans.destroy') @endcan
{{ __('No Boost Plans Found') }}
{{-- Pagination --}}
{{ $plans->links() }}
@endsection