Advertisement
Guest User

Untitled

a guest
Jan 11th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.80 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Routes File
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you will register all of the routes in an application.
  9. | It's a breeze. Simply tell Laravel the URIs it should respond to
  10. | and give it the controller to call when that URI is requested.
  11. |
  12. */
  13.  
  14. Route::get('/', function () {
  15. return view('welcome');
  16. });
  17.  
  18. /*
  19. |--------------------------------------------------------------------------
  20. | Application Routes
  21. |--------------------------------------------------------------------------
  22. |
  23. | This route group applies the "web" middleware group to every route
  24. | it contains. The "web" middleware group is defined in your HTTP
  25. | kernel and includes session state, CSRF protection, and more.
  26. |
  27. */
  28.  
  29. Route::group(['middleware' => ['web']], function () {
  30. //
  31. });
  32.  
  33. Route::group(['middleware' => 'web'], function () {
  34. Route::auth();
  35.  
  36. Route::get('/', function () {
  37. return view('welcome');
  38. });
  39.  
  40. Route::get('/home', 'HomeController@index');
  41. });
  42.  
  43. Route::group(['middleware' => ['web', 'auth']], function () {
  44. Route::get('user/{username}/dashboard', 'UserController@dashboard');
  45.  
  46. });
  47.  
  48. /*
  49. |--------------------------------------------------------------------------
  50. | Profile Controller Routes
  51. |--------------------------------------------------------------------------
  52. |
  53. | You can add multiple routes with controllers which can help auth your
  54. | users
  55. */
  56.  
  57. <?php
  58.  
  59. namespace SCMHttpControllers;
  60.  
  61. use View;
  62. use DB;
  63. use Settings;
  64. use uploadSettings;
  65. use Input;
  66. use Carbon;
  67. use User;
  68. use Files;
  69. use File;
  70. use LockFile;
  71. use Mail;
  72. use EmailTemplates;
  73. use EmailSettings;
  74. use Hash;
  75. use Redirect;
  76. use Response;
  77. use Request;
  78. use Auth;
  79. use Validator;
  80. use Session;
  81.  
  82. class UserController extends Controller {
  83.  
  84. protected $urlUsername;
  85. protected $userInfo;
  86. protected $userFiles;
  87. protected $isAdmin;
  88. protected $totalFilesSize;
  89. protected $adminPreviewMode;
  90. protected $userFilesPaginate;
  91. protected $topAds;
  92. protected $bottomAds;
  93.  
  94. function __construct() {
  95.  
  96. ## Get UserName From Url
  97. $this->urlUsername = Request::path();
  98. $this->urlUsername = explode("/",$this->urlUsername);
  99. $this->urlUsername = $this->urlUsername[true];
  100.  
  101. ## Get User Personal Info
  102. $this->userInfo = User::where('username', '=', $this->urlUsername)->first();
  103. if(!$this->userInfo ){
  104. die('User Does Not Exist');
  105. }
  106. ## Get User Files Info
  107. $this->userFiles = Files::where('userID', '=', $this->userInfo['id'])
  108. ->get();
  109. ## If Admin Preview Mode = true, this Variable will return true
  110. $this->adminPreviewMode = ( defined('ADMIN_PREVIEW_MODE') ? true : false );
  111. ## Get User Type ( Admin - Normal )
  112. $this->isAdmin = ($this->userInfo->level === 'admin') ? true : false;
  113.  
  114. ## Get Total Files Size
  115. $this->totalFilesSize = 0;
  116.  
  117. foreach($this->userFiles as $file){
  118.  
  119. $this->totalFilesSize += $file['fileSize'];
  120. }
  121.  
  122. ## ads Data
  123.  
  124. $this->topAds = DB::table('advertising')
  125. ->where('adsPage','=','profile')
  126. ->where('adsPosition','=','top')
  127. ->pluck('adsContent');
  128.  
  129. $this->bottomAds = DB::table('advertising')
  130. ->where('adsPage','=','profile')
  131. ->where('adsPosition','=','bottom')
  132. ->pluck('adsContent');
  133.  
  134.  
  135. ## Function To Handle Files Size
  136.  
  137. function size ( $type, $sub = null ){
  138. if($sub === null){
  139.  
  140. $si_prefix = array( 'B', 'KB', 'MB', 'GB', 'TB', 'EB', 'ZB', 'YB' );
  141. $base = 1024;
  142. $class = min((int)log($type , $base) , count($si_prefix) - 1);
  143.  
  144. return @$disk_free_space = sprintf('%1.2f' ,
  145. $type / pow($base,$class)) . ' ' . $si_prefix[$class] ;
  146.  
  147. }
  148. }
  149.  
  150. function convertFromBytes($from,$return){
  151.  
  152. $number=$from;
  153. switch($return){
  154.  
  155. case "MB":
  156. return round($number/pow(1024,2),2);
  157. case "GB":
  158. return $number/pow(1024,3);
  159. case "TB":
  160. return $number/pow(1024,4);
  161. case "PB":
  162. return $number/pow(1024,5);
  163. default:
  164. return $from;
  165. }
  166. }
  167.  
  168. }
  169.  
  170.  
  171. /**
  172. * Display a listing of the resource.
  173. *
  174. * @return Response
  175. */
  176. public function dashboard() {
  177. // Check User Avilable Space
  178. $userFilesSize = $this->totalFilesSize;
  179. $userDiskSpace = uploadSettings::find(1)->userDiskSpace;
  180.  
  181. $userAvailableDiskSpace = $userDiskSpace - $userFilesSize;
  182.  
  183. if($userAvailableDiskSpace < uploadSettings::find(1)->maxFileSize){
  184. $MaxUploadSize = $userAvailableDiskSpace;
  185. }else{
  186. $MaxUploadSize = uploadSettings::find(1)->maxFileSize;
  187. }
  188. //
  189.  
  190.  
  191. $data = array(
  192. 'title' => 'Dashboard',
  193. 'nav' => 'dashboard',
  194. 'settings' => Settings::find(1),
  195. 'adminPreviewMode' => $this->adminPreviewMode,
  196. 'userName' => $this->userInfo['username'],
  197. 'isAdmin' => $this->isAdmin,
  198. 'topAds' => $this->topAds,
  199. 'bottomAds' => $this->bottomAds,
  200. 'totalFiles' => count($this->userFiles),
  201. 'totalFreeDiskSpace' => size($userAvailableDiskSpace),
  202. 'totalFilesSize' => size($this->totalFilesSize),
  203. 'totalDownloadedFiles' => DB::table('files')
  204. ->where('userID', '=', $this->userInfo['id'])->sum('fileDownloadCounter')
  205. );
  206.  
  207.  
  208. return View::make('user.dashboard')->with('data',$data);
  209. }
  210.  
  211.  
  212. public function upload() {
  213.  
  214. // Check User Avilable Space
  215. $userFilesSize = $this->totalFilesSize;
  216. $userDiskSpace = uploadSettings::find(1)->userDiskSpace;
  217.  
  218. $userAvailableDiskSpace = $userDiskSpace - $userFilesSize;
  219.  
  220. if($userAvailableDiskSpace < uploadSettings::find(1)->maxFileSize){
  221. $MaxUploadSize = $userAvailableDiskSpace;
  222. }else{
  223. $MaxUploadSize = uploadSettings::find(1)->maxFileSize;
  224. }
  225. //
  226.  
  227.  
  228. $data = array(
  229. 'title' => 'Upload',
  230. 'nav' => 'upload',
  231. 'settings' => Settings::find(1),
  232. 'adminPreviewMode' => $this->adminPreviewMode,
  233. 'userName' => $this->userInfo['username'],
  234. 'isAdmin' => $this->isAdmin,
  235. 'topAds' => $this->topAds,
  236. 'bottomAds' => $this->bottomAds,
  237. // User Files Loop Data
  238. 'userFiles' =>$this->userFiles,
  239. 'MaxUploadSize' => convertFromBytes($MaxUploadSize,'MB')
  240.  
  241. );
  242.  
  243. return View::make('user.upload')->with('data',$data);
  244. }
  245.  
  246.  
  247. // This Function To Return Needed data To Files Table
  248. public function files() {
  249. ini_set('zlib.output_compression', 'Off');
  250.  
  251. //
  252. $this->userFilesPaginate = Files::where('userID', '=', $this->userInfo['id'])
  253. ->orderBy('id','desc')
  254. ->paginate(20);
  255.  
  256. $data = array(
  257. 'title' => 'My files',
  258. 'nav' => 'files',
  259. 'settings' => Settings::find(1),
  260. 'adminPreviewMode' => $this->adminPreviewMode,
  261. 'userName' => $this->userInfo['username'],
  262. 'isAdmin' => $this->isAdmin,
  263. 'topAds' => $this->topAds,
  264. 'bottomAds' => $this->bottomAds,
  265. // User Files Loop Data
  266. 'totalFiles' => count($this->userFiles),
  267. 'userFiles' => $this->userFilesPaginate
  268.  
  269. );
  270.  
  271. return View::make('user.files')->with('data',$data);
  272. }
  273.  
  274.  
  275. // This Function Used To Delete a File
  276. public function deleteFile() {
  277.  
  278. $file = Files::find(Input::get('id'));
  279. // check If User Owen This File
  280. if($this->userInfo['id'] === $file->userID || $this->adminPreviewMode ){
  281.  
  282. $fileName = $file->filePath;
  283. $fileName = explode("/",$fileName);
  284. $fileName = end($fileName);
  285. $fileExt = $file->fileExt;
  286.  
  287. $filePath = public_path('../up-files/').$fileName.'.'.$fileExt;
  288.  
  289. $delete = File::delete($filePath);
  290.  
  291. if($delete){
  292. // Delete File From files table
  293. Files::find(Input::get('id'))->delete();
  294.  
  295. // Delete File From lockedfiles table If Exists
  296. $isLock = LockFile::where('fileId','=',Input::get('id'))->delete();
  297.  
  298. return Response::json('deleted success');
  299. }else{
  300. return Response::json('Delete Is Faild');
  301. }
  302.  
  303. }else{
  304. return Response::json('You Cant Delete This File !');
  305.  
  306. }
  307. }
  308.  
  309. // This Function Used To Lock ( Set Password ) a File.
  310. public function lockFile() {
  311.  
  312. $file = Files::find(Input::get('eid'));
  313.  
  314. if($this->userInfo['id'] === $file->userID || $this->adminPreviewMode ){
  315.  
  316. if($file) {
  317.  
  318. $lockExists = LockFile::where('fileId','=',$file->id)->first();
  319.  
  320. if( $lockExists && trim(Input::get('password')) === '' ){
  321.  
  322. $lockExists->delete();
  323. return Response::json('unLock success');
  324.  
  325. }elseif( $lockExists && trim(Input::get('password')) !== '' ){
  326.  
  327. $lockExists->filePassword = Hash::make(Input::get('password'));
  328. $lockExists->save();
  329. return Response::json('Change Password success');
  330.  
  331. }else if(!$lockExists && trim(Input::get('password')) !== ''){
  332. $lockedFiles = new LockFile;
  333.  
  334. $lockedFiles->fileId = Input::get('eid');
  335. $lockedFiles->userID = $this->userInfo['id'];
  336. $lockedFiles->filePassword = Hash::make(Input::get('password'));
  337.  
  338. if($lockedFiles->save()){
  339. // If Lock Success
  340. return Response::json('Lock success');
  341.  
  342. }else{
  343. // If Lock Is Fail
  344. return Response::json('Lock Is Fails');
  345. }
  346. }
  347. }
  348.  
  349. }else{
  350. // If File Not Exsits
  351. return Response::json('You Cant Lock This File !');
  352.  
  353. }
  354. }
  355.  
  356.  
  357. // This Function Used To Show Pages index.
  358. public function pages() {
  359.  
  360. // Check User Avilable Space
  361. $userFilesSize = $this->totalFilesSize;
  362. $userDiskSpace = uploadSettings::find(1)->userDiskSpace;
  363.  
  364. $userAvailableDiskSpace = $userDiskSpace - $userFilesSize;
  365.  
  366. if($userAvailableDiskSpace < uploadSettings::find(1)->maxFileSize){
  367. $MaxUploadSize = $userAvailableDiskSpace;
  368. }else{
  369. $MaxUploadSize = uploadSettings::find(1)->maxFileSize;
  370. }
  371. //
  372.  
  373.  
  374. $data = array(
  375. 'title' => 'Pages',
  376. 'nav' => 'pages',
  377. 'settings' => Settings::find(1),
  378. 'adminPreviewMode' => $this->adminPreviewMode,
  379. 'userName' => $this->userInfo['username'],
  380. 'isAdmin' => $this->isAdmin,
  381. 'topAds' => $this->topAds,
  382. 'bottomAds' => $this->bottomAds,
  383. 'pages' => DB::table('pages')
  384. ->orderBy('pageOrder','ASC')
  385. ->paginate(20)
  386. );
  387.  
  388.  
  389. return View::make('user.pages')->with('data',$data);
  390.  
  391. }
  392.  
  393.  
  394.  
  395. // This Function Used To Change User Settings.
  396. public function settings() {
  397.  
  398. $data = array(
  399. 'title' => 'Setting',
  400. 'nav' => 'Settings',
  401. 'settings' => Settings::find(1),
  402. 'adminPreviewMode' => $this->adminPreviewMode,
  403. 'userName' => $this->userInfo['username'],
  404. 'userInfo' => $this->userInfo,
  405. 'isAdmin' => $this->isAdmin,
  406. 'topAds' => $this->topAds,
  407. 'bottomAds' => $this->bottomAds,
  408. );
  409.  
  410.  
  411. return View::make('user.settings')->with('data',$data);
  412. }
  413.  
  414. public function changeSettings(){
  415.  
  416. // Get Form Inputs
  417. $inputs = Input::all();
  418.  
  419. $rules = array ();
  420.  
  421. if($inputs['email'] !== $this->userInfo['email']){
  422.  
  423. $rules['email'] = 'required|email|unique:users,email';
  424.  
  425. }
  426.  
  427. if($inputs['username'] !== $this->userInfo['username']){
  428.  
  429. $rules['username'] = 'min:5|regex:/^[A-Za-z0-9_.-]+$/|max:15|unique:users,username';
  430.  
  431. }
  432.  
  433. if($inputs['password'] !== $this->userInfo['password']){
  434.  
  435. $rules['password'] = 'min:6|confirmed';
  436. $rules['password_confirmation'] = '';
  437.  
  438. }
  439.  
  440. $validator = Validator::make($inputs,$rules);
  441.  
  442. if( $validator->fails() ){
  443.  
  444. return Redirect::back()
  445. ->withInput($inputs)
  446. ->withErrors($validator);
  447. }else {
  448.  
  449. $user = User::find($this->userInfo['id']);
  450.  
  451. $user->username = strtolower($inputs['username']);
  452. $user->email = $inputs['email'];
  453.  
  454. if($inputs['password'] !== ''){
  455. $user->password = Hash::make( $inputs['password'] );
  456. }
  457.  
  458. if( $user->save() ){
  459. Session::flash('Message','
  460. <div id="message-alert" class="alert alert-success alert-dismissible" role="alert">
  461. <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  462. <span aria-hidden="true">&times;</span></button>
  463. <strong>Well!</strong>
  464. Your Action has been Successfully Updated.
  465. </div>
  466. ');
  467.  
  468. return Redirect::intended('user/'.strtolower($inputs['username']).'/settings');
  469.  
  470. }else{
  471.  
  472. return Redirect::to('user/'.strtolower($inputs['username']).'/settings')
  473. ->withInput()
  474. ->WithErrors(' Please check your entry and try again..');
  475. }
  476. }
  477.  
  478. }
  479.  
  480.  
  481. }
  482.  
  483. {{ ($data['adminPreviewMode']) ?
  484. '<div class="alert alert-danger alert-dismissible" style="margin:0px;" role="alert">
  485. <button type="button" class="close" data-dismiss="alert"
  486. aria-label="Close"><span aria-hidden="true">&times;</span>
  487. </button>
  488. <strong><i class="fa fa-info-circle "></i>
  489.  
  490. Take Notice!</strong> Dir Admin, This Is (Admingit Preview Mode), Not Your Personal Account ,
  491. <a style="color:#2C3E50;"
  492. href="'.url('user/'.Auth::user()->username).'">
  493. <b>Back To Your Account</b>
  494. </a>
  495. </div>'
  496. : '' }}
  497.  
  498. @if(Session::has('message'))
  499.  
  500. <div class="alert alert-success alert-dismissible" style="margin:0px;" role="alert">
  501. <button type="button" class="close" data-dismiss="alert"
  502. aria-label="Close"><span aria-hidden="true">&times;</span>
  503. </button>
  504. <strong><i class="fa fa-ok-circle "></i>
  505.  
  506. Welcome</strong> {{ $data['userName'] }}, Thanks For Signup, best regards, {{ Settings::find(1)->sitename }} Team.
  507. </div>
  508.  
  509. @endif
  510.  
  511. <nav style="border-radius:0;" class="navbar navbar-default navbar-xs" role="navigation">
  512. <!-- Brand and toggle get grouped for better mobile display -->
  513. <div class="navbar-header">
  514. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  515. <span class="sr-only">Toggle navigation</span>
  516. <span class="icon-bar"></span>
  517. <span class="icon-bar"></span>
  518. <span class="icon-bar"></span>
  519. </button>
  520. <a class="navbar-brand" href="{{ url('/') }}">
  521. {!! Html::image('assets/img/logo/logo.png') !!}
  522. </a>
  523. </div>
  524.  
  525. <!-- Collect the nav links, forms, and other content for toggling -->
  526. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  527. <ul class="nav navbar-right top-nav">
  528. <li class="dropdown">
  529. <a href="" class="dropdown-toggle" data-toggle="dropdown">
  530. <i class="fa fa-user"></i>
  531. | {{ $data['userName'] }} <b class="caret"></b>
  532. </a>
  533. <ul class="dropdown-menu">
  534. {{ ($data['isAdmin']) ?
  535. '<li>
  536. <a href="'.URL().'/admin">
  537. <i class="fa fa-fw fa-tasks"></i> Admin Panel
  538. </a>
  539. </li>'
  540. : '' }}
  541.  
  542. <li>
  543. <a href="{{ url('/user/'.$data['userName'].'/settings') }}">
  544. <i class="fa fa-fw fa-gear"></i> Settings
  545. </a>
  546.  
  547. </li>
  548. <li>
  549. <a href="{{ URL('') }}/logout"><i class="fa fa-fw fa-sign-out"></i> Logout</a>
  550. </li>
  551. </ul>
  552. </li>
  553. </ul>
  554.  
  555. </div><!-- /.navbar-collapse -->
  556. </nav>
  557.  
  558. @show
  559. <!DOCTYPE html>
  560. <html lang="en">
  561. <head>
  562. <meta charset="utf-8">
  563. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  564. <meta name="viewport" content="width=device-width, initial-scale=1">
  565. <meta name="description" content="">
  566. <meta name="author" content="">
  567. {!! Html::image('assets/img/logo/logo.png') !!}
  568. <title>{{ $data['title'].' | '.$data['settings']->sitename }}</title>
  569. <!-- Bootstrap Core CSS -->
  570. {!! Html::style('themes/z-Responsive/assets/css/bootstrap_2.min.css') !!}
  571.  
  572. <!-- Font Awesome Fonts -->
  573. {!! Html::style('themes/z-Responsive/assets/font-awesome/css/font-awesome.min.css') !!}
  574. <!-- Custom CSS -->
  575. {!! Html::style('themes/z-Responsive/assets/css/sb-admin.css') !!}
  576. {!! Html::style('themes/z-Responsive/assets/css/social.css') !!}
  577.  
  578. @yield('style')
  579. {!! Html::style('/themes/z-Responsive/assets/css/tabs.css') !!}
  580. {!! Html::style('themes/z-Responsive/assets/css/navbar.css') !!}
  581.  
  582. <link href='https://fonts.googleapis.com/css?family=Ubuntu:400,300,500,700' rel='stylesheet'
  583. type='text/css'>
  584.  
  585. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  586. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  587. <!--[if lt IE 9]>
  588. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  589. <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  590. <![endif]-->
  591. </head>
  592.  
  593. @include('layouts.--header')
  594.  
  595. <div class="container">
  596. <!-- PAGE WRAPPER -->
  597. <div id="wrapper">
  598. @if( $data['topAds'] )
  599. <!-- Top Advertising Area -->
  600. <div class="col-md-12 ">
  601. <div class="ads-top">
  602. $data explode(" ",'topAds')
  603. </div>
  604. </div>
  605. <!-- /# TopAdvertising Area -->
  606. @endif
  607.  
  608. <!-- Sidebar -->
  609. <section >
  610. <div class="container">
  611. <div class="row">
  612. <!-- <h2>Welcome to IGHALO!<sup>™</sup></h2>-->
  613. <div class="board-inner">
  614. <ul class="nav nav-tabs" id="myTab">
  615. <li {{ ($data['nav'] === 'dashboard') ? 'class="active"' : '' }}>
  616. <a href="{{ url('') }}" title="Dashboard">
  617. <span class="round-tabs one">
  618. <i class="fa fa-tachometer fa-stack-1x "></i>
  619.  
  620. </span>
  621.  
  622. </a>
  623. </li>
  624.  
  625. <li {{ ($data['nav'] === 'upload') ? 'class="active"' : '' }}>
  626. <a href="{{ url('/user/'.$data['userName']).'/upload' }}" title="Upload">
  627. <span class="round-tabs two">
  628. <i class="fa fa-cloud-upload fa-stack-1x "></i>
  629. </span>
  630. </a>
  631. </li>
  632. <li {{ ($data['nav'] === 'files') ? 'class="active"' : '' }}>
  633. <a href="{{ url('/user/'.$data['userName']).'/files' }}" title="My Files">
  634. <span class="round-tabs three">
  635. <i class="fa fa-dropbox fa-stack-1x "></i>
  636. </span> </a>
  637. </li>
  638.  
  639. <li {{ ($data['nav'] === 'send') ? 'class="active"' : '' }}>
  640. <a href="{{ url('/user/'.$data['userName']).'/send' }}" title="Send Files">
  641. <span class="round-tabs four">
  642. <i class="fa fa-paper-plane fa-stack-1x "></i>
  643. </span>
  644. </a>
  645. </li>
  646. @if(DB::table('pages')->count() )
  647.  
  648. <li {{ ($data['nav'] === 'pages') ? 'class="active"' : '' }}>
  649. <a href="{{ url('/user/'.$data['userName']).'/pages' }}" title="Pages">
  650. <span class="round-tabs five">
  651. <i class="fa fa-files-o fa-stack-1x "></i>
  652. </span> </a>
  653. </li>
  654. @endif
  655. </ul>
  656. </div>
  657.  
  658. <div class="tab-content">
  659. <!-- Tab Content -->
  660.  
  661. @if($data['nav'] === 'dashboard' )
  662. @yield('dashboard')
  663. @endif
  664. @if($data['nav'] === 'upload' )
  665. @yield('upload')
  666. @endif
  667. @if($data['nav'] === 'files' )
  668. @yield('files')
  669. @endif
  670. @if($data['nav'] === 'send' )
  671. @yield('send')
  672. @endif
  673. @if($data['nav'] === 'pages' )
  674. @yield('pages')
  675. @endif
  676. @if($data['nav'] === 'settings' )
  677. @yield('settings')
  678. @endif
  679. <!-- /#Tab Content -->
  680.  
  681. <div class="clearfix"></div>
  682. </div>
  683.  
  684. </div>
  685. </div>
  686. </section>
  687.  
  688. @if( Social::find(1) )
  689. <div id='social-sidebar'><!-- SOCIAL Media SIDEBAR -->
  690. <ul>
  691. @if( Social::find(1)->twitterLink !== '' )
  692. <li>
  693. <a class='entypo-twitter' href='{{ Social::find(1)->twitterLink }}' target='_blank'>
  694. <i class="fa fa-twitter "></i>
  695. <span>Twitter</span>
  696. </a>
  697. </li>
  698. @endif
  699. @if(Social::find(1)->facebookLink !== '')
  700. <li>
  701. <a class='entypo-facebook' href='{{ Social::find(1)->facebookLink }}' target='_blank'>
  702. <i class="fa fa-facebook "></i>
  703. <span>facebook</span>
  704. </a>
  705. </li>
  706. @endif
  707. @if(Social::find(1)->googlePlusLink !== '')
  708. <li>
  709. <a class='entypo-gplus' href='{{ Social::find(1)->googlePlusLink }}' target='_blank'>
  710. <i class="fa fa-google-plus "></i>
  711. <span>google+</span>
  712. </a>
  713. </li>
  714. @endif
  715. </ul>
  716. </div> <!-- /#SOCIAL Media SIDEBAR -->
  717. @endif
  718.  
  719.  
  720.  
  721.  
  722.  
  723. <!-- jQuery -->
  724. {!! Html::script('themes/z-Responsive/assets/js/jquery-1.11.3.min.js') !!}
  725. <!-- Bootstrap Core JavaScript -->
  726. {!! Html::script('themes/z-Responsive/assets/js/bootstrap.min.js') !!}
  727. @yield('javascript')
  728. @include('layouts.--footer')
  729.  
  730. <script language="javascript">
  731.  
  732. </script>
  733.  
  734. @if( $data['bottomAds'] )
  735. <!-- bottom Advertising Area -->
  736. <div class="col-md-12">
  737. <div class="ads-bottom">
  738. $data explode(" ",'bottomAds')
  739. </div>
  740. </div>
  741. <!-- /# bottom Advertising Area -->
  742. @endif
  743.  
  744.  
  745. <!-- /# End page-content-wrapper -->
  746. </div>
  747. <!-- /#wrapper -->
  748.  
  749. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement