Skip to content

Commit

Permalink
Blade Template
Browse files Browse the repository at this point in the history
  • Loading branch information
raylight75 committed Feb 17, 2016
1 parent 146dbe2 commit 4d72fb1
Show file tree
Hide file tree
Showing 12 changed files with 92 additions and 3 deletions.
11 changes: 11 additions & 0 deletions app/Http/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,17 @@ public function product($slug, $id)
return view('frontend/product_page', $data);
}

/**
* @param $slug
* @param $parent
* @return View
*/
public function frame($id)
{
$data['item'] = Product::with('category', 'size', 'color')->find($id);
return view('frontend/frame', $data);
}

public function userLogin()
{
return view('frontend/login');
Expand Down
2 changes: 2 additions & 0 deletions app/Http/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

Route::get('/contacts', 'BaseController@contacts');

Route::get('/frame/{id}', 'BaseController@frame');

Route::get('/login', 'BaseController@userlogin');

Route::get('/cache', 'BaseController@write');
Expand Down
Binary file added public/images/blank.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/fancybox_loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/fancybox_loading@2x.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/fancybox_overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/fancybox_sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/fancybox_sprite@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/views/frontend/ajax-products.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class="tovar_wrapper col-lg-4 col-md-4 col-sm-6 col-xs-6 col-ss-12 padbot40">
<div class="tovar_img">
<div class="tovar_img_wrapper" style="height: 370px;">
<img class="img" src="{{ url('images/products') }}/{{$row->a_img}}" alt=""/>
<img class="img_h fancybox fancybox.ajax" href="{{ url('home/frame') }}/{{$row->product_id}}">
<img class="img_h fancybox fancybox.ajax" href="{{ url('frame') }}/{{$row->product_id}}">
<img class="img_h" src="{{ url('images/products') }}/{{$row->b_img}}" alt=""/>
</div>
<div class="tovar_item_btns">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/frontend/body.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class="col-lg-3 col-md-3 col-sm-4 col-xs-6 col-ss-12 padbot40">
<div class="tovar_img">
<div class="tovar_img_wrapper">
<img class="img" src="{{ url('images/products') }}/{{$row->a_img}}" alt=""/>
<img class="img_h fancybox fancybox.ajax" href="{{ url('home/frame') }}/{{$row->product_id}}"
<img class="img_h fancybox fancybox.ajax" href="{{ url('frame') }}/{{$row->product_id}}"
src="{{ url('images/products') }}/{{$row->b_img}}" alt=""/>
</div>
<div class="tovar_item_btns">
Expand Down
76 changes: 76 additions & 0 deletions resources/views/frontend/frame.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<link rel="shortcut icon" href="images/favicon.ico">

<!-- CSS -->
<link href="{{ asset('/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ asset('/css/flexslider.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ asset('/css/fancySelect.css') }}" rel="stylesheet" media="screen, projection"/>
<link href="{{ asset('/css/animate.css') }}" rel="stylesheet" type="text/css" media="all"/>
<link href="{{ asset('/css/style.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ asset('/css/jquery.fancybox.css') }}" rel="stylesheet" type="text/css"/>

<!-- FONTS -->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,
700,700italic,900,900italic' rel='stylesheet' type='text/css'>

<link href="{{ asset('/font-awesome/css/font-awesome.css') }}" rel="stylesheet">

<!-- CLEARFIX -->
<div class="clearfix padbot40">
<div class="tovar_view_fotos clearfix">
<ul class="slides">
<li><a><img src="{{ url('images/products') }}/{{$item->a_img}}"
alt="" /></a></li>
</ul>
</div>

<div class="tovar_view_description">
<div class="tovar_view_title"><h1><?= _('QUICK VIEW')?></h1></div>
<div class="tovar_view_title">{{$item->name}}</div>
<div class="tovar_article">88-305-676</div>
<div class="clearfix tovar_brend_price">
<div class="pull-left tovar_brend">{{$item->brand}}</div>
<div class="pull-right tovar_view_price">
{!! Helper::currency($item->price) !!}&nbsp{!! Helper::label() !!}
</div>
</div>
<div class="tovar_color_select">
<p><?= _('Available color')?></p>
@foreach($item->color as $c)
<a class="color{{$c->colour_id}}"></a>
@endforeach
</div>
<div class="tovar_size_select">
<div class="clearfix">
<p class="pull-left"><?= _('Available SIZE')?></p>
<span><?= _('Size & Fit')?></span>
</div>
@foreach($item->size as $s)
<a class="sizeXXXL">{{$s->size_id}}</a>
@endforeach
</div>
<div class="box visible">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur.
</p>
</div>
<div class="tovar_shared clearfix">
<p><?= _('Share item with friends')?></p>
<ul>
<li><a class="facebook" href="javascript:void(0);"><i class="fa fa-facebook"></i></a></li>
<li><a class="twitter" href="javascript:void(0);"><i class="fa fa-twitter"></i></a></li>
<li><a class="linkedin" href="javascript:void(0);"><i class="fa fa-linkedin"></i></a></li>
<li><a class="google-plus" href="javascript:void(0);"><i class="fa fa-google-plus"></i></a></li>
<li><a class="tumblr" href="javascript:void(0);"><i class="fa fa-tumblr"></i></a></li>
</ul>
</div>
</div>
</div>
<!-- //CLEARFIX -->
2 changes: 1 addition & 1 deletion resources/views/frontend/product_container.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class="tovar_wrapper col-lg-4 col-md-4 col-sm-6 col-xs-6 col-ss-12 padbot40">
<div class="tovar_img">
<div class="tovar_img_wrapper">
<img class="img" src="{{ url('images/products') }}/{{$row->a_img}}" alt=""/>
<img class="img_h fancybox fancybox.ajax" href="{{ url('home/frame') }}/{{$row->product_id}}">
<img class="img_h fancybox fancybox.ajax" href="{{ url('frame') }}/{{$row->product_id}}">
<img class="img_h" src="{{ url('images/products') }}/{{$row->b_img}}" alt=""/>
</div>
<div class="tovar_item_btns">
Expand Down

0 comments on commit 4d72fb1

Please sign in to comment.