Commit 76bc549a authored by cyprien's avatar cyprien
Browse files

Merge branch 'DivingCreation'

parents c59fed22 837bf660
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -25,8 +25,10 @@ public static function add($request)
        $dv->DS_MAX_DEPTH = $request->maxDepth;
        $dv->DS_ACTIVE = 1;
        $dv->DS_MAX_DIVERS = $request->max;
        $dv->DS_LEVEL = $request->level;
        $dv->PRE_CODE = $request->level;
        $dv->DS_LEVEL = 1;
        $dv->save();
        error_log($dv->DS_CODE);
        return $dv;
    }
}
+18 −0
Original line number Diff line number Diff line
<?php

namespace App\Http\Controllers;

use App\Models\DivingSession;
use Illuminate\Http\Request;

class DiveSessionDelete extends Controller
{
    //

    public static function update($id)
    {
        $dv = DivingSession::where('DS_CODE', $id)->first();
        $dv->DS_ACTIVE = 0;
        $dv->save();
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ public static function update($request, $id)
        $dv->DS_MAX_DEPTH = $request->maxDepth;
        $dv->DS_ACTIVE = 1;
        $dv->DS_MAX_DIVERS = $request->max;
        $dv->DS_LEVEL = $request->level;
        $dv->PRE_CODE = $request->level;
        $dv->save();
    }
}

public/css/app.css

0 → 100644
+58 −0
Original line number Diff line number Diff line
:root
{
  --black : #151414aa;
  --white: #ffffff;
  --whiteGrayer : #ebebeb;
  --grey : #D9D9D9;
  --blue : #002550;
  --blueLighter : #4d64b8;
  --yellow : #ffbe55;
  --yellowDarker : #daa654;

  --good : #00ff04;
  --bad : #dc2323;
  --badDarker : #c23232;

  --BigTitle : 32px;
  --title : 25px;
  --font : 20px;
}

body{
    font-family: 'Montserrat', sans-serif;
}

h1{
    font-family: 'Space Grotesk', sans-serif; 
    font-weight: bold;
}

.clickable{
    background-color: var(--yellow);
    color: var(--black);
    transition: all 0.4s ease-out;
}

.clickable:hover{
    cursor: pointer;
    background-color: var(--yellowDarker);
    color: var(--white)
}

.clickableRed{
    background-color: var(--bad);
    color: var(--black);
    transition: all 0.4s ease-out;
}

.clickableRed:hover{
    cursor: pointer;
    background-color: var(--badDarker);
    color: var(--white)
}

.align{
    display: flex;
    align-items: center;
    justify-content: center;
}
 No newline at end of file
+50 −0
Original line number Diff line number Diff line
.history{
    background-color: var(--blueLighter);
    color: var(--white);
    padding: 15px;
}

.arrayhistory{
    border-radius: 10px;
    overflow: hidden;
}

.historyLine{
    text-align: center;
}

.thresize{
    width: 25%;
}

body{
    font-size: 15px !important;
}

th{
    background-color: var(--blueLighter) !important;
}

th, td {
    padding: 15px;
    text-align: left;
}

td{
    text-align: center;
}

tr:nth-child(odd) {
    background-color: var(--whiteGrayer);
}

.clickableRed{
    width: 30px;
    height: 30px;
    border-radius: 30px;
    color: white;
}

select{
    padding: 6px;
}
 No newline at end of file
Loading