Найдите ниже файл блейда:
@foreach($product1['domains']['domain'] as $product)
<tr role="row">
<td class="sorting_desc" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending" aria-sort="descending">1</td>
<td class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1"aria-label="Browser: activate to sort column ascending">
<a href="" style="color:#23b7e5" data-toggle="modal" data-target="#myModal1">
{{$product['domainname']}}
</a>
</td>
<td class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending">
{{$product['regdate']}}
</td>
<td class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending">
{{$product['expirydate']}}
</td>
<td class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending">Renew</td>
</tr>
@endforeach
Найдите ниже код маршрута:
Route::get('/mydomains','InvoiceTicketController@set');
Код контроллера приведен ниже:
class InvoiceTicketController extends Controller
{
public function set(){
$product1=Whmcs::GetClientsDomains([]);
return view('clientlayout.main.mydomains',compact('product1'));
}
}
Предложите мне решение для передачи переменной сеанса в laravel для отображения доменов на основе клиента в моем файле представления.
Auth::id()
в представлении лезвия? - person Luis felipe De jesus Munoz   schedule 19.04.2018