I want to have a query using laravel that allows to get the details about a registration. I have this route:
Route::get('/conference/{id}/{slug?}/registration/{regID}/info', [
'uses' => 'RegistrationController@getRegistrationInfo',
'as' =>'conferences.registrationInfo'
]);
When the user accesses this route I want to show the details of that specific registration of the user.
So, I want to have a query that allows to show for a specific registration, when the user clicks in the link associated with the above route "Route::get('/conference/{id}/{slug?}/registration/{regID}/info", show for each ticket/registration type associated with that registration id, in this case, were 2 registration types (2 participants), so a query that allows to show a list with two list items showing the registration info like:
<ul>
<li>
<span>show the registration ID here</span>
<span>Conference name: conference name</span>
<span>Conference date: 2018-06-13</span>
<span>Registration type: general</span>
<span> Participant: John W</span>
<span>Price: 0<span>
</li>
<li>
<span>show the registration ID here</span>
<span>Conference name: conference name</span>
<span>Conference date: 2018-06-13</span>
<span>Registration type: plus</span>
<span> Participant: Jake W</span>
<span>Price: 1<span>
</li>
<ul>
Do you know how this can be achieved? Im not understanding how to do this properly, if it should be only one query or multiple queries. Do you know how to properly achieve a query this context?