I am new in laravel, could you please help me in below situation, i have a function which takes three arguments
public function myfunction (Request $request)
{
$first=$request->first;
$second=$request->second;
$third=$request->third;
{some calculation here }
return view('report/myrepo1,.......)}
now i have blade where we have for each loop of some other $variable like this
@foreach($var as $v)
<tr>{{<td>$v->first}}</td>
<td>{{$v->second}}</td>
<td>{{$v->third}}</td>
<td>{{ ????? //How to cal the function which i wrote in controller }}
//if i am doing calling a function as we do in C or C++ it show error}}
//like this {{myfunction($value->first,$value->second,$value->third)}}
any idea how to solve this kind of problem thanks