first commit

This commit is contained in:
2024-11-07 17:16:20 +02:00
commit 75e91e4ddc
152 changed files with 17270 additions and 0 deletions
+110
View File
@@ -0,0 +1,110 @@
@extends('layouts.main')
@section('title')
{{ $title }}
@endsection
@section('content')
<div class="flex grid">
<div class="grid--item">
<div class="grid--item--heading">
<p class="bold">Your honeycombs</p><img src={{asset("images/honeycomb-black.png")}}></img>
</div>
<div class="grid--item--content">
<table class="grid--item--content--table small">
<thead>
<tr>
<th>
Honeycomb name
</th>
<th>
Created by
</th>
<th>
Due Date
</th>
</tr>
</thead>
<tbody>
@if (isset($honeycombs) && !empty($honeycombs->toArray()))
@foreach ($honeycombs as $honeycomb)
<tr>
<td class="black">
<a class="black small" href="#">{{ $honeycomb->name }}
</a>
</td>
{{-- @if (!is_string($honeycomb->createdBy))
{{dump((array)$honeycomb)}} --}}
<td>{{ $honeycomb->createdBy}}</td>
{{-- @else
<td>Alex Lingris</td>
@endif --}}
<td>25/10/25</td>
</tr>
@endforeach
@else
<td rowspan="4" colspan="3">
You have no honeycombs
</td>
@endif
</tbody>
</table>
<div class="grid--item--end">
<a href="/honeycombs" class="primary small honeycombs">All Honeycombs <img
src={{asset("images/honeycomb-black.png")}}></a>
</div>
</div>
</div>
<div class="grid--item">
<div class="grid--item--heading">
<p class="bold">Your honeycombs</p><img src={{asset("images/honeycomb-black.png")}}></img>
</div>
{{-- <div class="grid--item--content">
<ul>
@foreach ($tasks as $task)
<a href="#">
<li class="black">{{ $task->taskName }}</li>
</a>
@endforeach
</ul>
</div> --}}
</div>
<div class="grid--item">
<div class="grid--item--heading">
<p class="bold">Your honeycombs</p><img src={{asset("images/honeycomb-black.png")}}></img>
</div>
<div class="grid--item--content">
<table>
{{-- @foreach ($tasks as $task)
<tr>
<a href="#">
<td class="black">{{ $task->taskName }}</td>
</a>
</tr>
@endforeach --}}
</table>
</div>
</div>
<div class="grid--item">
<div class="grid--item--heading">
<p class="bold">Your honeycombs</p><img src={{asset("images/honeycomb-black.png")}}></img>
</div>
<div class="grid--item--content">
{{-- <ul>
@forelse ($tasks as $task)
<a href="#">
<li class="black">{{ $task->taskName }}</li>
</a>
@empty
No honeycombs found
@endforeach
</ul> --}}
</div>
</div>
</div>
</div>
</main>
@endsection
+112
View File
@@ -0,0 +1,112 @@
@extends('layouts.main')
@section('title')
{{ $title }}
@endsection
@section('content')
<div class="flex">
<div class="grid--item">
<div class="grid--item--heading">
<p class="bold">Honeycombs assigned to you
</p>
<div>
<img src={{asset("images/arrow-right-black.png")}}></img>
<img src={{asset("images/beekeper-black.png")}}></img>
</div>
</div>
<div class="grid--item--content">
<table class="grid--item--content--table small">
<thead>
<tr>
<th>
Honeycomb name
</th>
<th>
Created by
</th>
<th>
Due Date
</th>
</tr>
</thead>
<tbody>
@if (isset($assignedToMe) && !empty($assignedToMe->toArray()))
@foreach ($assignedToMe as $honeycomb)
<tr>
<td class="blue">
<a class="blue small" href="honeycombs/{{$honeycomb->id}}">{{ $honeycomb->name }}
</a>
</td>
<td>{{ $honeycomb->createdBy->name->value}}</td>
<td>25/10/25</td>
</tr>
@endforeach
@else
<td rowspan="4" colspan="3">
You have no honeycombs
</td>
@endif
</tbody>
</table>
</div>
</div>
<div class="grid--item">
<div class="grid--item--heading">
<p class="bold">
Honeycombs created by you
</p>
<div>
<img src={{asset("images/beekeper-black.png")}}></img>
<img src={{asset("images/arrow-right-black.png")}}></img>
</div>
</div>
<div class="grid--item--content">
<table class="grid--item--content--table small">
<thead>
<tr>
<th>
Honeycomb name
</th>
<th>
Created by
</th>
<th>
Due Date
</th>
</tr>
</thead>
<tbody>
@if (isset($honeycombs) && !empty($honeycombs->toArray()))
@foreach ($honeycombs as $honeycomb)
<tr>
<td class="blue">
<a class="blue small" href="#">{{ $honeycomb->name }}
</a>
</td>
<td>{{ $honeycomb->createdBy->name->value}}</td>
<td>25/10/25</td>
</tr>
@endforeach
@else
<td rowspan="4" colspan="3">
You have no honeycombs
</td>
@endif
</tbody>
</table>
<div class="grid--item--end">
<a href="/honeycombs/new" class="primary small add">Create new Honeycomb <img
src="{{asset("images/add-black.png")}}"></a>
</div>
</div>
</div>
</div>
@endsection
+25
View File
@@ -0,0 +1,25 @@
@extends('layouts.main')
@section('title')
{{ $title }}
@endsection
@section('content')
<div class="">
<form class="flex column" width="50px" method="POST" action="new">
@csrf
<x-forms.inputs.text label="Honeycomb Name" name="name" />
<input id="description" type="hidden" name="description">
<livewire:trix />
<div class="flex column formGroup">
<label for="dueDate"> Due Date</label>
<input id="dueDate" type="date" rows="10" name="dueDate"></input>
</div>
<livewire:assign-to />
<button type="submit" class="primary">Submit</button>
</form>
</div>
@endsection
<script>
</script>
@@ -0,0 +1,19 @@
@extends('layouts.main')
@section('title')
{{ $honeycomb->name }}
@endsection
@section('content')
<div class="">
<h1>{{$honeycomb->name}}</h1>
{!! $honeycomb->description !!}
{{$honeycomb->dueDate}}
@foreach($honeycomb->assignTo as $assigned)
Assigned To <button class="primary">{{$assigned->name}}</button>
@endforeach
</div>
@endsection
<script>
</script>