@extends('layouts.app') @section('title', $package->name . ' - Stars Education & Training') @push('page-styles') @endpush @section('content')

{{ $package->name }}

{{ Str::limit($package->description ?? 'Professional training package at a discounted price.', 150) }}

{{ $package->name }}

{{ $package->name }}

{{ $package->description ?? 'This package includes multiple professional courses at a special discounted price.' }}


Courses Included

    @foreach($package->courses as $course)
  • {{ $course->name }} (£{{ number_format($course->getDiscountedPrice(), 2) }})
  • @endforeach
@if($package->duration) {{ $package->duration }} @endif @if($package->level) {{ $package->level }} @endif @if($package->certificate_included) {{ $package->certificate_included }} @endif
@php $keyPoints = $package->key_points; @endphp @if(count($keyPoints) > 0)
    @foreach($keyPoints as $point) @php // Clean the text $cleanText = $point; $icon = '✓'; // Default CSS tick $iconClass = 'tick'; // Check if the point contains ✅ or ❌ emoji $hasCheck = strpos($point, '✅') !== false; $hasCross = strpos($point, '❌') !== false; $hasCheckAlt = strpos($point, '✔') !== false || strpos($point, '✓') !== false; $hasCrossAlt = strpos($point, '✖') !== false || strpos($point, '✗') !== false; if ($hasCheck || $hasCheckAlt) { $icon = '✓'; $iconClass = 'positive'; $cleanText = trim(str_replace(['✅', '✔', '✓'], '', $point)); } elseif ($hasCross || $hasCrossAlt) { $icon = '✕'; $iconClass = 'negative'; $cleanText = trim(str_replace(['❌', '✖', '✗'], '', $point)); } else { // No emoji found, detect from content $lowerPoint = strtolower($point); if (strpos($lowerPoint, 'free') !== false || strpos($lowerPoint, 'included') !== false || strpos($lowerPoint, 'support') !== false || strpos($lowerPoint, 'yes') !== false || strpos($lowerPoint, 'same day') !== false) { $icon = '✓'; $iconClass = 'positive'; } elseif (strpos($lowerPoint, 'no ') !== false || strpos($lowerPoint, 'not ') !== false || strpos($lowerPoint, 'hidden') !== false) { $icon = '✕'; $iconClass = 'negative'; } else { $icon = '✓'; $iconClass = 'tick'; } $cleanText = $point; } // Final cleanup $cleanText = trim($cleanText); if (empty($cleanText)) { $cleanText = $point; } @endphp
  • {{ $icon }} {{ $cleanText }}
  • @endforeach
@endif @if($package->getSavingsAttribute() > 0)
You save {{ $package->getFormattedSavingsAttribute() }} ({{ $package->getSavingsPercentageAttribute() }}%) by buying this package!
@endif
Package Price
@php $actualPrice = $package->price; $discountedPrice = (float) $package->discounted_price; $savings = $actualPrice - $discountedPrice; $discountPercent = $package->discount > 0 ? $package->discount : 0; @endphp
£{{ number_format($discountedPrice, 2) }}
@if($discountPercent > 0)
£{{ number_format($actualPrice, 2) }}
Save {{ number_format($discountPercent, 0) }}%
@endif

{{ $package->courses->count() }} courses included

View All Packages
@if(isset($relatedPackages) && $relatedPackages->count() > 0)

You May Also Like

@foreach($relatedPackages as $related)
@endforeach
@endif
@push('page-scripts') @endpush @endsection