<?php defined('MW_PATH') || exit('No direct script access allowed');

/**
 * This file is part of the MailWizz EMA application.
 * 
 * @package MailWizz EMA
 * @author Serban George Cristian <cristian.serban@mailwizz.com> 
 * @link http://www.mailwizz.com/
 * @copyright 2013-2014 MailWizz EMA (http://www.mailwizz.com)
 * @license http://www.mailwizz.com/license/
 * @since 1.0
 */

/**
 * This hook gives a chance to prepend content or to replace the default view content with a custom content.
 * Please note that from inside the action callback you can access all the controller view
 * variables via {@CAttributeCollection $collection->controller->data}
 * In case the content is replaced, make sure to set {@CAttributeCollection $collection->renderContent} to false 
 * in order to stop rendering the default content.
 * @since 1.3.3.1
 */
$hooks->doAction('before_view_file_content', $viewCollection = new CAttributeCollection(array(
    'controller'    => $this,
    'renderContent' => true,
)));
$fontAwesomeIcons =  [
    "fa-ad" => "Ad",
    "fa-address-book" => "Address Book",
    "fa-address-card" => "Address Card",
    "fa-align-center" => "Align Center",
    "fa-align-justify" => "Align Justify",
    "fa-align-left" => "Align Left",
    "fa-align-right" => "Align Right",
    "fa-ambulance" => "Ambulance",
    "fa-anchor" => "Anchor",
    "fa-angle-double-down" => "Angle Double Down",
    "fa-angle-double-left" => "Angle Double Left",
    "fa-angle-double-right" => "Angle Double Right",
    "fa-angle-double-up" => "Angle Double Up",
    "fa-angle-down" => "Angle Down",
    "fa-angle-left" => "Angle Left",
    "fa-angle-right" => "Angle Right",
    "fa-angle-up" => "Angle Up",
    "fa-apple" => "Apple",
    "fa-archive" => "Archive",
    "fa-arrow-circle-down" => "Arrow Circle Down",
    "fa-arrow-circle-left" => "Arrow Circle Left",
    "fa-arrow-circle-right" => "Arrow Circle Right",
    "fa-arrow-circle-up" => "Arrow Circle Up",
    "fa-arrow-down" => "Arrow Down",
    "fa-arrow-left" => "Arrow Left",
    "fa-arrow-right" => "Arrow Right",
    "fa-arrow-up" => "Arrow Up",
    "fa-arrows-alt" => "Arrows Alt",
    "fa-baby" => "Baby",
    "fa-backspace" => "Backspace",
    "fa-ban" => "Ban",
    "fa-bank" => "Bank",
    "fa-barcode" => "Barcode",
    "fa-bars" => "Bars",
    "fa-bed" => "Bed",
    "fa-beer" => "Beer",
    "fa-bell" => "Bell",
    "fa-bicycle" => "Bicycle",
    "fa-binoculars" => "Binoculars",
    "fa-birthday-cake" => "Birthday Cake",
    "fa-blender" => "Blender",
    "fa-blind" => "Blind",
    "fa-bold" => "Bold",
    "fa-bolt" => "Bolt",
    "fa-bomb" => "Bomb",
    "fa-book" => "Book",
    "fa-bookmark" => "Bookmark",
    "fa-bowling-ball" => "Bowling Ball",
    "fa-box" => "Box",
    "fa-briefcase" => "Briefcase",
    "fa-bug" => "Bug",
    "fa-building" => "Building",
    "fa-bullhorn" => "Bullhorn",
    "fa-bullseye" => "Bullseye",
    "fa-calendar" => "Calendar",
    "fa-calendar-alt" => "Calendar Alt",
    "fa-calendar-check" => "Calendar Check",
    "fa-calendar-day" => "Calendar Day",
    "fa-calendar-minus" => "Calendar Minus",
    "fa-calendar-plus" => "Calendar Plus",
    "fa-calendar-times" => "Calendar Times",
    "fa-calendar-week" => "Calendar Week",
    "fa-camera" => "Camera",
    "fa-capsules" => "Capsules",
    "fa-car" => "Car",
    "fa-caret-down" => "Caret Down",
    "fa-caret-left" => "Caret Left",
    "fa-caret-right" => "Caret Right",
    "fa-caret-up" => "Caret Up",
    "fa-cart-arrow-down" => "Cart Arrow Down",
    "fa-cart-plus" => "Cart Plus",
    "fa-cash-register" => "Cash Register",
    "fa-certificate" => "Certificate",
    "fa-chair" => "Chair",
    "fa-chalkboard" => "Chalkboard",
    "fa-chalkboard-teacher" => "Chalkboard Teacher",
    "fa-charging-station" => "Charging Station",
    "fa-chart-area" => "Chart Area",
    "fa-chart-bar" => "Chart Bar",
    "fa-chart-line" => "Chart Line",
    "fa-chart-pie" => "Chart Pie",
    "fa-check" => "Check",
    "fa-check-circle" => "Check Circle",
    "fa-check-square" => "Check Square",
    "fa-chess" => "Chess",
    "fa-chess-board" => "Chess Board",
    "fa-chess-pawn" => "Chess Pawn",
    "fa-chess-king" => "Chess King",
    "fa-chess-knight" => "Chess Knight",
    "fa-chess-queen" => "Chess Queen",
    "fa-chess-rook" => "Chess Rook",
    "fa-chevron-circle-down" => "Chevron Circle Down",
    "fa-chevron-circle-left" => "Chevron Circle Left",
    "fa-chevron-circle-right" => "Chevron Circle Right",
    "fa-chevron-circle-up" => "Chevron Circle Up",
    "fa-chevron-down" => "Chevron Down",
    "fa-chevron-left" => "Chevron Left",
    "fa-chevron-right" => "Chevron Right",
    "fa-chevron-up" => "Chevron Up",
    "fa-child" => "Child",
    "fa-church" => "Church",
    "fa-cinema" => "Cinema",
    "fa-clipboard" => "Clipboard",
    "fa-clipboard-check" => "Clipboard Check",
    "fa-clipboard-list" => "Clipboard List",
    "fa-clock" => "Clock",
    "fa-clone" => "Clone",
    "fa-cloud" => "Cloud",
    "fa-cloud-download-alt" => "Cloud Download Alt",
    "fa-cloud-upload-alt" => "Cloud Upload Alt",
    "fa-code" => "Code",
    "fa-code-branch" => "Code Branch",
    "fa-coffee" => "Coffee",
    "fa-cogs" => "Cogs",
    "fa-coins" => "Coins",
    "fa-columns" => "Columns",
    "fa-comment" => "Comment",
    "fa-comment-alt" => "Comment Alt",
    "fa-comment-dots" => "Comment Dots",
    "fa-comments" => "Comments",
    "fa-compact-disc" => "Compact Disc",
    "fa-compass" => "Compass",
    "fa-compress" => "Compress",
    "fa-concierge-bell" => "Concierge Bell",
    "fa-cookie" => "Cookie",
    "fa-cookie-bite" => "Cookie Bite",
    "fa-copy" => "Copy",
    "fa-copyright" => "Copyright",
    "fa-credit-card" => "Credit Card",
    "fa-crop" => "Crop",
    "fa-crow" => "Crow",
    "fa-crown" => "Crown",
    "fa-cube" => "Cube",
    "fa-cubes" => "Cubes",
    "fa-cut" => "Cut",
    "fa-database" => "Database",
    "fa-deaf" => "Deaf",
    "fa-democrat" => "Democrat",
    "fa-desktop" => "Desktop",
    "fa-diagnoses" => "Diagnoses",
    "fa-dice" => "Dice",
    "fa-dice-d6" => "Dice D6",
    "fa-dice-d20" => "Dice D20",
    "fa-dice-five" => "Dice Five",
    "fa-dice-four" => "Dice Four",
    "fa-dice-one" => "Dice One",
    "fa-dice-six" => "Dice Six",
    "fa-dice-three" => "Dice Three",
    "fa-dice-two" => "Dice Two",
    "fa-digital-tachograph" => "Digital Tachograph",
    "fa-directions" => "Directions",
    "fa-divide" => "Divide",
    "fa-dna" => "DNA",
    "fa-dog" => "Dog",
    "fa-dollar-sign" => "Dollar Sign",
    "fa-dolly" => "Dolly",
    "fa-dolly-flatbed" => "Dolly Flatbed",
    "fa-donate" => "Donate",
    "fa-door-closed" => "Door Closed",
    "fa-door-open" => "Door Open",
    "fa-dot-circle" => "Dot Circle",
    "fa-dove" => "Dove",
    "fa-download" => "Download",
    "fa-drafting-compass" => "Drafting Compass",
    "fa-drink" => "Drink",
    "fa-drum" => "Drum",
    "fa-drumstick-bite" => "Drumstick Bite",
    "fa-dumbbell" => "Dumbbell",
    "fa-edit" => "Edit",
    "fa-eject" => "Eject",
    "fa-ellipsis-h" => "Ellipsis H",
    "fa-ellipsis-v" => "Ellipsis V",
    "fa-envelope" => "Envelope",
    "fa-envelope-open" => "Envelope Open",
    "fa-envelope-open-text" => "Envelope Open Text",
    "fa-envelope-square" => "Envelope Square",
    "fa-equals" => "Equals",
    "fa-eraser" => "Eraser",
    "fa-exchange-alt" => "Exchange Alt",
    "fa-exclamation" => "Exclamation",
    "fa-exclamation-circle" => "Exclamation Circle",
    "fa-exclamation-triangle" => "Exclamation Triangle",
    "fa-expand" => "Expand",
    "fa-expand-arrows-alt" => "Expand Arrows Alt",
    "fa-external-link-alt" => "External Link Alt",
    "fa-external-link-square-alt" => "External Link Square Alt",
    "fa-eye" => "Eye",
    "fa-eye-dropper" => "Eye Dropper",
    "fa-eye-slash" => "Eye Slash",
    "fa-fan" => "Fan",
    "fa-fast-backward" => "Fast Backward",
    "fa-fast-forward" => "Fast Forward",
    "fa-fax" => "Fax",
    "fa-feather" => "Feather",
    "fa-feather-alt" => "Feather Alt",
    "fa-female" => "Female",
    "fa-fighter-jet" => "Fighter Jet",
    "fa-file" => "File",
    "fa-file-alt" => "File Alt",
    "fa-file-archive" => "File Archive",
    "fa-file-audio" => "File Audio",
    "fa-file-code" => "File Code",
    "fa-file-contract" => "File Contract",
    "fa-file-csv" => "File CSV",
    "fa-file-download" => "File Download",
    "fa-file-excel" => "File Excel",
    "fa-file-export" => "File Export",
    "fa-file-image" => "File Image",
    "fa-file-import" => "File Import",
    "fa-file-invoice" => "File Invoice",
    "fa-file-invoice-dollar" => "File Invoice Dollar",
    "fa-file-medical" => "File Medical",
    "fa-file-medical-alt" => "File Medical Alt",
    "fa-file-pdf" => "File PDF",
    "fa-file-powerpoint" => "File Powerpoint",
    "fa-file-prescription" => "File Prescription",
    "fa-file-signature" => "File Signature",
    "fa-file-upload" => "File Upload",
    "fa-file-user" => "File User",
    "fa-file-video" => "File Video",
    "fa-file-word" => "File Word",
    "fa-fill" => "Fill",
    "fa-fill-drip" => "Fill Drip",
    "fa-film" => "Film",
    "fa-filter" => "Filter",
    "fa-fire" => "Fire",
    "fa-fire-extinguisher" => "Fire Extinguisher",
    "fa-first-aid" => "First Aid",
    "fa-flag" => "Flag",
    "fa-flag-checkered" => "Flag Checkered",
    "fa-flag-usa" => "Flag USA",
    "fa-flask" => "Flask",
    "fa-floppy-disk" => "Floppy Disk",
    "fa-folder" => "Folder",
    "fa-folder-open" => "Folder Open",
    "fa-folder-plus" => "Folder Plus",
    "fa-folder-minus" => "Folder Minus",
    "fa-font" => "Font",
    "fa-football-ball" => "Football Ball",
    "fa-forumbee" => "Forumbee",
    "fa-forward" => "Forward",
    "fa-frown" => "Frown",
    "fa-frown-open" => "Frown Open",
    "fa-funnel-dollar" => "Funnel Dollar",
    "fa-futbol" => "Futbol",
    "fa-galaxy" => "Galaxy",
    "fa-gamepad" => "Gamepad",
    "fa-gas-pump" => "Gas Pump",
    "fa-gavel" => "Gavel",
    "fa-gem" => "Gem",
    "fa-genderless" => "Genderless",
    "fa-gift" => "Gift",
    "fa-git" => "Git",
    "fa-github" => "Github",
    "fa-gitlab" => "Gitlab",
    "fa-glass-cheers" => "Glass Cheers",
    "fa-glass-martini" => "Glass Martini",
    "fa-glass-martini-alt" => "Glass Martini Alt",
    "fa-glass-whiskey" => "Glass Whiskey",
    "fa-globe" => "Globe",
    "fa-globe-africa" => "Globe Africa",
    "fa-globe-americas" => "Globe Americas",
    "fa-globe-asia" => "Globe Asia",
    "fa-globe-europe" => "Globe Europe",
    "fa-golf-ball" => "Golf Ball",
    "fa-gopuram" => "Gopuram",
    "fa-graduation-cap" => "Graduation Cap",
    "fa-guitar" => "Guitar",
    "fa-h-square" => "H Square",
    "fa-hamburger" => "Hamburger",
    "fa-hammer" => "Hammer",
    "fa-hand-holding" => "Hand Holding",
    "fa-hand-holding-heart" => "Hand Holding Heart",
    "fa-hand-holding-medical" => "Hand Holding Medical",
    "fa-hand-holding-usd" => "Hand Holding Usd",
    "fa-hand-lizard" => "Hand Lizard",
    "fa-hand-middle-finger" => "Hand Middle Finger",
    "fa-hand-paper" => "Hand Paper",
    "fa-hand-peace" => "Hand Peace",
    "fa-hand-point-down" => "Hand Point Down",
    "fa-hand-point-left" => "Hand Point Left",
    "fa-hand-point-right" => "Hand Point Right",
    "fa-hand-point-up" => "Hand Point Up",
    "fa-handshake" => "Handshake",
    "fa-hands" => "Hands",
    "fa-hands-helping" => "Hands Helping",
    "fa-hashtag" => "Hashtag",
    "fa-hat-cowboy" => "Hat Cowboy",
    "fa-hat-cowboy-side" => "Hat Cowboy Side",
    "fa-hat-wizard" => "Hat Wizard",
    "fa-heart" => "Heart",
    "fa-heart-broken" => "Heart Broken",
    "fa-hearts" => "Hearts",
    "fa-history" => "History",
    "fa-hockey-puck" => "Hockey Puck",
    "fa-home" => "Home",
    "fa-hospital" => "Hospital",
    "fa-hospital-alt" => "Hospital Alt",
    "fa-hospital-symbol" => "Hospital Symbol",
    "fa-hot-tub" => "Hot Tub",
    "fa-hourglass" => "Hourglass",
    "fa-hourglass-end" => "Hourglass End",
    "fa-hourglass-half" => "Hourglass Half",
    "fa-hourglass-start" => "Hourglass Start",
    "fa-houzz" => "Houzz",
    "fa-html5" => "HTML5",
    "fa-i-cursor" => "I Cursor",
    "fa-id-badge" => "ID Badge",
    "fa-id-card" => "ID Card",
    "fa-id-card-alt" => "ID Card Alt",
    "fa-image" => "Image",
    "fa-images" => "Images",
    "fa-inbox" => "Inbox",
    "fa-indent" => "Indent",
    "fa-industry" => "Industry",
    "fa-info" => "Info",
    "fa-info-circle" => "Info Circle",
    "fa-italic" => "Italic",
    "fa-jedi" => "Jedi",
    "fa-joint" => "Joint",
    "fa-joystick" => "Joystick",
    "fa-key" => "Key",
    "fa-keyboard" => "Keyboard",
    "fa-kitchen" => "Kitchen",
    "fa-knife-kitchen" => "Knife Kitchen",
    "fa-laptop" => "Laptop",
    "fa-laptop-code" => "Laptop Code",
    "fa-laptop-house" => "Laptop House",
    "fa-laugh" => "Laugh",
    "fa-laugh-beam" => "Laugh Beam",
    "fa-laugh-squint" => "Laugh Squint",
    "fa-laugh-wink" => "Laugh Wink",
    "fa-leaf" => "Leaf",
    "fa-lemon" => "Lemon",
    "fa-less-than" => "Less Than",
    "fa-less-than-equal" => "Less Than Equal",
    "fa-life-ring" => "Life Ring",
    "fa-lightbulb" => "Lightbulb",
    "fa-lightbulb-on" => "Lightbulb On",
    "fa-lightbulb-slash" => "Lightbulb Slash",
    "fa-link" => "Link",
    "fa-lira-sign" => "Lira Sign",
    "fa-list" => "List",
    "fa-list-alt" => "List Alt",
    "fa-list-ol" => "List Ol",
    "fa-list-ul" => "List Ul",
    "fa-location-arrow" => "Location Arrow",
    "fa-lock" => "Lock",
    "fa-lock-open" => "Lock Open",
    "fa-long-arrow-alt-down" => "Long Arrow Alt Down",
    "fa-long-arrow-alt-left" => "Long Arrow Alt Left",
    "fa-long-arrow-alt-right" => "Long Arrow Alt Right",
    "fa-long-arrow-alt-up" => "Long Arrow Alt Up",
    "fa-luggage-cart" => "Luggage Cart",
    "fa-map" => "Map",
    "fa-map-marked" => "Map Marked",
    "fa-map-marked-alt" => "Map Marked Alt",
    "fa-map-marker" => "Map Marker",
    "fa-map-marker-alt" => "Map Marker Alt",
    "fa-map-pin" => "Map Pin",
    "fa-map-signs" => "Map Signs",
    "fa-mars" => "Mars",
    "fa-mars-double" => "Mars Double",
    "fa-mars-stroke" => "Mars Stroke",
    "fa-mars-stroke-h" => "Mars Stroke H",
    "fa-mars-stroke-v" => "Mars Stroke V",
    "fa-mask" => "Mask",
    "fa-medal" => "Medal",
    "fa-medkit" => "Medkit",
    "fa-meh" => "Meh",
    "fa-meh-blank" => "Meh Blank",
    "fa-meh-rolling-eyes" => "Meh Rolling Eyes",
    "fa-memory" => "Memory",
    "fa-microchip" => "Microchip",
    "fa-microphone" => "Microphone",
    "fa-microphone-alt" => "Microphone Alt",
    "fa-microphone-alt-slash" => "Microphone Alt Slash",
    "fa-microphone-slash" => "Microphone Slash",
    "fa-minus" => "Minus",
    "fa-minus-circle" => "Minus Circle",
    "fa-minus-square" => "Minus Square",
    "fa-mobile" => "Mobile",
    "fa-mobile-alt" => "Mobile Alt",
    "fa-money-bill" => "Money Bill",
    "fa-money-bill-alt" => "Money Bill Alt",
    "fa-money-bill-wave" => "Money Bill Wave",
    "fa-money-bill-wave-alt" => "Money Bill Wave Alt",
    "fa-money-check" => "Money Check",
    "fa-money-check-alt" => "Money Check Alt",
    "fa-monument" => "Monument",
    "fa-moon" => "Moon",
    "fa-mortar-pestle" => "Mortar Pestle",
    "fa-mosque" => "Mosque",
    "fa-motorcycle" => "Motorcycle",
    "fa-mouse-pointer" => "Mouse Pointer",
    "fa-music" => "Music",
    "fa-napster" => "Napster",
    "fa-network-wired" => "Network Wired",
    "fa-neuter" => "Neuter",
    "fa-newspaper" => "Newspaper",
    "fa-notes-medical" => "Notes Medical",
    "fa-object-group" => "Object Group",
    "fa-object-ungroup" => "Object Ungroup",
    "fa-oil-can" => "Oil Can",
    "fa-om" => "Om",
    "fa-outdent" => "Outdent",
    "fa-pager" => "Pager",
    "fa-paint-brush" => "Paint Brush",
    "fa-paint-roller" => "Paint Roller",
    "fa-palette" => "Palette",
    "fa-pallet" => "Pallet",
    "fa-paper-plane" => "Paper Plane",
    "fa-paperclip" => "Paperclip",
    "fa-paragraph" => "Paragraph",
    "fa-parking" => "Parking",
    "fa-passport" => "Passport",
    "fa-pastafarianism" => "Pastafarianism",
    "fa-pause" => "Pause",
    "fa-pause-circle" => "Pause Circle",
    "fa-paw" => "Paw",
    "fa-peace" => "Peace",
    "fa-pen" => "Pen",
    "fa-pen-alt" => "Pen Alt",
    "fa-pen-fancy" => "Pen Fancy",
    "fa-pen-nib" => "Pen Nib",
    "fa-pencil-alt" => "Pencil Alt",
    "fa-people-carry" => "People Carry",
    "fa-people-carry-alt" => "People Carry Alt",
    "fa-percent" => "Percent",
    "fa-person-booth" => "Person Booth",
    "fa-phone" => "Phone",
    "fa-phone-alt" => "Phone Alt",
    "fa-phone-slash" => "Phone Slash",
    "fa-phone-square" => "Phone Square",
    "fa-phone-square-alt" => "Phone Square Alt",
    "fa-piggy-bank" => "Piggy Bank",
    "fa-pills" => "Pills",
    "fa-plane" => "Plane",
    "fa-plane-arrival" => "Plane Arrival",
    "fa-plane-departure" => "Plane Departure",
    "fa-play" => "Play",
    "fa-play-circle" => "Play Circle",
    "fa-plug" => "Plug",
    "fa-plus" => "Plus",
    "fa-plus-circle" => "Plus Circle",
    "fa-plus-square" => "Plus Square",
    "fa-podcast" => "Podcast",
    "fa-poll" => "Poll",
    "fa-poll-h" => "Poll H",
    "fa-poo" => "Poo",
    "fa-poo-storm" => "Poo Storm",
    "fa-popcorn" => "Popcorn",
    "fa-pound-sign" => "Pound Sign",
    "fa-power-off" => "Power Off",
    "fa-pray" => "Pray",
    "fa-praying-hands" => "Praying Hands",
    "fa-prescription" => "Prescription",
    "fa-prescription-bottle" => "Prescription Bottle",
    "fa-prescription-bottle-alt" => "Prescription Bottle Alt",
    "fa-print" => "Print",
    "fa-project-diagram" => "Project Diagram",
    "fa-pump-medical" => "Pump Medical",
    "fa-pump-soap" => "Pump Soap",
    "fa-pushpin" => "Pushpin",
    "fa-qrcode" => "Qrcode",
    "fa-question" => "Question",
    "fa-question-circle" => "Question Circle",
    "fa-quidditch" => "Quidditch",
    "fa-quote-left" => "Quote Left",
    "fa-quote-right" => "Quote Right",
    "fa-radiation" => "Radiation",
    "fa-radiation-alt" => "Radiation Alt",
    "fa-rainbow" => "Rainbow",
    "fa-random" => "Random",
    "fa-recycle" => "Recycle",
    "fa-redo" => "Redo",
    "fa-redo-alt" => "Redo Alt",
    "fa-refresh" => "Refresh",
    "fa-registered" => "Registered",
    "fa-reply" => "Reply",
    "fa-reply-all" => "Reply All",
    "fa-republican" => "Republican",
    "fa-retweet" => "Retweet",
    "fa-ribbon" => "Ribbon",
    "fa-road" => "Road",
    "fa-rocket" => "Rocket",
    "fa-route" => "Route",
    "fa-rss" => "Rss",
    "fa-rss-square" => "Rss Square",
    "fa-ruble-sign" => "Ruble Sign",
    "fa-sad-cry" => "Sad Cry",
    "fa-sad-tear" => "Sad Tear",
    "fa-save" => "Save",
    "fa-school" => "School",
    "fa-screwdriver" => "Screwdriver",
    "fa-sd-card" => "SD Card",
    "fa-search" => "Search",
    "fa-search-dollar" => "Search Dollar",
    "fa-search-location" => "Search Location",
    "fa-search-minus" => "Search Minus",
    "fa-search-plus" => "Search Plus",
    "fa-seedling" => "Seedling",
    "fa-server" => "Server",
    "fa-share" => "Share",
    "fa-share-alt" => "Share Alt",
    "fa-share-alt-square" => "Share Alt Square",
    "fa-share-square" => "Share Square",
    "fa-shekel-sign" => "Shekel Sign",
    "fa-shield-alt" => "Shield Alt",
    "fa-ship" => "Ship",
    "fa-shoe-prints" => "Shoe Prints",
    "fa-shopping-bag" => "Shopping Bag",
    "fa-shopping-basket" => "Shopping Basket",
    "fa-shopping-cart" => "Shopping Cart",
    "fa-shower" => "Shower",
    "fa-shuffle" => "Shuffle",
    "fa-signal" => "Signal",
    "fa-signature" => "Signature",
    "fa-sim-card" => "Sim Card",
    "fa-sitemap" => "Sitemap",
    "fa-skating" => "Skating",
    "fa-skiing" => "Skiing",
    "fa-skiing-nordic" => "Skiing Nordic",
    "fa-skull" => "Skull",
    "fa-skull-crossbones" => "Skull Crossbones",
    "fa-slash" => "Slash",
    "fa-sleeping" => "Sleeping",
    "fa-sliders-h" => "Sliders H",
    "fa-smile" => "Smile",
    "fa-smile-beam" => "Smile Beam",
    "fa-smile-wink" => "Smile Wink",
    "fa-smog" => "Smog",
    "fa-smoking" => "Smoking",
    "fa-smoking-ban" => "Smoking Ban",
    "fa-snowman" => "Snowman",
    "fa-socks" => "Socks",
    "fa-solar-panel" => "Solar Panel",
    "fa-sort" => "Sort",
    "fa-sort-alpha-down" => "Sort Alpha Down",
    "fa-sort-alpha-up" => "Sort Alpha Up",
    "fa-sort-amount-down" => "Sort Amount Down",
    "fa-sort-amount-up" => "Sort Amount Up",
    "fa-sort-numeric-down" => "Sort Numeric Down",
    "fa-sort-numeric-up" => "Sort Numeric Up",
    "fa-sort-up" => "Sort Up",
    "fa-space-shuttle" => "Space Shuttle",
    "fa-spinner" => "Spinner",
    "fa-spoon" => "Spoon",
    "fa-square" => "Square",
    "fa-square-full" => "Square Full",
    "fa-stamp" => "Stamp",
    "fa-star" => "Star",
    "fa-star-and-crescent" => "Star And Crescent",
    "fa-star-half" => "Star Half",
    "fa-star-half-alt" => "Star Half Alt",
    "fa-sticky-note" => "Sticky Note",
    "fa-stop" => "Stop",
    "fa-stop-circle" => "Stop Circle",
    "fa-store" => "Store",
    "fa-store-alt" => "Store Alt",
    "fa-street-view" => "Street View",
    "fa-subscript" => "Subscript",
    "fa-subway" => "Subway",
    "fa-suitcase" => "Suitcase",
    "fa-suitcase-rolling" => "Suitcase Rolling",
    "fa-sun" => "Sun",
    "fa-sun-plant-wilt" => "Sun Plant Wilt",
    "fa-superscript" => "Superscript",
    "fa-table" => "Table",
    "fa-table-tennis" => "Table Tennis",
    "fa-tablet" => "Tablet",
    "fa-tablet-alt" => "Tablet Alt",
    "fa-tachometer-alt" => "Tachometer Alt",
    "fa-tag" => "Tag",
    "fa-tags" => "Tags",
    "fa-tape" => "Tape",
    "fa-tasks" => "Tasks",
    "fa-taxi" => "Taxi",
    "fa-teeth" => "Teeth",
    "fa-teeth-open" => "Teeth Open",
    "fa-temperature-high" => "Temperature High",
    "fa-temperature-low" => "Temperature Low",
    "fa-tenge" => "Tenge",
    "fa-terminal" => "Terminal",
    "fa-text-height" => "Text Height",
    "fa-text-width" => "Text Width",
    "fa-th" => "Th",
    "fa-th-large" => "Th Large",
    "fa-th-list" => "Th List",
    "fa-theater-masks" => "Theater Masks",
    "fa-thermometer" => "Thermometer",
    "fa-thermometer-empty" => "Thermometer Empty",
    "fa-thermometer-full" => "Thermometer Full",
    "fa-thermometer-half" => "Thermometer Half",
    "fa-thermometer-quarter" => "Thermometer Quarter",
    "fa-thermometer-three-quarters" => "Thermometer Three Quarters",
    "fa-thumbs-down" => "Thumbs Down",
    "fa-thumbs-up" => "Thumbs Up",
    "fa-ticket-alt" => "Ticket Alt",
    "fa-times" => "Times",
    "fa-times-circle" => "Times Circle",
    "fa-times-square" => "Times Square",
    "fa-tint" => "Tint",
    "fa-tint-slash" => "Tint Slash",
    "fa-toggle-off" => "Toggle Off",
    "fa-toggle-on" => "Toggle On",
    "fa-train" => "Train",
    "fa-tram" => "Tram",
    "fa-transgender" => "Transgender",
    "fa-trash" => "Trash",
    "fa-trash-alt" => "Trash Alt",
    "fa-trash-restore" => "Trash Restore",
    "fa-trash-restore-alt" => "Trash Restore Alt",
    "fa-trash-undo" => "Trash Undo",
    "fa-trash-undo-alt" => "Trash Undo Alt",
    "fa-tree" => "Tree",
    "fa-trophy" => "Trophy",
    "fa-truck" => "Truck",
    "fa-truck-loading" => "Truck Loading",
    "fa-truck-monster" => "Truck Monster",
    "fa-truck-moving" => "Truck Moving",
    "fa-truck-pickup" => "Truck Pickup",
    "fa-tshirt" => "Tshirt",
    "fa-tty" => "Tty",
    "fa-tv" => "TV",
    "fa-umbrella" => "Umbrella",
    "fa-umbrella-beach" => "Umbrella Beach",
    "fa-underline" => "Underline",
    "fa-undo" => "Undo",
    "fa-undo-alt" => "Undo Alt",
    "fa-universal-access" => "Universal Access",
    "fa-university" => "University",
    "fa-unlink" => "Unlink",
    "fa-unlock" => "Unlock",
    "fa-unlock-alt" => "Unlock Alt",
    "fa-upload" => "Upload",
    "fa-user" => "User",
    "fa-user-alt" => "User Alt",
    "fa-user-alt-slash" => "User Alt Slash",
    "fa-user-check" => "User Check",
    "fa-user-circle" => "User Circle",
    "fa-user-clock" => "User Clock",
    "fa-user-cog" => "User Cog",
    "fa-user-edit" => "User Edit",
    "fa-user-friends" => "User Friends",
    "fa-user-graduate" => "User Graduate",
    "fa-user-injured" => "User Injured",
    "fa-user-lock" => "User Lock",
    "fa-user-md" => "User Md",
    "fa-user-minus" => "User Minus",
    "fa-user-ninja" => "User Ninja",
    "fa-user-plus" => "User Plus",
    "fa-user-secret" => "User Secret",
    "fa-user-shield" => "User Shield",
    "fa-user-slash" => "User Slash",
    "fa-user-tag" => "User Tag",
    "fa-user-tie" => "User Tie",
    "fa-user-times" => "User Times",
    "fa-users" => "Users",
    "fa-utensils" => "Utensils",
    "fa-utensil-spoon" => "Utensil Spoon",
    "fa-vector-square" => "Vector Square",
    "fa-venus" => "Venus",
    "fa-venus-double" => "Venus Double",
    "fa-venus-mars" => "Venus Mars",
    "fa-vihara" => "Vihara",
    "fa-volleyball-ball" => "Volleyball Ball",
    "fa-volume-down" => "Volume Down",
    "fa-volume-mute" => "Volume Mute",
    "fa-volume-off" => "Volume Off",
    "fa-volume-up" => "Volume Up",
    "fa-vote-yea" => "Vote Yea",
    "fa-walking" => "Walking",
    "fa-wallet" => "Wallet",
    "fa-wand" => "Wand",
    "fa-wand-magic" => "Wand Magic",
    "fa-washing-machine" => "Washing Machine",
    "fa-watch" => "Watch",
    "fa-watch-calculator" => "Watch Calculator",
    "fa-watchman-monitoring" => "Watchman Monitoring",
    "fa-water" => "Water",
    "fa-weight" => "Weight",
    "fa-weight-hanging" => "Weight Hanging",
    "fa-wheelchair" => "Wheelchair",
    "fa-wifi" => "Wifi",
    "fa-wind" => "Wind",
    "fa-window-maximize" => "Window Maximize",
    "fa-window-minimize" => "Window Minimize",
    "fa-window-restore" => "Window Restore",
    "fa-won-sign" => "Won Sign",
    "fa-wrench" => "Wrench",
    "fa-x-ray" => "X Ray",
    "fa-yen-sign" => "Yen Sign",
    "fa-yin-yang" => "Yin Yang",
    "fa-zoom-in" => "Zoom In",
    "fa-zoom-out" => "Zoom Out",
];
?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<?php
 
// and render if allowed
if ($viewCollection->renderContent) {
    /**
     * This hook gives a chance to prepend content before the active form or to replace the default active form entirely.
     * Please note that from inside the action callback you can access all the controller view variables 
     * via {@CAttributeCollection $collection->controller->data}
     * In case the form is replaced, make sure to set {@CAttributeCollection $collection->renderForm} to false 
     * in order to stop rendering the default content.
     * @since 1.3.3.1
     */
    $hooks->doAction('before_active_form', $collection = new CAttributeCollection(array(
        'controller'    => $this,
        'renderForm'    => true,
    )));
    
    // and render if allowed
    if ($collection->renderForm) {
        $form = $this->beginWidget('CActiveForm',array('focus'=>array($model,Yii::app()->controller->focus))); 
        ?>
        <div class="box box-primary">
            <div class="box-header">
                <div class="pull-left">
                    <h3 class="box-title"><span class="glyphicon glyphicon-star"></span> <?php echo $pageHeading;?></h3>
                </div>
                <div class="pull-right">
                    <?php if (!$model->isNewRecord) { ?>
                    <?php echo CHtml::link(Yii::t('app', 'Create new'), array(Yii::app()->controller->id.'/create'), array('class' => 'btn btn-primary btn-xs', 'title' => Yii::t('app', 'Create new')));?>
                    <?php } ?>
                    <?php echo CHtml::link(Yii::t('app', 'Cancel'), array(Yii::app()->controller->id.'/index'), array('class' => 'btn btn-primary btn-xs', 'title' => Yii::t('app', 'Cancel')));?>
                </div>
                <div class="clearfix"><!-- --></div>
            </div>
            <div class="box-body">
                <?php 
                /**
                 * This hook gives a chance to prepend content before the active form fields.
                 * Please note that from inside the action callback you can access all the controller view variables 
                 * via {@CAttributeCollection $collection->controller->data}
                 * @since 1.3.3.1
                 */
                $hooks->doAction('before_active_form_fields', new CAttributeCollection(array(
                    'controller'    => $this,
                    'form'          => $form    
                )));
                ?>
               
                <div class="clearfix"><!-- --></div>
                <div class="form-group col-lg-6">
                    <?php echo $form->labelEx($model, 'featured');?>
                    <?php echo $form->checkBox($model, 'featured',$model->getHtmlOptions('featured')); ?>
                    <?php echo $form->error($model, 'featured');?>
                </div>   
                <div class="clearfix"><!-- --></div>
                <div class="form-group col-lg-6">
                    <?php echo $form->labelEx($model, 'amenities_name');?>
                    <?php echo $form->textField($model, 'amenities_name',$model->getHtmlOptions('amenities_name')); ?>
                    <?php echo $form->error($model, 'amenities_name');?>
                </div>   
                <script>
                    document.addEventListener('DOMContentLoaded', function() {
                        const dropdownButton = document.querySelector('.dropdown-button');
                        const dropdownContent = document.querySelector('.dropdown-content');
                        const searchInput = dropdownContent.querySelector('.search-input');

                        // Toggle dropdown visibility
                        dropdownButton.addEventListener('click', function() {
                            dropdownContent.parentElement.classList.toggle('show');
                            searchInput.focus(); // Focus the search input when dropdown is shown
                        });

                        // Handle item selection
                        dropdownContent.querySelectorAll('a').forEach(function(item) {
                            item.addEventListener('click', function() {
                                const selectedText = this.textContent.trim();
                                const selectedIcon = this.querySelector('i').className;
                                $('#Amenities_icon_list').val($(this).attr('data-value'));
                                dropdownButton.innerHTML = `<i class="${selectedIcon}"></i> ${selectedText}`;
                                dropdownButton.parentElement.classList.remove('show');
                            });
                        });

                        // Search functionality
                        searchInput.addEventListener('keyup', function() {
                            const searchTerm = this.value.toLowerCase();
                            dropdownContent.querySelectorAll('a').forEach(function(item) {
                                const text = item.textContent.toLowerCase();
                                if (text.includes(searchTerm)) {
                                    item.style.display = 'flex';
                                } else {
                                    item.style.display = 'none';
                                }
                            });
                        });

                        // Close dropdown if clicked outside
                        window.addEventListener('click', function(event) {
                            if (!event.target.matches('.dropdown-button')) {
                                const dropdowns = document.getElementsByClassName("dropdown-content");
                                for (let i = 0; i < dropdowns.length; i++) {
                                    const openDropdown = dropdowns[i];
                                    if (openDropdown.parentElement.classList.contains('show')) {
                                        openDropdown.parentElement.classList.remove('show');
                                    }
                                }
                            }
                        });
                    });
                </script>   
                 <style>
        /* Basic styling for the custom dropdown */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #f9f9f9;
            min-width: 160px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
            border-radius: 4px;
            max-height: 200px;
            overflow-y: auto;
        }

        .dropdown-content a {
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: flex;
            align-items: center;
        }

        .dropdown-content a:hover {
            background-color: #f1f1f1;
        }

        .dropdown-content i {
            margin-right: 10px;
        }

        .dropdown-content .search-input {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
            border: none;
            border-bottom: 1px solid #ddd;
        }

        .dropdown-content .search-input:focus {
            outline: none;
        }

        .dropdown.show .dropdown-content {
            display: block;
        }

        .dropdown-button {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            border-radius: 4px;
            font-size: 16px;
            display: flex;
            align-items: center;
        }

        .dropdown-button i {
            margin-right: 8px;
        }
    </style>
                <div class="form-group col-lg-6">
                    <?php echo $form->labelEx($model, 'icon_list');?>  
                    <?php echo $form->hiddenField($model, 'icon_list',$model->getHtmlOptions('icon_list')); ?>
                    <div class="clearfix"></div>
                    <div class="dropdown">
                        <button class="dropdown-button" type="button">
                            <?php
                            if(!empty($model->icon_list)){ ?>
                                <i class="fas <?php echo $model->icon_list;?>"></i>Selected
                            <?php }else{
                                ?>
                                <i class="fas fa-home"></i>Select an option
                                <?php
                            } ?> 
                        </button>
                        <div class="dropdown-content">
                            <input type="text" class="search-input" placeholder="Search...">
                            <?php
                            foreach ($fontAwesomeIcons as $iconClass => $iconName) {
                               
                                echo '<a href="#" data-value="'.$iconClass.'"><i class="fa  '.$iconClass.'"></i> '.$iconName.'</a>'; 
                            }
                            ?> 
                            <!-- More items as needed -->
                        </div>
                    </div>
                    <?php echo $form->error($model, 'icon_list');?>
                </div>   
                <div class="clearfix"><!-- --></div>
                <div class="form-group col-lg-6">
                    <?php echo $form->labelEx($model, 'code');?>
                    <?php echo $form->textField($model, 'code',$model->getHtmlOptions('code')); ?>
                    <?php echo $form->error($model, 'code');?>
                </div>   
               
                <div class="clearfix"><!-- --></div>
                <div class="form-group col-lg-6">
                    <?php echo $form->labelEx($model, 'f_type');?>
                    <?php echo $form->dropDownList($model, 'f_type',$model->f_type_array(),$model->getHtmlOptions('f_type')); ?>
                    <?php echo $form->error($model, 'f_type');?>
                </div>   
               
                 
                
                <div class="clearfix"><!-- --></div>     
                <?php 
                /**
                 * This hook gives a chance to append content after the active form fields.
                 * Please note that from inside the action callback you can access all the controller view variables 
                 * via {@CAttributeCollection $collection->controller->data}
                 * @since 1.3.3.1
                 */
                $hooks->doAction('after_active_form_fields', new CAttributeCollection(array(
                    'controller'    => $this,
                    'form'          => $form    
                )));
                ?> 
                <div class="clearfix"><!-- --></div>
            </div>
            <div class="box-footer">
                <div class="pull-right">
                    <button type="submit" class="btn btn-primary btn-submit" data-loading-text="<?php echo Yii::t('app', 'Please wait, processing...');?>"><?php echo Yii::t('app', 'Save changes');?></button>
                </div>
                <div class="clearfix"><!-- --></div>
            </div>
        </div>
        <?php 
        $this->endWidget(); 
    }
    /**
     * This hook gives a chance to append content after the active form.
     * Please note that from inside the action callback you can access all the controller view variables 
     * via {@CAttributeCollection $collection->controller->data}
     * @since 1.3.3.1
     */
    $hooks->doAction('after_active_form', new CAttributeCollection(array(
        'controller'      => $this,
        'renderedForm'    => $collection->renderForm,
    )));
}
/**
 * This hook gives a chance to append content after the view file default content.
 * Please note that from inside the action callback you can access all the controller view
 * variables via {@CAttributeCollection $collection->controller->data}
 * @since 1.3.3.1
 */
$hooks->doAction('after_view_file_content', new CAttributeCollection(array(
    'controller'        => $this,
    'renderedContent'   => $viewCollection->renderContent,
)));
