@php
    $settings = App\Models\Setting::where('id', 1)->first();
    $privacy_policy = App\Models\Page::where('id', $settings->privacy_id)
        ->select('slug')
        ->first();
    $terms_conditions = App\Models\Page::where('id', $settings->terms_id)
        ->select('slug')
        ->first();
@endphp
<footer class="container-fluid">
    <div class="container">
        <div class="row align-items-center">
            <div class="col-lg-6 col-md-6 col-sm-12 links">
                <a href="{{ route('getPage', $privacy_policy->slug) }}">Privacy Policy</a>
                <a href="{{ route('getPage', $terms_conditions->slug) }}">Terms and Conditions</a>
            </div>
            <div class="col-lg-6 col-md-6 col-sm-12 social">
                <a href="{{ $settings->facebook }}" target="blank" class="social-link">
                    <i class="fa-brands fa-facebook-f"></i>
                </a>
                <a href="{{ $settings->tweetir }}" target="blank" class="social-link">
                    <i class="fa-brands fa-twitter"></i>
                </a>
                <a href="{{ $settings->linkedin }}" target="blank" class="social-link">
                    <i class="fa-brands fa-linkedin-in"></i>
                </a>
                <a href="{{ $settings->instegram }}" target="blank" class="social-link">
                    <i class="fa-brands fa-instagram"></i> </a>
                <a href="{{ $settings->youtube }}" target="blank" class="social-link">
                    <i class="fa-brands fa-youtube"></i> </a>
            </div>
        </div>
    </div>
</footer>
