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

Commit

Permalink
Fix #131 (#132)
Browse files Browse the repository at this point in the history
* creat database metar_fav

* wel_pages
  • Loading branch information
alexcaussades authored Nov 22, 2023
1 parent f6b0def commit abb4a3e
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
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

0 comments on commit abb4a3e

Please sign in to comment.