<?php

namespace Database\Seeders;

use Botble\Base\Models\MetaBox as MetaBoxModel;
use Botble\Base\Supports\BaseSeeder;
use Botble\Language\Models\LanguageMeta;
use Botble\Page\Models\Page;
use Botble\LanguageAdvanced\Models\PageTranslation;
use Botble\Slug\Models\Slug;
use Html;
use Illuminate\Support\Str;
use SlugHelper;

class PageSeeder extends BaseSeeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $this->uploadFiles('banners');

        $pages = [
            [
                'name'     => 'Home',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find accessible homes to rent" bg="banners/banner-1.jpg"][/hero-banner]'
                    ) .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6" style="2"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[properties-by-locations title="Find By Locations"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-by-locations]'
                    ) .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag(
                        'div',
                        '[recently-viewed-properties title="Recently Viewed Properties" subtitle="Your currently viewed properties."][/recently-viewed-properties]'
                    )
                ,
                'template' => 'homepage',
            ],
            [
                'name'     => 'Home layout 2',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find accessible homes to rent" bg="banners/banner-svg.jpg" style="2"]Find Your Perfect Place.[/hero-banner]'
                    ) .
                    Html::tag('div', '[static-block alias="achievement"][/static-block]') .
                    Html::tag(
                        'div',
                        '[properties-slide title="Recent Property For Rent" limit="6"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-slide]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Featured Property For Sale" limit="6" style="1"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-agents title="Explore Featured Agents"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-agents]'
                    ) .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag('div', '[static-block alias="download-app"][/static-block]')
                ,
                'template' => 'homepage',
            ],
            [
                'name'     => 'Home layout 3',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find Your Property" bg="banners/banner-3.jpg" style="3" overlay="6"]From as low as $10 per day with limited time offer[/hero-banner]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6" style="2"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[properties-by-locations title="Find By Locations"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-by-locations]'
                    ) .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag(
                        'div',
                        '[cover-banner title="Search Perfect Place In Your City" bg="banners/banner-2.jpg" btntext="Explore More Property" btnlink="#"]We post regulary most powerful articles for help and support.[/cover-banner]'
                    ) .
                    Html::tag(
                        'div',
                        '[latest-news title="News By Resido,3"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/latest-news]'
                    )
                ,
                'template' => 'homepage',
            ],
            [
                'name'     => 'Home layout 4',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find Your Place<br>of Dream" bg="banners/banner-6.png" style="4"]Amet consectetur adipisicing <span class="badge badge-success">New</span>[/hero-banner]'
                    ) .
                    Html::tag('div', '[static-block alias="achievement"][/static-block]') .
                    Html::tag(
                        'div',
                        '[properties-slide title="Recent Property For Rent" limit="6" style="1"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-slide]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag('div', '[static-block alias="download-app"][/static-block]')
                ,
                'template' => 'homepage',
            ],
            [
                'name'     => 'Home layout 5',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find Your Perfect Place." bg="banners/home-2.png" style="5"]Amet consectetur adipisicing New[/hero-banner]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6" style="2"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[properties-by-locations title="Find By Locations"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-by-locations]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6" style="1"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag(
                        'div',
                        '[static-block alias="download-app"][/static-block]'
                    )
                ,
                'template' => 'homepage',
            ],
            [
                'name'     => 'Home layout 6',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Amet consectetur adipisicing" bg="banners/banner-6.png" style="6"]Find Your Place <br>Of Dream[/hero-banner]'
                    ) .
                    Html::tag('div', '[static-block alias="achievement"][/static-block]') .
                    Html::tag(
                        'div',
                        '[properties-slide title="Recent Property For Rent" limit="6" style="1"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-slide]'
                    ) .
                    Html::tag(
                        'div',
                        '[properties-by-locations title="Find By Locations"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-by-locations]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="8" style="1"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag(
                        'div',
                        '[static-block alias="download-app"][/static-block]'
                    )
                ,
                'template' => 'homepage',
            ],
            [
                'name'     => 'Home layout 7',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find accessible homes to rent" bg="banners/banner-1.jpg"]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6" style="1"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[properties-by-locations title="Find By Locations"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-by-locations]'
                    ) .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[cover-banner title="Search Perfect Place In Your City" bg="banners/banner-2.jpg" btntext="Explore More Property" btnlink="#"]We post regulary most powerful articles for help and support.[/cover-banner]'
                    ) .
                    Html::tag(
                        'div',
                        '[latest-news title="News By Resido,3"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/latest-news]'
                    )
                ,
                'template' => 'homepage',
            ],
            [
                'name'     => 'Home layout 8',
                'content'  =>
                    Html::tag('div', '[properties-hero-slide limit="6"][/properties-hero-slide]') .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6" style="2"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[properties-by-locations title="Find By Locations"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-by-locations]'
                    ) .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    )
                ,
                'template' => 'homepage',
            ],
            [
                'name'     => 'Home layout 9',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find accessible homes to rent" bg="banners/new-banner.jpg" style="2"]Find Your Perfect Place.[/hero-banner]'
                    ) .
                    Html::tag('div', '[static-block alias="achievement"][/static-block]') .
                    Html::tag(
                        'div',
                        '[properties-slide title="Recent Property For Rent" limit="6"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-slide]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-agents title="Explore Featured Agents"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-agents]'
                    ) .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag('div', '[static-block alias="download-app"][/static-block]')
                ,
                'template' => 'homepage',
            ],
            [
                'name'     => 'Map Home layout',
                'content'  =>
                    Html::tag('div', '[hero-banner-style-map][/hero-banner-style-map]') .
                    Html::tag('div', '[static-block alias="achievement"][/static-block]') .
                    Html::tag(
                        'div',
                        '[properties-slide title="Recent Property For Rent" limit="6"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-slide]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag('div', '[static-block alias="download-app"][/static-block]')
                ,
                'template' => 'homepage',
            ],
            [
                'name'     => 'Properties',
                'content'  => '---',
                'template' => 'default',
            ],
            [
                'name'        => 'News',
                'description' => 'See Our Latest Articles & News',
                'content'     => ' ',
                'template'    => 'default',
            ],
            [
                'name'        => 'About us',
                'description' => 'Who we are & our mission',
                'content'     => Html::tag('div', '[static-block alias="our-story"][/static-block]') .
                        Html::tag('div', '[static-block alias="our-mission"][/static-block]')
                ,
                'template'    => 'default',
            ],
            [
                'name'     => 'Contact',
                'content'  => '<p>[contact-form][/contact-form]<br />
                            &nbsp;</p>

                            <h3>Directions</h3>

                            <p>[google-map]North Link Building, 10 Admiralty Street, 757695 Singapore[/google-map]</p>

                            <p>&nbsp;</p>',
                'template' => 'default',
            ],
            [
                'name'        => 'Terms & Conditions',
                'description' => 'Copyrights and other intellectual property rights to all text, images, audio, software and other content on this site are owned by Resido and its affiliates. Users are allowed to view the contents of the website, cite the contents by printing, downloading the hard disk and distributing it to others for non-commercial purposes.',
                'content'     => '<p style="text-align: justify;"><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">Access to and use of the Resido website is subject to the following terms, conditions, and relevant laws of Vietnam.</span></span></p>

                    <h4 style="text-align: justify;"><span style="font-size:18px;"><span style="font-family:Arial,Helvetica,sans-serif;"><strong>1. Copyright</strong></span></span></h4>

                    <p style="text-align: justify;"><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">Copyrights and other intellectual property rights to all text, images, audio, software and other content on this site are owned by Resido and its affiliates. Users are allowed to view the contents of the website, cite the contents by printing, downloading the hard disk and distributing it to others for non-commercial purposes, providing information or personal purposes. </span></span><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">Any content from this site may not be used for sale or distribution for profit, nor may it be edited or included in any other publication or website.</span></span></p>

                    <h4 style="text-align: justify;"><span style="font-size:18px;"><span style="font-family:Arial,Helvetica,sans-serif;"><strong>2. Content</strong></span></span></h4>

                    <p style="text-align: justify;"><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">The information on this website is compiled with great confidence but for general information research purposes only. While we endeavor to maintain updated and accurate information, we make no representations or warranties in any manner regarding completeness, accuracy, reliability, appropriateness or availability in relation to web site, or related information, product, service, or image within the website for any purpose. </span></span></p>

                        <p style="text-align: justify;"><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">Resido and its employees, managers, and agents are not responsible for any loss, damage or expense incurred as a result of accessing and using this website and the sites. </span></span><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">The web is connected to it, including but not limited to, loss of profits, direct or indirect losses. We are also not responsible, or jointly responsible, if the site is temporarily inaccessible due to technical issues beyond our control. Any comments, suggestions, images, ideas and other information or materials that users submit to us through this site will become our exclusive property, including the right to may arise in the future associated with us.</span></span></p>

                    <p style="text-align: center;"><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;"><img alt="" src="https://flex-home.botble.com/storage/general/copyright.jpg" style="width: 90%;" /></span></span></p>

                    <h4 style="text-align: justify;"><span style="font-size:18px;"><span style="font-family:Arial,Helvetica,sans-serif;"><strong>3. Note on&nbsp;connected sites</strong></span></span></h4>

                    <p style="text-align: justify;"><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">At many points in the website, users can get links to other websites related to a specific aspect. This does not mean that we are related to the websites or companies that own these websites. Although we intend to connect users to sites of interest, we are not responsible or jointly responsible for our employees, managers, or representatives. with other websites and information contained therein.</span></span></p>
                ',
                'template'    => 'default',
            ],
            [
                'name'     => 'Cookie Policy',
                'content'  => Html::tag('h3', 'EU Cookie Consent') .
                    Html::tag(
                        'p',
                        'To use this website we are using Cookies and collecting some Data. To be compliant with the EU GDPR we give you to choose if you allow us to use certain Cookies and to collect some Data.'
                    ) .
                    Html::tag('h4', 'Essential Data') .
                    Html::tag(
                        'p',
                        'The Essential Data is needed to run the Site you are visiting technically. You can not deactivate them.'
                    ) .
                    Html::tag(
                        'p',
                        '- Session Cookie: PHP uses a Cookie to identify user sessions. Without this Cookie the Website is not working.'
                    ) .
                    Html::tag(
                        'p',
                        '- XSRF-Token Cookie: Laravel automatically generates a CSRF "token" for each active user session managed by the application. This token is used to verify that the authenticated user is the one actually making the requests to the application.'
                    ),
                'template' => 'default',
            ],
        ];
        $translations = [
            [
                'name'     => 'Trang chủ',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find accessible homes to rent" bg="banners/banner-1.jpg"][/hero-banner]'
                    ) .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6" style="2"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[properties-by-locations title="Find By Locations"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-by-locations]'
                    ) .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag(
                        'div',
                        '[recently-viewed-properties title="Recently Viewed Properties" subtitle="Your currently viewed properties."][/recently-viewed-properties]'
                    )
                ,
            ],
            [
                'name'     => 'Trang chủ 2',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find accessible homes to rent" bg="banners/banner-svg.jpg" style="2"]Find Your Perfect Place.[/hero-banner]'
                    ) .
                    Html::tag('div', '[static-block alias="achievement"][/static-block]') .
                    Html::tag(
                        'div',
                        '[properties-slide title="Recent Property For Rent" limit="6"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-slide]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Featured Property For Sale" limit="6" style="1"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-agents title="Explore Featured Agents"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-agents]'
                    ) .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag('div', '[static-block alias="download-app"][/static-block]')
                ,
            ],
            [
                'name'     => 'Trang chủ 3',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find Your Property" bg="banners/banner-3.jpg" style="3" overlay="6"]From as low as $10 per day with limited time offer[/hero-banner]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6" style="2"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[properties-by-locations title="Find By Locations"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-by-locations]'
                    ) .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag(
                        'div',
                        '[cover-banner title="Search Perfect Place In Your City" bg="banners/banner-2.jpg" btntext="Explore More Property" btnlink="#"]We post regulary most powerful articles for help and support.[/cover-banner]'
                    ) .
                    Html::tag(
                        'div',
                        '[latest-news title="News By Resido,3"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/latest-news]'
                    )
                ,
            ],
            [
                'name'     => 'Trang chủ 4',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find Your Place<br>of Dream" bg="banners/banner-6.png" style="4"]Amet consectetur adipisicing <span class="badge badge-success">New</span>[/hero-banner]'
                    ) .
                    Html::tag('div', '[static-block alias="achievement"][/static-block]') .
                    Html::tag(
                        'div',
                        '[properties-slide title="Recent Property For Rent" limit="6" style="1"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-slide]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag('div', '[static-block alias="download-app"][/static-block]')
                ,
            ],
            [
                'name'     => 'Trang chủ 5',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find Your Perfect Place." bg="banners/home-2.png" style="5"]Amet consectetur adipisicing New[/hero-banner]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6" style="2"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[properties-by-locations title="Find By Locations"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-by-locations]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6" style="1"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag(
                        'div',
                        '[static-block alias="download-app"][/static-block]'
                    )
                ,
            ],
            [
                'name'     => 'Trang chủ 6',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Amet consectetur adipisicing" bg="banners/banner-6.png" style="6"]Find Your Place <br>Of Dream[/hero-banner]'
                    ) .
                    Html::tag('div', '[static-block alias="achievement"][/static-block]') .
                    Html::tag(
                        'div',
                        '[properties-slide title="Recent Property For Rent" limit="6" style="1"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-slide]'
                    ) .
                    Html::tag(
                        'div',
                        '[properties-by-locations title="Find By Locations"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-by-locations]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="8" style="1"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag(
                        'div',
                        '[static-block alias="download-app"][/static-block]'
                    )
                ,
            ],
            [
                'name'     => 'Trang chủ 7',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find accessible homes to rent" bg="banners/banner-1.jpg"]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6" style="1"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[properties-by-locations title="Find By Locations"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-by-locations]'
                    ) .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[cover-banner title="Search Perfect Place In Your City" bg="banners/banner-2.jpg" btntext="Explore More Property" btnlink="#"]We post regulary most powerful articles for help and support.[/cover-banner]'
                    ) .
                    Html::tag(
                        'div',
                        '[latest-news title="News By Resido,3"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/latest-news]'
                    )
                ,
            ],
            [
                'name'     => 'Trang chủ 8',
                'content'  =>
                    Html::tag('div', '[properties-hero-slide limit="6"][/properties-hero-slide]') .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6" style="2"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[properties-by-locations title="Find By Locations"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-by-locations]'
                    ) .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    )
                ,
            ],
            [
                'name'     => 'Trang chủ 9',
                'content'  =>
                    Html::tag(
                        'div',
                        '[hero-banner title="Find accessible homes to rent" bg="banners/new-banner.jpg" style="2"]Find Your Perfect Place.[/hero-banner]'
                    ) .
                    Html::tag('div', '[static-block alias="achievement"][/static-block]') .
                    Html::tag(
                        'div',
                        '[properties-slide title="Recent Property For Rent" limit="6"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-slide]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-agents title="Explore Featured Agents"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-agents]'
                    ) .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag('div', '[static-block alias="download-app"][/static-block]')
                ,
            ],
            [
                'name'     => 'Trang chủ bản đồ',
                'content'  =>
                    Html::tag('div', '[hero-banner-style-map][/hero-banner-style-map]') .
                    Html::tag('div', '[static-block alias="achievement"][/static-block]') .
                    Html::tag(
                        'div',
                        '[properties-slide title="Recent Property For Rent" limit="6"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/properties-slide]'
                    ) .
                    Html::tag(
                        'div',
                        '[featured-properties title="Explore Good Places" limit="6"]At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores[/featured-properties]'
                    ) .
                    Html::tag('div', '[static-block alias="how-it-works"][/static-block]') .
                    Html::tag(
                        'div',
                        '[testimonials title="Good Reviews By Customers" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/testimonials]'
                    ) .
                    Html::tag(
                        'div',
                        '[our-packages title="See Our Packages" description="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"][/our-packages]'
                    ) .
                    Html::tag('div', '[static-block alias="download-app"][/static-block]')
                ,
            ],
            [
                'name'     => 'Properties list',
                'content'  => '---',
            ],
            [
                'name'     => 'Tin tức',
                'content'  => '---',
            ],
            [
                'name'        => 'Về chúng tôi',
                'description' => 'Chúng tôi là ai và nhiệm vụ của chúng tôi',
                'content'     => Html::tag('div', '[static-block alias="our-story"][/static-block]') .
                    Html::tag('div', '[static-block alias="our-mission"][/static-block]')
                ,
            ],
            [
                'name'     => 'Liên hệ',
                'content'  => Html::tag('div', '[contact-form][/contact-form]') .
                    Html::tag('h3', 'Tìm đường đi').
                    Html::tag('div', '[google-map]North Link Building, 10 Admiralty Street, 757695 Singapore[/google-map]')
                ,
            ],
            [
                'name'        => 'Điều khoản và quy định',
                'description' => 'Quyền tác giả và các quyền sở hữu trí tuệ khác đối với mọi văn bản, hình ảnh, âm thanh, phần mềm và các nội dung khác trên trang web này thuộc quyền sở hữu của Resido cùng các công ty thành viên. Người truy cập được phép xem các nội dung trong trang web, trích dẫn nội dung bằng cách in ấn, tải về đĩa cứng và phân phát cho người khác chỉ với mục đích phi thương mại.',
                'content'     => '<p style="text-align: justify;"><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">Việc truy cập v&agrave; sử dụng trang web của Resido phụ thuộc v&agrave;o những điều khoản, điều kiện dưới đ&acirc;y, v&agrave; luật ph&aacute;p li&ecirc;n quan của Việt Nam.</span></span></p>

                    <h4 style="text-align: justify;"><span style="font-size:18px;"><span style="font-family:Arial,Helvetica,sans-serif;"><strong>1. Quyền t&aacute;c giả&nbsp;</strong></span></span></h4>

                    <p style="text-align: justify;"><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">Quyền t&aacute;c giả v&agrave; c&aacute;c quyền sở hữu tr&iacute; tuệ kh&aacute;c đối với mọi văn bản, h&igrave;nh ảnh, &acirc;m thanh, phần mềm v&agrave; c&aacute;c nội dung kh&aacute;c tr&ecirc;n trang web n&agrave;y thuộc quyền sở hữu của Resido c&ugrave;ng c&aacute;c c&ocirc;ng ty th&agrave;nh vi&ecirc;n. Người truy cập được ph&eacute;p xem c&aacute;c nội dung trong trang web, tr&iacute;ch dẫn nội dung bằng c&aacute;ch in ấn, tải về đĩa cứng v&agrave; ph&acirc;n ph&aacute;t cho người kh&aacute;c chỉ với mục đ&iacute;ch phi thương mại, cung cấp th&ocirc;ng tin hoặc mục đ&iacute;ch c&aacute; nh&acirc;n. Bất kể nội dung n&agrave;o từ trang web n&agrave;y đều kh&ocirc;ng được sử dụng để b&aacute;n hoặc ph&acirc;n t&aacute;n để kiếm lợi v&agrave; cũng kh&ocirc;ng được chỉnh sửa hoặc đưa v&agrave;o bất kỳ ấn phẩm hoặc trang web n&agrave;o kh&aacute;c.</span></span></p>

                    <h4 style="text-align: justify;"><span style="font-size:18px;"><span style="font-family:Arial,Helvetica,sans-serif;"><strong>2. Nội dung</strong></span></span></h4>

                    <p style="text-align: justify;"><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">Th&ocirc;ng tin tr&ecirc;n trang web n&agrave;y được bi&ecirc;n soạn với sự tin tưởng cao độ nhưng chỉ d&agrave;nh cho c&aacute;c mục đ&iacute;ch nghi&ecirc;n cứu th&ocirc;ng tin tổng qu&aacute;t. Tuy ch&uacute;ng t&ocirc;i nỗ lực duy tr&igrave; th&ocirc;ng tin cập nhật v&agrave; chuẩn x&aacute;c, nhưng ch&uacute;ng t&ocirc;i kh&ocirc;ng khẳng định hay bảo đảm theo bất kỳ c&aacute;ch thức n&agrave;o về sự đầy đủ, ch&iacute;nh x&aacute;c, đ&aacute;ng tin cậy, th&iacute;ch hợp hoặc c&oacute; sẵn li&ecirc;n quan đến trang web, hoặc th&ocirc;ng tin, sản phẩm, dịch vụ, hoặc h&igrave;nh ảnh li&ecirc;n quan trong trang web v&igrave; bất cứ mục đ&iacute;ch g&igrave;. </span></span></p>

                    <p style="text-align: justify;"><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">Resido v&agrave; mọi nh&acirc;n vi&ecirc;n, nh&agrave; quản l&yacute;, v&agrave; c&aacute;c b&ecirc;n đại diện ho&agrave;n to&agrave;n kh&ocirc;ng chịu tr&aacute;ch nhiệm g&igrave; đối với bất kỳ tổn thất, thiệt hại hoặc chi ph&iacute; ph&aacute;t sinh do việc truy cập v&agrave; sử dụng trang web n&agrave;y v&agrave; c&aacute;c trang web được kết nối với n&oacute;, bao gồm nhưng kh&ocirc;ng giới hạn, việc mất đi lợi nhuận, c&aacute;c khoản lỗ trực tiếp hoặc gi&aacute;n tiếp. Ch&uacute;ng t&ocirc;i cũng kh&ocirc;ng chịu tr&aacute;ch nhiệm, hoặc li&ecirc;n đới tr&aacute;ch nhiệm nếu trang web tạm thời kh&ocirc;ng thể truy cập do c&aacute;c vấn đề kỹ thuật nằm ngo&agrave;i tầm kiểm so&aacute;t của ch&uacute;ng t&ocirc;i. Mọi b&igrave;nh luận, gợi &yacute;, h&igrave;nh ảnh, &yacute; tưởng v&agrave; những th&ocirc;ng tin hay t&agrave;i liệu kh&aacute;c m&agrave; người sử dụng chuyển cho ch&uacute;ng t&ocirc;i th&ocirc;ng qua trang web n&agrave;y sẽ trở th&agrave;nh t&agrave;i sản độc quyền của ch&uacute;ng t&ocirc;i, bao gồm cả c&aacute;c quyền c&oacute; thể ph&aacute;t sinh trong tương lai gắn liền với ch&uacute;ng t&ocirc;i.</span></span></p>

                    <p style="text-align:center"><img alt="" src="https://flex-home.botble.com/storage/general/copyright.jpg" style="width: 90%;" /></p>

                    <h4 style="text-align: justify;"><span style="font-size:18px;"><span style="font-family:Arial,Helvetica,sans-serif;"><strong>3. Lưu &yacute; c&aacute;c trang web được kết nối</strong></span></span></h4>

                    <p style="text-align: justify;"><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">Tại nhiều điểm trong trang web, người sử dụng c&oacute; thể nhận được c&aacute;c kết nối đến c&aacute;c trang web kh&aacute;c li&ecirc;n quan đến một kh&iacute;a cạnh cụ thể. Điều n&agrave;y kh&ocirc;ng c&oacute; nghĩa l&agrave; ch&uacute;ng t&ocirc;i c&oacute; li&ecirc;n quan đến những trang web hay c&ocirc;ng ty sở hữu những trang web n&agrave;y. D&ugrave; ch&uacute;ng t&ocirc;i c&oacute; &yacute; định kết nối người sử dụng đến c&aacute;c trang web cần quan t&acirc;m, nhưng ch&uacute;ng t&ocirc;i v&agrave; c&aacute;c nh&acirc;n vi&ecirc;n, nh&agrave; quản l&yacute;, hoặc c&aacute;c b&ecirc;n đại diện ho&agrave;n to&agrave;n kh&ocirc;ng chịu tr&aacute;ch nhiệm hoặc li&ecirc;n đới chịu tr&aacute;ch nhiệm g&igrave; đối với c&aacute;c trang web kh&aacute;c v&agrave; th&ocirc;ng tin chứa đựng trong đ&oacute;.</span></span></p>
                    <p style="text-align: justify;"><span style="font-size:16px;"><span style="font-family:Arial,Helvetica,sans-serif;">At many points in the website, users can get links to other websites related to a specific aspect. This does not mean that we are related to the websites or companies that own these websites. Although we intend to connect users to sites of interest, we are not responsible or jointly responsible for our employees, managers, or representatives. with other websites and information contained therein.</span></span></p>
                    ',
            ],
            [
                'name'     => 'Cookie Policy',
                'content'  => Html::tag('h3', 'EU Cookie Consent') .
                    Html::tag(
                        'p',
                        'Để sử dụng trang web này, chúng tôi đang sử dụng Cookie và thu thập một số Dữ liệu. Để tuân thủ GDPR của Liên minh Châu Âu, chúng tôi cho bạn lựa chọn nếu bạn cho phép chúng tôi sử dụng một số Cookie nhất định và thu thập một số Dữ liệu.'
                    ) .
                    Html::tag('h4', 'Dữ liệu cần thiết') .
                    Html::tag(
                        'p',
                        'Dữ liệu cần thiết là cần thiết để chạy Trang web bạn đang truy cập về mặt kỹ thuật. Bạn không thể hủy kích hoạt chúng.'
                    ) .
                    Html::tag(
                        'p',
                        '- Session Cookie: PHP sử dụng Cookie để xác định phiên của người dùng. Nếu không có Cookie này, trang web sẽ không hoạt động.'
                    ) .
                    Html::tag(
                        'p',
                        '- XSRF-Token Cookie: Laravel tự động tạo "token" CSRF cho mỗi phiên người dùng đang hoạt động do ứng dụng quản lý. Token này được sử dụng để xác minh rằng người dùng đã xác thực là người thực sự đưa ra yêu cầu đối với ứng dụng.'
                    ),
            ],
        ];

        Page::truncate();
        PageTranslation::truncate();
        Slug::where('reference_type', Page::class)->delete();
        MetaBoxModel::where('reference_type', Page::class)->delete();
        LanguageMeta::where('reference_type', Page::class)->delete();

        foreach ($pages as $index => $item) {
            $item['user_id'] = 1;
            $page = Page::create($item);

            Slug::create([
                'reference_type' => Page::class,
                'reference_id'   => $page->id,
                'key'            => Str::slug($page->name),
                'prefix'         => SlugHelper::getPrefix(Page::class),
            ]);
        }
        foreach ($translations as $index => $item) {
            $item['lang_code'] = 'vi';
            $item['pages_id'] = $index + 1;

            PageTranslation::insert($item);
        }
    }
}
