I have stored logos in the database and want to display them in the footer which is included `@include('layouts.footer')`. I am fetching images from the database using this code

```
 public function show(){
        $logo = DB::table('logos')->get();
        return view('layouts.footer',['logo'=>$logo]);
 }

```

I want to display these images in the footer using 

```
    <div class="footer">
       @foreach($logo as $l)
          {{ $l->company_name}}
          {{ $l->company_logo}}
       @endforeach
    <p class="footer-text">&copy; Copyright <?php echo date("Y"); ?> Hotel Store Partners</p>
</div>

```

but returns an error "undefined variable logo".
What is the correct way to display the images in the footer?