public function show($hashId) { $id = \Jamesy\Miscellaneous::decryptId($hashId); if ($email = Email::find($id)) { } return View::make('backend.emails.send_templates.main', ['email_body' => $email->email_body]); }
Route::get('dashboard/users/{id}/ban', 'UserController@ban'); Route::get('dashboard/users/{id}/unban', 'UserController@un_ban'); Route::get('dashboard/users/{id}/destroy', 'UserController@destroy'); Route::group(['before' => 'csrf'], function () { Route::post('dashboard/users/store', 'UserController@store'); Route::post('dashboard/users/update', 'UserController@update'); Route::post('dashboard/users/bulk-destroy', 'UserController@bulk_destroy'); }); }); Route::get('dashboard/logout', 'AuthenticationController@logout'); }); //Email Pages Frontend Stuff Route::get('email/{slug}/preview', 'FrontendController@preview'); Route::get('email/{slug}', 'FrontendController@show'); Route::get('email/show/{hashId}', function ($hashId) { $id = \Jamesy\Miscellaneous::decryptId($hashId); if ($email = Email::find($id)) { } return View::make('backend.emails.send_templates.view-in-browser', ['email_body' => $email->email_body]); }); //Mailgun API Endpoint Route::post('VjwombzKYGxeAKLB', 'AnalyticController@delivered'); Route::post('YlpnbJyeXGPORABk', 'AnalyticController@failed'); Route::post('bQKgqoyPXyORMZeN', 'AnalyticController@opened'); Route::post('EWOvPbGNPznDdJek', 'AnalyticController@clicked'); Route::post('BLNlanrLvyAXgVkp', 'AnalyticController@bounced'); Route::post('XxLMnpzjmyJDNPmZ', 'AnalyticController@complained'); //Unsubscribe Route::get('unsubscribe/{id}', 'FrontendController@unsubscribe'); //Etc Route::get('dashboard/pdf/test', 'SentEmailCustomController@test');