V
V
Victoria Kabishova2021-08-12 13:22:21
PHP
Victoria Kabishova, 2021-08-12 13:22:21

How to throw an array or a collection of project IDs into a template?

Template code:

@if ($work)
  <p class="project-work font-bold mb-2 mt-0">{!! $work !!}</p>
@endif
@if ($navigation['work'])
  {!! $navigation['work']->renderBlocks(false, [
    'menu' => 'site.blocks.menu.work'
  ]) !!}
@endif

@if ($work)
    <div class="list-group"><a href="mailto:{{ $work }}" class="list-group-item list-group-item-action">{{ $work }}</a></div>
@endif

Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
inFureal, 2021-08-19
@inFureal

Where are the identifiers?
I mean so

view('work-card.blade.php', [
    'work' => ...,
    'navigator' => [...]
]);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question