'quote' => env('FEATURE_QUOTE', true),
'news' => env('FEATURE_NEWS', true),
'i18n' => env('FEATURE_I18N', true),
+ 'team' => env('FEATURE_TEAM', true),
+ 'partners' => env('FEATURE_PARTNERS', true),
+ 'clients' => env('FEATURE_CLIENTS', true),
];
<text-block title="Wheel Force Transducer" title-class="h1 text-inherit">
<p>
- Wheel Force Transducers (WFT) are used for measuring all wheel forces and moments. Field and laboratory test of passenger cars, light duty trucks, heavy duty trucks, vans, SUVs, class 8 trucks, heavy duty construction and farm equipment.
+ Wheel Force Transducers (WFT) are used for measuring all wheel forces and moments. Field and
+ laboratory test of passenger cars, light duty trucks, heavy duty trucks, vans, SUVs, class 8
+ trucks, heavy duty construction and farm equipment.
</p>
<p>
</column>
<column class="overlap-bottom md:-mr-2v sm:-ml-2v sm:mb-0">
- <flexible-image src="storage/uploads/images/home-car.jpg" />
+ <flexible-image src="storage/uploads/images/home-car.jpg"/>
</column>
</columns>
<full-width class="bg-grey-100">
<content>
- <text-block class="mb-2v" title="Nos Produits" />
+ <text-block class="mb-2v" title="Nos Produits"/>
<columns>
<column>
{{-- Solutions / Applications --}}
<full-width class="bg-navy text-white antialiased">
<content>
- <text-block title-class="h1 text-inherit" title="Solutions / Applications" />
+ <text-block title-class="h1 text-inherit" title="Solutions / Applications"/>
<grid cols="3" class="sm:grid-cols-2 xs:grid-cols-1">
@foreach ($page->get('solutions', []) as $solution)
<a class="solutions-link" href="{{ $nav->getHrefByID($solution['page']) }}">
- <span class="solutions-link-bg" style="background-image:url({{ $page->getImageURLbyCollection($solution['image']) }})"></span>
+ <span class="solutions-link-bg"
+ style="background-image:url({{ $page->getImageURLbyCollection($solution['image']) }})"></span>
<span class="solutions-link-text">{{ $solution['title'] }}</span>
</a>
@endforeach
{{-- News --}}
<full-width>
<content>
- <text-block title="Actualités" />
+ <text-block title="Actualités"/>
<grid cols="4" class="md:grid-cols-2 xs:grid-cols-1 xs:grid-gap-20v">
@foreach ($news as $newsItem)
<div>
{{--Todo: handle missing images + get correct image size--}}
- <img class="mb-4" src="{{ $newsItem->getFirstMediaUrl($newsItem->image, 'thumb') }}" alt="{{ $newsItem->title }}">
+ <img class="mb-4" src="{{ $newsItem->getFirstMediaUrl($newsItem->image, 'thumb') }}"
+ alt="{{ $newsItem->title }}">
<h4 class="font-display">{{ $newsItem->title }}</h4>
<p>{{ $newsItem['chapo'] }}</p>
</full-width>
@endif
- {{-- Our Clients --}}
- <full-width class="bg-grey-100">
- <content>
- <text-block title="Nos clients" />
+ @if(config('features.clients'))
+ {{-- Our Clients --}}
+ <full-width class="bg-grey-100">
+ <content>
+ <text-block title="Nos clients"/>
- <grid cols="4" class="sm:grid-cols-2">
- @for ($i = 1; $i <= 8; $i++)
- <div class="bg-white hover:bg-grey-200 cursor-pointer" style="padding-bottom: 58%"></div>
- @endfor
- </grid>
- </content>
- </full-width>
+ <grid cols="4" class="sm:grid-cols-2">
+ @for ($i = 1; $i <= 8; $i++)
+ <div class="bg-white hover:bg-grey-200 cursor-pointer" style="padding-bottom: 58%"></div>
+ @endfor
+ </grid>
+ </content>
+ </full-width>
+ @endif
@endsection