# yatra/3.0.6/app/Core/Assets/TripAssetManager.php

Yatra – Travel Booking &amp; Tour Operator Software, version 3.0.6. 34 lines.

- Page: https://pluginprobe.com/plugins/yatra/3.0.6/code/app/Core/Assets/TripAssetManager.php
- Raw: https://pluginprobe.com/plugins/yatra/3.0.6/raw/app/Core/Assets/TripAssetManager.php
- Modified: 2026-04-14T03:47:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yatra/3.0.6/code/app/Core/Assets/TripAssetManager.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Yatra\Core\Assets;

/**
 * Trip Page Asset Manager
 */
class TripAssetManager extends BaseAssetManager
{
    public function __construct()
    {
        parent::__construct('trip');

        // Video player and tour viewer modules are loaded in FrontendAssetsProvider
        
        // Add main trip styles and scripts
        $this->addStyle('yatra-trip-single');
        $this->addScript('yatra-trip-single');

        // Add trip data localization if available
        if (isset($GLOBALS['trip'])) {
            $this->addLocalization('yatra-trip-single', 'yatraTrip', [
                'id' => $GLOBALS['trip']->id,
                'title' => $GLOBALS['trip']->title,
                'slug' => $GLOBALS['trip']->slug,
                'price' => $GLOBALS['trip']->effective_price_min,
                'currency' => $GLOBALS['trip']->currency,
            ]);
        }
    }
}

```
