<!--resources/views/partials/modal.blade.php--><divclass="modal"><div>{{$content}}</div><divclass="close button etc">...</div></div><!--inanothertemplate-->@include('partials.modal',['body'=>'<p>The password you have provided is not valid. Here are the rules for valid passwords: [...]</p><p><a href="#">...</a></p>'])
Example 4-17. Passing more than one slot to a component
@component('partials.modal')
@slot('title')
Password validation failure
@endslot
<p>The password you have provided is not valid. Here are the rules for valid passwords: [...]</p>
<p><a href="#">...</a></p>
@endcomponent
Example 4-18. Passing data to a component without slots