description = "Project Inside Page" [builderDetails project] modelClass = "Linus\Project\Models\Project" identifierValue = "{{ :slug }}" modelKeyColumn = "slug" displayColumn = "slug" notFoundMessage = "Record not found" == addCss(CombineAssets::combine($css, base_path('themes/linus'))); $this->addJs(CombineAssets::combine($scripts, base_path('themes/linus'))); //Next Prev $details = Art::where('slug','=', $this->param('slug'))->first(); if(!empty($details['id'])){ $next = Art::where('id','<>', $details['id'])->where('order_id', '>', $details['id'])->orderBy('order_id', 'ASC')->first(); $prev = Art::where('id','<>', $details['id'])->where('order_id', '<', $details['id'])->orderBy('order_id', 'ASC')->first(); if(!empty($next['slug'])){ $this['next_page_url'] = $next['slug']; } if(!empty($prev['slug'])){ $this['prev_page_url'] = $prev['slug']; } } } ?> == {% partial 'site/head' %} {% partial 'site/header' %}
{% set project = project.record %}

{{project.name}}

{{project.description}}


Services

{{project.service.name}}

Location

{{project.location}}

Date started and completed:

{{project.start_date|date('M Y')}} - {{project.end_date|date('M Y')}}


{% if prev_page_url %}
PREVIOUS
{% endif %} {% if next_page_url %}
NEXT
{% endif %}
{% partial 'site/footer' %}