@foreach($a as $a)

{{$a->content1}}

{{$a->content2}}

@endforeach
@csrf @foreach ($b as $b)

{{$b->name}}

@endforeach