layout/app.blade.php

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div class="container">
		@yield('content')
	</div>

	@yield('footer')
</body>
</html>

extendsでincludeして、sectionで入れる

@extends('layouts.app')

@section('content')

<h1>Contact Page</h1>

@endsection

javascriptも同じ
scriptタグで書いていく

@section('footer')
<script>alert('hello visitor')</script>

@endsection