<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/','commoncontroller@index');

Route::get('/gallery','commoncontroller@galler');


Route::get('/contact','commoncontroller@contact');

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');


Route::get('/changePassword','HomeController@showChangePasswordForm');
Route::post('/changePassword','HomeController@changePassword')->name('changePassword');



Route::resource('/event','eventcontroller');
Route::get('/event/{id}/edit', 'eventcontroller@edit');
Route::post('/event/{id}/update', 'eventcontroller@update');

Route::resource('/gallery-list','gallerycontroller');

Route::post('/search','commoncontroller@search');
Route::resource('/say','saycontroller');

Route::resource('/team','teamcontroller');
Route::get('/team/{id}/edit', 'teamcontroller@edit');
Route::post('/team/{id}/update', 'teamcontroller@update');



Route::get('/arif', function () {
    return view('fazil');
});

Route::get('/noushad', function () {
    return view('noushad');
});




// Mail

Route::get('sendbasicemail','MailController@basic_email');
Route::get('sendhtmlemail','MailController@html_email');
Route::get('sendattachmentemail','MailController@attachment_email');



Route::post('/sendemail/send', 'SendEmailController@send');


Route::post('mail/send', 'MailController@send');
Route::get('/text', 'MailController@second');
Route::get('/clear', function() {

   Artisan::call('cache:clear');
   Artisan::call('config:clear');
   Artisan::call('config:cache');
   Artisan::call('view:clear');

   return "Cleared!";

});
