Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Fix #131 #132

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions database/migrations/2023_11_19_232154_metar_fav.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('metar_fav', function (Blueprint $table) {
$table->id()->autoIncrement();
$table->string('id_user');
$table->string('vid');
$table->string('icao');
$table->timestamps();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('metar_fav');
}
};
29 changes: 29 additions & 0 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
@endauth
@include('nav-wellcome')
<div class="row mt-2">
<div class="col-12">
<div class="alert alert-info text-center" role="alert">
<strong> 12 Nov 2023 - Update 2023.75 </strong> view the full <a href="{{route("changelog")}}" class="text-reset">Changelog</a>.
</div>
</div>
<div class="col-6">
<div class="card text-white bg-dark">
<div class="card-body bg-dark border-dark text-white text-opacity-75">
Expand Down Expand Up @@ -111,6 +116,30 @@
</div>
</div>

@auth()
<hr>

<div class="container">
<h5>Last Metar</h5>
<div class="row">
<div class="col">
<div class="col-4 mt-2">
<div class="card text-white bg-dark">
<div class="card-body">
<h4 class="card-title text-center text-info">Pilot</h4>
<p class="card-text text-center text-info">{{ $whazzup["pilot"] }}</p>
</div>
</div>
</div>
</div>
</div>
</div>





@endauth


@endsection
Loading