Commit edf79ee0 authored by Lucas Nunes's avatar Lucas Nunes

fix

parent a481b593
......@@ -2,7 +2,14 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="853286ae-8652-453d-8e83-ab776ad9c7ae" name="Default" comment="fix">
<change afterPath="$PROJECT_DIR$/app/Http/Controllers/PreRegisterController.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resources/views/frontend/auth/pre-register.blade.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Http/Controllers/Frontend/ContactController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Http/Controllers/Frontend/ContactController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/helpers.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/helpers.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resources/lang/pt-Br/labels.php" beforeDir="false" afterPath="$PROJECT_DIR$/resources/lang/pt-Br/labels.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resources/views/frontend/layouts/modals/loginModal.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/resources/views/frontend/layouts/modals/loginModal.blade.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/routes/web.php" beforeDir="false" afterPath="$PROJECT_DIR$/routes/web.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -268,7 +275,7 @@
<workItem from="1567743881913" duration="190000" />
<workItem from="1567832429427" duration="62000" />
<workItem from="1579682757164" duration="8495000" />
<workItem from="1579740326050" duration="40050000" />
<workItem from="1579740326050" duration="49668000" />
</task>
<task id="LOCAL-00001" summary="fix">
<created>1579690799404</created>
......@@ -375,7 +382,14 @@
<option name="project" value="LOCAL" />
<updated>1580098124534</updated>
</task>
<option name="localTasksCounter" value="16" />
<task id="LOCAL-00016" summary="fix">
<created>1580099202665</created>
<option name="number" value="00016" />
<option name="presentableId" value="LOCAL-00016" />
<option name="project" value="LOCAL" />
<updated>1580099202665</updated>
</task>
<option name="localTasksCounter" value="17" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
......@@ -386,22 +400,30 @@
<option name="LAST_COMMIT_MESSAGE" value="fix" />
</component>
<component name="WindowStateProjectService">
<state x="1975" y="104" key="CommitChangelistDialog2" timestamp="1580098123565">
<state x="2063" y="265" key="#com.jetbrains.php.actions.copyPaste.importReferences.PhpImportReferencesDialog" timestamp="1580121803082">
<screen x="1366" y="0" width="1920" height="1080" />
</state>
<state x="2063" y="265" key="#com.jetbrains.php.actions.copyPaste.importReferences.PhpImportReferencesDialog/1366.0.1920.1080/0.0.1366.768@1366.0.1920.1080" timestamp="1580121803082" />
<state x="1975" y="104" key="CommitChangelistDialog2" timestamp="1580099201902">
<screen x="1366" y="0" width="1920" height="1080" />
</state>
<state x="1975" y="104" key="CommitChangelistDialog2/1366.0.1920.1080/0.0.1366.768@1366.0.1920.1080" timestamp="1580099201902" />
<state x="2046" y="323" key="NewPhpClassDialog" timestamp="1580104601096">
<screen x="1366" y="0" width="1920" height="1080" />
</state>
<state x="1975" y="104" key="CommitChangelistDialog2/1366.0.1920.1080/0.0.1366.768@1366.0.1920.1080" timestamp="1580098123565" />
<state x="2150" y="433" key="NewPhpFileDialog" timestamp="1580087547127">
<state x="2046" y="323" key="NewPhpClassDialog/1366.0.1920.1080/0.0.1366.768@1366.0.1920.1080" timestamp="1580104601096" />
<state x="2150" y="433" key="NewPhpFileDialog" timestamp="1580104408205">
<screen x="1366" y="0" width="1920" height="1080" />
</state>
<state x="2150" y="433" key="NewPhpFileDialog/1366.0.1920.1080/0.0.1366.768@1366.0.1920.1080" timestamp="1580087547127" />
<state x="2150" y="433" key="NewPhpFileDialog/1366.0.1920.1080/0.0.1366.768@1366.0.1920.1080" timestamp="1580104408205" />
<state x="2148" y="220" key="RollbackChangesDialog" timestamp="1580073294419">
<screen x="1366" y="0" width="1920" height="1080" />
</state>
<state x="2148" y="220" key="RollbackChangesDialog/1366.0.1920.1080/0.0.1366.768@1366.0.1920.1080" timestamp="1580073294419" />
<state x="1925" y="243" key="Vcs.Push.Dialog.v2" timestamp="1580098129995">
<state x="1925" y="243" key="Vcs.Push.Dialog.v2" timestamp="1580099205237">
<screen x="1366" y="0" width="1920" height="1080" />
</state>
<state x="1925" y="243" key="Vcs.Push.Dialog.v2/1366.0.1920.1080/0.0.1366.768@1366.0.1920.1080" timestamp="1580098129995" />
<state x="1925" y="243" key="Vcs.Push.Dialog.v2/1366.0.1920.1080/0.0.1366.768@1366.0.1920.1080" timestamp="1580099205237" />
<state x="2102" y="244" key="VcsDiffUtil.ChangesDialog" timestamp="1579686223702">
<screen x="1366" y="0" width="1920" height="1080" />
</state>
......@@ -410,10 +432,10 @@
<screen x="1366" y="0" width="1920" height="1080" />
</state>
<state x="2019" y="340" key="com.intellij.ide.util.TipDialog/1366.0.1920.1080/0.0.1366.768@1366.0.1920.1080" timestamp="1579740357559" />
<state x="2025" y="115" width="628" height="795" key="find.popup" timestamp="1580096605651">
<state x="2025" y="115" width="628" height="795" key="find.popup" timestamp="1580102478925">
<screen x="1366" y="0" width="1920" height="1080" />
</state>
<state x="2025" y="115" width="628" height="795" key="find.popup/1366.0.1920.1080/0.0.1366.768@1366.0.1920.1080" timestamp="1580096605651" />
<state x="2025" y="115" width="628" height="795" key="find.popup/1366.0.1920.1080/0.0.1366.768@1366.0.1920.1080" timestamp="1580102478925" />
<state x="1989" y="225" width="672" height="678" key="search.everywhere.popup" timestamp="1580090095601">
<screen x="1366" y="0" width="1920" height="1080" />
</state>
......
......@@ -61,9 +61,9 @@ class ContactController extends Controller
$contact->message = $request->message;
$contact->save();
Mail::send(new SendContact($request));
// Mail::send(new SendContact($request));
Session::flash('alert','Contact mail sent successfully!');
Session::flash('alert','Formulário de contato enviado com sucesso!');
return redirect()->back();
}
}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class PreRegisterController extends Controller
{
public function form(){
$states = get_br_states();
return view('frontend.auth.pre-register', compact('states'));
}
public function store(Request $request){
// dd($request->all());
return redirect()->back()->with('alert', 'No Momento esta função está desabilitada.');
}
}
\ No newline at end of file
......@@ -86,6 +86,49 @@ if (!function_exists('home_route')) {
}
}
if (!function_exists('get_br_states')) {
/**
* Return the route to the "home" page depending on authentication/authorization status.
*
* @return string
*/
function get_br_states()
{
return array(
'AC'=>'Acre',
'AL'=>'Alagoas',
'AP'=>'Amapá',
'AM'=>'Amazonas',
'BA'=>'Bahia',
'CE'=>'Ceará',
'DF'=>'Distrito Federal',
'ES'=>'Espírito Santo',
'GO'=>'Goiás',
'MA'=>'Maranhão',
'MT'=>'Mato Grosso',
'MS'=>'Mato Grosso do Sul',
'MG'=>'Minas Gerais',
'PA'=>'Pará',
'PB'=>'Paraíba',
'PR'=>'Paraná',
'PE'=>'Pernambuco',
'PI'=>'Piauí',
'RJ'=>'Rio de Janeiro',
'RN'=>'Rio Grande do Norte',
'RS'=>'Rio Grande do Sul',
'RO'=>'Rondônia',
'RR'=>'Roraima',
'SC'=>'Santa Catarina',
'SP'=>'São Paulo',
'SE'=>'Sergipe',
'TO'=>'Tocantins'
);
}
}
if (!function_exists('style')) {
/**
......
......@@ -1151,6 +1151,28 @@ return array (
'send_email' => 'Enviar Email',
'send_message_now' => 'Enviar mensagem agora',
),
'pre-register' =>
array (
'title' => 'Pré-Matricula',
'slug' => 'Preencha o formulário abaixo',
'first_name' => 'Nome',
'last_name' => 'Sobrenome',
'email' => 'E-mail',
'dob' => 'Data de nascimento',
'phone_number' => 'Telefone',
'address' => 'Endereço',
'city' => 'Cidade',
'pincode' => 'CEP',
'state' => 'Estado',
'select_state' => '-',
'rg' => 'RG',
'rg_front_image' => 'RG Frente',
'rg_verse_image' => 'RG Verso',
'cpf' => 'CPF',
'cpf_front_image' => 'CPF Frente',
'cpf_verse_image' => 'CPF Verso',
'button' => 'Enviar Informação',
),
'badges' =>
array (
'trending' => 'Trending',
......
This diff is collapsed.
......@@ -213,8 +213,8 @@
</div>
<div class="tab-pane container fade" id="register">
{{-- route('frontend.auth.login.post')--}}
<form action="{{ home_route() }}">
<form action="{{ route('frontend.pre.register') }}">
<div class="nws-button text-center white text-capitalize">
<button id="registerButton" type="submit"
value="Submit">FAZER PRÉ-MATRICULA</button>
......
......@@ -151,6 +151,8 @@ Route::group(['namespace' => 'Backend', 'prefix' => 'admin', 'middleware' => con
Route::get('certificate-verification','Backend\CertificateController@getVerificationForm')->name('frontend.certificates.getVerificationForm');
Route::post('certificate-verification','Backend\CertificateController@verifyCertificate')->name('frontend.certificates.verify');
Route::get('certificates/download', ['uses' => 'Backend\CertificateController@download', 'as' => 'certificates.download']);
Route::get('pre-register','PreRegisterController@form')->middleware('guest')->name('frontend.pre.register');
Route::post('pre-register','PreRegisterController@store')->middleware('guest')->name('frontend.pre.register.store');
if(config('show_offers') == 1){
......@@ -161,3 +163,5 @@ Route::group(['namespace' => 'Frontend', 'as' => 'frontend.'], function () {
Route::get('/{page?}', [HomeController::class, 'index'])->name('index');
});
//============PreRegister Routes=================//
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment