@php // Settings use App\Setting; use App\Page; $setting = Setting::where('status', 1)->first(); $pages = Page::get(); @endphp
{{ $settings->site_name }}

{{ __('My Account') }}

{{-- Custom pages --}} @if ($pages && $pages->where('page_name', 'Custom Page')->where('status', 'active')->isNotEmpty())

{{ __('Useful Links') }}

@foreach ($pages as $page) @if ($page->page_name == 'Custom Page' && $page->status == 'active') @endif @endforeach
@endif

{{ __('Legals') }}

© {{ __('Copyright') }} {{ Carbon\Carbon::now()->format('Y') }}. {{ __('All Rights Reserved by') }} {{ config('app.name') }}.