updating blades

This commit is contained in:
2026-04-06 22:08:47 -05:00
parent 824e561855
commit 5f862155b7
29 changed files with 90 additions and 553 deletions
@@ -1,10 +1,6 @@
@extends('layouts.dashb5')
@section('content')
@php
$authUser = $user ?? auth()->user();
@endphp
<div class="space-y-6">
<div class="rounded-2xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03]">
<h2 class="text-lg font-semibold text-gray-800 dark:text-white/90">JWT Status</h2>
+5
View File
@@ -0,0 +1,5 @@
@extends('header')
<body class="p-5">
@include('../inc/messages');
@yield('gauge')
</body>
+19
View File
@@ -0,0 +1,19 @@
@section('gauge')
<div class="card" style="max-width: 300px; margin: auto;">
<div class="card-body text-center">
<h5 class="card-title">Radial Gauge</h5>
<div class="gauge-container">
<div class="gauge-body">
<div class="gauge-fill" style="transform: rotate(0.75turn);"></div>
<div class="gauge-cover">50%</div>
</div>
</div>
<div class="d-flex justify-content-between mt-2">
<span class="text-danger fw-bold">E</span>
<span class="text-success fw-bold">F</span>
</div>
</div>
</div>
@endsection
+53
View File
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Radial Fuel Gauge</title>
<link href="https://jsdelivr.net" rel="stylesheet">
<style>
.gauge-container {
position: relative;
width: 200px;
height: 100px;
margin: auto;
}
.gauge-body {
width: 100%;
height: 100%;
background: #e9ecef;
border-radius: 100px 100px 0 0;
position: relative;
overflow: hidden;
}
.gauge-fill {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #28a745; /* Success Color */
border-radius: 100px 100px 0 0;
transform: rotate(0.6turn); /* 0.5turn = Empty, 1turn = Full */
transform-origin: bottom center;
transition: transform 0.5s ease;
}
.gauge-cover {
position: absolute;
bottom: 0;
left: 10%;
right: 10%;
top: 20%;
background-color: white;
border-radius: 100px 100px 0 0;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5rem;
font-weight: bold;
}
</style>
</head>
+5 -7
View File
@@ -1,14 +1,12 @@
<!DOCTYPE html>
<html lang="en">
@include('layouts.guest.dashboard.head');
@include('layouts.head');
<body class="hold-transition sidebar-mini">
<div class="wrapper">
@include('layouts.guest.dashboard.navbar')
@include('layouts.gueset.dashboard.main')
@include('layouts.guest.dashboard.content')
@include('layouts.guest.dashboard.control')
@include('layouts.guest.dashboard.footer')
@include('layouts.navbar')
@include('layouts.content')
@include('layouts.footer')
</div>
@include('layouts.guest.dashboard.scripts')
@include('layouts.scripts')
</body>
</html>
-1
View File
@@ -28,5 +28,4 @@
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
@hasSection('header')
@yield('header')
@endif
</head>
+1 -3
View File
@@ -8,9 +8,7 @@
<li class="nav-item d-none d-sm-inline-block">
<a href="/dashboard" class="nav-link">Dashboard</a>
</li>
@if(auth()->user()->hasRole('Admin') ||
auth()->user()->hasPermission('contract.admin') ||
auth()->user()->hasPermission('mining.officer'))
@if(auth()->user()->hasRole('Admin'))
<li class="nav-item d-non d-sm-inline-block">
<a class="nav-link" href="/admin/dashboard">Admin Dashboard</a>
</li>
@@ -13,12 +13,6 @@
<p>Dashboard</p>
</a>
</li>
<li class="nav-item">
<a href="/supplychain/my/dashboard" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>My Dashboard</p>
</a>
</li>
<li class="nav-item">
<a href="/supplychain/display/bids" class="nav-link">
<i class="far fa-circle nav-icon"></i>
@@ -1,5 +1,4 @@
@if((auth()->user()->hasRole('User') && auth()->user()->hasPermission('ceo')) ||
auth()->user()->hasRole('Admin'))
@if(auth()->user()->hasRole('Admin'))
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-file-contract"></i>
@@ -20,15 +20,9 @@
</a>
</li>
<li class="nav-item">
<a href="/jumpbridges/fuel" class="nav-link">
<a href="/citadels/fuel" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Jump Bridge Fuel</p>
</a>
</li>
<li class="nav-item">
<a href="https://buyback.w4rp.space" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Buyback Program</p>
<p>Citadel Fuel</p>
</a>
</li>
</ul>
@@ -1,27 +0,0 @@
@if(auth()->user()->hasRole('User') || auth()->user()->hasRole('Admin'))
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon far fa-building"></i>
<p>
Structures<br>
<i class="right fas fa-angle-left"></i>
</p>
</a>
<ul class="nav nav-treeview">
@if(auth()->user()->hasPermission('fc.team'))
<li class="nav-item">
<a href="/structures/display/requests" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Display Requests</p>
</a>
</li>
@endif
<li class="nav-item">
<a href="/structures/display/form" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Request Form</p>
</a>
</li>
</ul>
</li>
@endif
@@ -0,0 +1,4 @@
@extends('layouts.dashb5')
@section('content')
{{ var_dump($char) }}
@endsection
-24
View File
@@ -1,24 +0,0 @@
@props([
'url',
'color' => 'primary',
'align' => 'center',
])
<table class="action" align="{{ $align }}" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="{{ $align }}">
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="{{ $align }}">
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td>
<a href="{{ $url }}" class="button button-{{ $color }}" target="_blank" rel="noopener">{!! $slot !!}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
-11
View File
@@ -1,11 +0,0 @@
<tr>
<td>
<table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="content-cell" align="center">
{{ Illuminate\Mail\Markdown::parse($slot) }}
</td>
</tr>
</table>
</td>
</tr>
-12
View File
@@ -1,12 +0,0 @@
@props(['url'])
<tr>
<td class="header">
<a href="{{ $url }}" style="display: inline-block;">
@if (trim($slot) === 'Laravel')
<img src="https://laravel.com/img/notification-logo-v2.1.png" class="logo" alt="Laravel Logo">
@else
{!! $slot !!}
@endif
</a>
</td>
</tr>
-58
View File
@@ -1,58 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<title>{{ config('app.name') }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light">
<meta name="supported-color-schemes" content="light">
<style>
@media only screen and (max-width: 600px) {
.inner-body {
width: 100% !important;
}
.footer {
width: 100% !important;
}
}
@media only screen and (max-width: 500px) {
.button {
width: 100% !important;
}
}
</style>
{!! $head ?? '' !!}
</head>
<body>
<table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="center">
<table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation">
{!! $header ?? '' !!}
<!-- Email Body -->
<tr>
<td class="body" width="100%" cellpadding="0" cellspacing="0" style="border: hidden !important;">
<table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
<!-- Body content -->
<tr>
<td class="content-cell">
{!! Illuminate\Mail\Markdown::parse($slot) !!}
{!! $subcopy ?? '' !!}
</td>
</tr>
</table>
</td>
</tr>
{!! $footer ?? '' !!}
</table>
</td>
</tr>
</table>
</body>
</html>
-27
View File
@@ -1,27 +0,0 @@
<x-mail::layout>
{{-- Header --}}
<x-slot:header>
<x-mail::header :url="config('app.url')">
{{ config('app.name') }}
</x-mail::header>
</x-slot:header>
{{-- Body --}}
{!! $slot !!}
{{-- Subcopy --}}
@isset($subcopy)
<x-slot:subcopy>
<x-mail::subcopy>
{!! $subcopy !!}
</x-mail::subcopy>
</x-slot:subcopy>
@endisset
{{-- Footer --}}
<x-slot:footer>
<x-mail::footer>
© {{ date('Y') }} {{ config('app.name') }}. {{ __('All rights reserved.') }}
</x-mail::footer>
</x-slot:footer>
</x-mail::layout>
-14
View File
@@ -1,14 +0,0 @@
<table class="panel" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="panel-content">
<table width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="panel-item">
{{ Illuminate\Mail\Markdown::parse($slot) }}
</td>
</tr>
</table>
</td>
</tr>
</table>
-7
View File
@@ -1,7 +0,0 @@
<table class="subcopy" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td>
{{ Illuminate\Mail\Markdown::parse($slot) }}
</td>
</tr>
</table>
-3
View File
@@ -1,3 +0,0 @@
<div class="table">
{{ Illuminate\Mail\Markdown::parse($slot) }}
</div>
-297
View File
@@ -1,297 +0,0 @@
/* Base */
body,
body *:not(html):not(style):not(br):not(tr):not(code) {
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
position: relative;
}
body {
-webkit-text-size-adjust: none;
background-color: #ffffff;
color: #52525b;
height: 100%;
line-height: 1.4;
margin: 0;
padding: 0;
width: 100% !important;
}
p,
ul,
ol,
blockquote {
line-height: 1.4;
text-align: start;
}
a {
color: #18181b;
}
a img {
border: none;
}
/* Typography */
h1 {
color: #18181b;
font-size: 18px;
font-weight: bold;
margin-top: 0;
text-align: start;
}
h2 {
font-size: 16px;
font-weight: bold;
margin-top: 0;
text-align: start;
}
h3 {
font-size: 14px;
font-weight: bold;
margin-top: 0;
text-align: left;
}
p {
font-size: 16px;
line-height: 1.5em;
margin-top: 0;
text-align: left;
}
p.sub {
font-size: 12px;
}
img {
max-width: 100%;
}
/* Layout */
.wrapper {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
background-color: #fafafa;
margin: 0;
padding: 0;
width: 100%;
}
.content {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
margin: 0;
padding: 0;
width: 100%;
}
/* Header */
.header {
padding: 25px 0;
text-align: center;
}
.header a {
color: #18181b;
font-size: 19px;
font-weight: bold;
text-decoration: none;
}
/* Logo */
.logo {
height: 75px;
margin-top: 15px;
margin-bottom: 10px;
max-height: 75px;
width: 75px;
}
/* Body */
.body {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
background-color: #fafafa;
border-bottom: 1px solid #fafafa;
border-top: 1px solid #fafafa;
margin: 0;
padding: 0;
width: 100%;
}
.inner-body {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 570px;
background-color: #ffffff;
border-color: #e4e4e7;
border-radius: 4px;
border-width: 1px;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
margin: 0 auto;
padding: 0;
width: 570px;
}
.inner-body a {
word-break: break-all;
}
/* Subcopy */
.subcopy {
border-top: 1px solid #e4e4e7;
margin-top: 25px;
padding-top: 25px;
}
.subcopy p {
font-size: 14px;
}
/* Footer */
.footer {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 570px;
margin: 0 auto;
padding: 0;
text-align: center;
width: 570px;
}
.footer p {
color: #a1a1aa;
font-size: 12px;
text-align: center;
}
.footer a {
color: #a1a1aa;
text-decoration: underline;
}
/* Tables */
.table table {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
margin: 30px auto;
width: 100%;
}
.table th {
border-bottom: 1px solid #e4e4e7;
margin: 0;
padding-bottom: 8px;
}
.table td {
color: #52525b;
font-size: 15px;
line-height: 18px;
margin: 0;
padding: 10px 0;
}
.content-cell {
max-width: 100vw;
padding: 32px;
}
/* Buttons */
.action {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
margin: 30px auto;
padding: 0;
text-align: center;
width: 100%;
float: unset;
}
.button {
-webkit-text-size-adjust: none;
border-radius: 4px;
color: #fff;
display: inline-block;
overflow: hidden;
text-decoration: none;
}
.button-blue,
.button-primary {
background-color: #18181b;
border-bottom: 8px solid #18181b;
border-left: 18px solid #18181b;
border-right: 18px solid #18181b;
border-top: 8px solid #18181b;
}
.button-green,
.button-success {
background-color: #16a34a;
border-bottom: 8px solid #16a34a;
border-left: 18px solid #16a34a;
border-right: 18px solid #16a34a;
border-top: 8px solid #16a34a;
}
.button-red,
.button-error {
background-color: #dc2626;
border-bottom: 8px solid #dc2626;
border-left: 18px solid #dc2626;
border-right: 18px solid #dc2626;
border-top: 8px solid #dc2626;
}
/* Panels */
.panel {
border-left: #18181b solid 4px;
margin: 21px 0;
}
.panel-content {
background-color: #fafafa;
color: #52525b;
padding: 16px;
}
.panel-content p {
color: #52525b;
}
.panel-item {
padding: 0;
}
.panel-item p:last-of-type {
margin-bottom: 0;
padding-bottom: 0;
}
/* Utilities */
.break-all {
word-break: break-all;
}
-1
View File
@@ -1 +0,0 @@
{{ $slot }}: {{ $url }}
-1
View File
@@ -1 +0,0 @@
{{ $slot }}
-1
View File
@@ -1 +0,0 @@
{{ $slot }}: {{ $url }}
-9
View File
@@ -1,9 +0,0 @@
{!! strip_tags($header ?? '') !!}
{!! strip_tags($slot) !!}
@isset($subcopy)
{!! strip_tags($subcopy) !!}
@endisset
{!! strip_tags($footer ?? '') !!}
-27
View File
@@ -1,27 +0,0 @@
<x-mail::layout>
{{-- Header --}}
<x-slot:header>
<x-mail::header :url="config('app.url')">
{{ config('app.name') }}
</x-mail::header>
</x-slot:header>
{{-- Body --}}
{{ $slot }}
{{-- Subcopy --}}
@isset($subcopy)
<x-slot:subcopy>
<x-mail::subcopy>
{{ $subcopy }}
</x-mail::subcopy>
</x-slot:subcopy>
@endisset
{{-- Footer --}}
<x-slot:footer>
<x-mail::footer>
© {{ date('Y') }} {{ config('app.name') }}. @lang('All rights reserved.')
</x-mail::footer>
</x-slot:footer>
</x-mail::layout>
-1
View File
@@ -1 +0,0 @@
{{ $slot }}
-1
View File
@@ -1 +0,0 @@
{{ $slot }}
-1
View File
@@ -1 +0,0 @@
{{ $slot }}