<% navbar_items = {} navbar_items = { dhatu_website_items: { pages: { text: "Pages", icon_class: "fa-file", url: dhatu.pages_url, has_permission: @current_user.has_read_permission?(Dhatu::Page) }, categories: { text: "Categories", icon_class: "fa-sitemap", url: dhatu.choose_category_type_url, has_permission: @current_user.has_read_permission?(Dhatu::Category) }, projects: { text: "Projects", icon_class: "fa-tasks", url: dhatu.projects_url, has_permission: @current_user.has_read_permission?(Dhatu::Project) }, manufacturers: { text: "Manufacturers", icon_class: "fa-institution", url: dhatu.manufacturers_url, has_permission: @current_user.has_read_permission?(Dhatu::Manufacturer) }, products: { text: "Products", icon_class: "fa-th", url: dhatu.products_url, has_permission: @current_user.has_read_permission?(Dhatu::Product) }, services: { text: "Services", icon_class: "fa-wrench", url: dhatu.services_url, has_permission: @current_user.has_read_permission?(Dhatu::Service) }, photo_albums: { text: "Photo Gallery", icon_class: "fa-image", url: dhatu.photo_albums_url, has_permission: @current_user.has_read_permission?(Dhatu::PhotoAlbum) }, prices: { text: "Prices", icon_class: "fa-dollar", url: dhatu.prices_url, has_permission: @current_user.has_read_permission?(Dhatu::Price) }, branches: { text: "Branches", icon_class: "fa-map-marker", url: dhatu.branches_url, has_permission: @current_user.has_read_permission?(Dhatu::Branch) }, events: { text: "Events", icon_class: "fa-calendar", url: dhatu.events_url, has_permission: @current_user.has_read_permission?(Dhatu::Event) }, testimonials: { text: "Testimonials", icon_class: "fa-comment", url: dhatu.testimonials_url, has_permission: @current_user.has_read_permission?(Dhatu::Testimonial) }, careers: { text: "Careers", icon_class: "fa-male", url: dhatu.career_opportunities_url, has_permission: @current_user.has_read_permission?(Dhatu::CareerOpportunity) }, team: { text: "Team", icon_class: "fa-group", url: dhatu.team_members_url, has_permission: @current_user.has_read_permission?(Dhatu::TeamMember) } }, dhatu_marketing_items: { promotions: { text: "Promotions", icon_class: "fa-gift", url: dhatu.promotions_url, has_permission: @current_user.has_read_permission?(Dhatu::Promotion) }, promotion_enquiries: { text: "Promotional Enquiries", icon_class: "fa-bullhorn", url: dhatu.promotion_enquiries_url, has_permission: @current_user.has_read_permission?(Dhatu::PromotionEnquiry) }, bookings: { text: "Bookings", icon_class: "fa-calendar", url: dhatu.bookings_url, has_permission: @current_user.has_read_permission?(Dhatu::Booking) }, blog_posts: { text: "Blog", icon_class: "fa-newspaper-o", url: dhatu.blog_posts_url, has_permission: @current_user.has_read_permission?(Dhatu::BlogPost) }, offers: { text: "Offers", icon_class: "fa-gift", url: dhatu.offers_url, has_permission: @current_user.has_read_permission?(Dhatu::Offer) } }, configuration_items: { features: { text: "Manage Features", icon_class: "fa-diamond", url: usman.features_url, has_permission: @current_user.has_read_permission?(Feature) }, users: { text: "Manage Users", icon_class: "fa-user", url: usman.users_url, has_permission: @current_user.has_read_permission?(User) }, registrations: { text: "Manage Registrations", icon_class: "fa-mobile", url: usman.registrations_url, has_permission: @current_user.has_read_permission?(Registration) }, roles: { text: "Manage Roles", icon_class: "fa-graduation-cap", url: usman.roles_url, has_permission: @current_user.has_read_permission?(Role) }, permissions: { text: "Manage Permissions", icon_class: "fa-lock", url: usman.permissions_url, has_permission: @current_user.has_read_permission?(Permission) }, countries: { text: "Manage Countries", icon_class: "fa-flag-checkered", url: pattana.countries_url, has_permission: @current_user.has_read_permission?(Country) }, regions: { text: "Manage Regions", icon_class: "fa-globe", url: pattana.regions_url, has_permission: @current_user.has_read_permission?(Region) }, cities: { text: "Manage Cities", icon_class: "fa-map-marker", url: pattana.cities_url, has_permission: @current_user.has_read_permission?(City) }, } } if @current_user %>