<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\Models\systemAdministration\info;
use View;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        $info=Info::find(1);
        view::share(
            [
                'blogo'=>$info->logo,
                'bname'=>$info->website_title,
                'phone'=>$info->phone1,
                'phone1'=>$info->phone2,
                'email'=>$info->email,
                'laddress'=>$info->local_address,
                'iaddress'=>$info->internation_address,
                'about'=>$info->about,
                'mission'=>$info->mission,
                'vision'=>$info->vission,
                'career'=>$info->development_carrer,
                'fb'=>$info->facebook_url,
                'integram'=>$info->instegram_url,
                'tweeter'=>$info->twitter_url,
                'linkden'=>$info->lingding_url,
                'youtube'=>$info->youtube_url,
                'tiktok'=>$info->tiktok_url,


            ]);
    }
}
