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-29 15:25:15 +02:00

30 lines
928 B
PHP

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