0

I have a master blade file which will include another blade file based on a DB value like so:

@include('sign/templates/{{$SignRequest->form_template}}')

The db field form_template contains the name of the blade file to include. This name is passed to the master blade file correctly, but I can't figure out how to use this value within the include statement.

I get the following error:

View [sign.templates.<?php echo e($SignRequest->form_template); ?>] not found. 
user3163357
  • 129
  • 3
  • 10

1 Answers1

0
@include('sign.templates.'.$SignRequest->form_template)
Hossein Piri
  • 716
  • 1
  • 7
  • 15