This repository has been archived on 2022-11-29. You can view files and clone it, but cannot push or open issues or pull requests.
socialtree-jigsaw/source/index.blade.php
2022-04-30 14:30:33 +02:00

30 lines
1.1 KiB
PHP

@extends('_layouts.main')
@section('body')
<div class="mainContainer">
<img src="{{ 'assets/images/' . $page->imageName }}">
<h1 class="">{{ $page->author }}</h1>
<div class="linkBox">
@foreach ($page->links as $link)
@if (isset($link['text']) && isset($link['color']))
<a href="{{$link->link}}" class="{{strtolower($link->color)}}">
{{ strtoupper($link->text) }}
</a>
@elseif (!isset($link['text']) && isset($link['color']))
<a href="{{$link->link}}" class="{{strtolower($link->color)}}">
{{ strtoupper($link->platform) }}
</a>
@elseif (isset($link['text']) && !isset($link['color']))
<a href="{{$link->link}}" class="styledefault">
{{ strtoupper($link->text) }}
</a>
@else
<a href="{{$link->link}}" class="sytledefault">
{{ strtoupper($link->platform) }}
</a>
@endif
@endforeach
</div>
</div>
@endsection