Compare commits

..

No commits in common. "ee0da236444938e7dc19bb05b8381d0227988929" and "809579aa64deea840c9cab9c6f5b54c4892b91c0" have entirely different histories.

10 changed files with 156 additions and 147 deletions

View File

@ -51,25 +51,15 @@ public function storeApp(Request $request)
'name' => 'required|string|max:255', 'name' => 'required|string|max:255',
'url' => 'required|url|max:255', 'url' => 'required|url|max:255',
'icon_svg' => 'nullable|string', 'icon_svg' => 'nullable|string',
'logo' => 'nullable|image|mimes:jpeg,png,jpg,gif,svg,webp|max:2048',
'color' => 'nullable|string|max:20', 'color' => 'nullable|string|max:20',
'desc' => 'nullable|string', 'desc' => 'nullable|string',
'tag' => 'nullable|string|max:255', 'tag' => 'nullable|string|max:255',
]); ]);
$logoPath = null;
if ($request->hasFile('logo')) {
$file = $request->file('logo');
$filename = time() . '_' . uniqid() . '.' . $file->getClientOriginalExtension();
$file->move(public_path('uploads/logos'), $filename);
$logoPath = 'uploads/logos/' . $filename;
}
App::create([ App::create([
'name' => $request->name, 'name' => $request->name,
'url' => $request->url, 'url' => $request->url,
'icon_svg' => $request->icon_svg, 'icon_svg' => $request->icon_svg,
'logo' => $logoPath,
'color' => $request->color ?? '#4f46e5', 'color' => $request->color ?? '#4f46e5',
'desc' => $request->desc, 'desc' => $request->desc,
'tag' => $request->tag ?? 'General', 'tag' => $request->tag ?? 'General',
@ -84,9 +74,6 @@ public function storeApp(Request $request)
public function destroyApp($id) public function destroyApp($id)
{ {
$app = App::findOrFail($id); $app = App::findOrFail($id);
if ($app->logo && file_exists(public_path($app->logo))) {
@unlink(public_path($app->logo));
}
$app->delete(); $app->delete();
return redirect()->route('admin.dashboard')->with('success', 'Service app deleted successfully.'); return redirect()->route('admin.dashboard')->with('success', 'Service app deleted successfully.');

View File

@ -6,7 +6,7 @@
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Attributes\Fillable; use Illuminate\Database\Eloquent\Attributes\Fillable;
#[Fillable(['name', 'url', 'icon_svg', 'logo', 'color', 'desc', 'tag'])] #[Fillable(['name', 'url', 'icon_svg', 'color', 'desc', 'tag'])]
class App extends Model class App extends Model
{ {
use HasFactory; use HasFactory;

View File

@ -1,28 +0,0 @@
<?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::table('apps', function (Blueprint $table) {
$table->string('logo')->nullable()->after('icon_svg');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('apps', function (Blueprint $table) {
$table->dropColumn('logo');
});
}
};

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 KiB

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Control Panel</title> <title>Admin Panel - SingleLogin Portal</title>
<!-- Google Fonts: Outfit & Inter --> <!-- Google Fonts: Outfit & Inter -->
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
@ -482,10 +482,10 @@
<!-- Nav --> <!-- Nav -->
<header class="navbar"> <header class="navbar">
<div class="nav-logo"> <div class="nav-logo">
<svg viewBox="0 0 24 24" style="margin-right: 8px;"> <svg viewBox="0 0 24 24">
<path d="M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,13C14.67,13 20,14.33 20,17V18H4V17C4,14.33 9.33,13 12,13Z" /> <path d="M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,13C14.67,13 20,14.33 20,17V18H4V17C4,14.33 9.33,13 12,13Z" />
</svg> </svg>
Control Panel SingleLogin Control Panel
</div> </div>
<div class="nav-actions"> <div class="nav-actions">
<!-- Allow Admin to view the User portal dashboard --> <!-- Allow Admin to view the User portal dashboard -->
@ -576,7 +576,7 @@
<h3 style="font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; color: #a5b4fc;">Manage System Services</h3> <h3 style="font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; color: #a5b4fc;">Manage System Services</h3>
<!-- Add App Form --> <!-- Add App Form -->
<form action="{{ route('admin.apps.store') }}" method="POST" enctype="multipart/form-data" style="margin-bottom: 30px;"> <form action="{{ route('admin.apps.store') }}" method="POST" style="margin-bottom: 30px;">
@csrf @csrf
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px;"> <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px;">
<div> <div>
@ -602,10 +602,6 @@
<label style="display:block; font-size:0.75rem; color:var(--text-muted); margin-bottom:6px; font-weight:500;">Icon SVG Code or Preset Name (outlook/teams/keka)</label> <label style="display:block; font-size:0.75rem; color:var(--text-muted); margin-bottom:6px; font-weight:500;">Icon SVG Code or Preset Name (outlook/teams/keka)</label>
<textarea name="icon_svg" rows="2" placeholder="e.g. keka, outlook, teams, or raw <svg>...</svg>" class="form-input" style="width:100%; padding:10px; background:rgba(255,255,255,0.03); border:1px solid var(--card-border); border-radius:8px; color:white; font-family:monospace; font-size:0.8rem;"></textarea> <textarea name="icon_svg" rows="2" placeholder="e.g. keka, outlook, teams, or raw <svg>...</svg>" class="form-input" style="width:100%; padding:10px; background:rgba(255,255,255,0.03); border:1px solid var(--card-border); border-radius:8px; color:white; font-family:monospace; font-size:0.8rem;"></textarea>
</div> </div>
<div style="margin-bottom: 12px;">
<label style="display:block; font-size:0.75rem; color:var(--text-muted); margin-bottom:6px; font-weight:500;">Upload Service Logo (Optional - Image will override preset SVG)</label>
<input type="file" name="logo" accept="image/*" class="form-input" style="width:100%; padding:8px; background:rgba(255,255,255,0.03); border:1px solid var(--card-border); border-radius:8px; color:white;">
</div>
<div style="margin-bottom: 16px;"> <div style="margin-bottom: 16px;">
<label style="display:block; font-size:0.75rem; color:var(--text-muted); margin-bottom:6px; font-weight:500;">Service Description</label> <label style="display:block; font-size:0.75rem; color:var(--text-muted); margin-bottom:6px; font-weight:500;">Service Description</label>
<input type="text" name="desc" placeholder="Brief description of the service..." class="form-input" style="width:100%; padding:10px; background:rgba(255,255,255,0.03); border:1px solid var(--card-border); border-radius:8px; color:white;"> <input type="text" name="desc" placeholder="Brief description of the service..." class="form-input" style="width:100%; padding:10px; background:rgba(255,255,255,0.03); border:1px solid var(--card-border); border-radius:8px; color:white;">
@ -629,13 +625,7 @@
<tr> <tr>
<td> <td>
<div style="display:flex; align-items:center; gap:8px;"> <div style="display:flex; align-items:center; gap:8px;">
@if($app->logo) <div style="width:12px; height:12px; border-radius:50%; background-color:{{ $app->color }};"></div>
<img src="{{ asset($app->logo) }}" alt="{{ $app->name }}" style="width:20px; height:20px; object-fit:contain; border-radius:4px;">
@else
<div style="width:20px; height:20px; border-radius:4px; background-color:{{ $app->color }}; display:flex; align-items:center; justify-content:center; color:white; font-size:10px; font-weight:bold;">
{{ strtoupper(substr($app->name, 0, 1)) }}
</div>
@endif
<strong>{{ $app->name }}</strong> <strong>{{ $app->name }}</strong>
</div> </div>
</td> </td>
@ -1054,7 +1044,7 @@ function openAssignRolesModal(userId, name, roleIds) {
</script> </script>
<footer style="text-align: center; padding: 40px 0; font-size: 0.75rem; color: var(--text-muted); z-index: 10;"> <footer style="text-align: center; padding: 40px 0; font-size: 0.75rem; color: var(--text-muted); z-index: 10;">
&copy; 2026 Systems. Authorized Access Only. &copy; 2026 SingleLogin Systems. Authorized Access Only.
</footer> </footer>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Control Panel - Admin Access</title> <title>SingleLogin Portal - Admin Access</title>
<!-- Google Fonts: Outfit & Inter --> <!-- Google Fonts: Outfit & Inter -->
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
@ -308,7 +308,7 @@
<svg viewBox="0 0 24 24"> <svg viewBox="0 0 24 24">
<path d="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8H17V6A5,5 0 0,0 12,1A5,5 0 0,0 7,6V8H6A2,2 0 0,0 4,10V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V10A2,2 0 0,0 18,8M8.9,6C8.9,4.29 10.29,2.9 12,2.9C13.71,2.9 15.1,4.29 15.1,6V8H8.9V6M18,20H6V10H18V20Z" /> <path d="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8H17V6A5,5 0 0,0 12,1A5,5 0 0,0 7,6V8H6A2,2 0 0,0 4,10V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V10A2,2 0 0,0 18,8M8.9,6C8.9,4.29 10.29,2.9 12,2.9C13.71,2.9 15.1,4.29 15.1,6V8H8.9V6M18,20H6V10H18V20Z" />
</svg> </svg>
Control Panel Admin SingleLogin Admin
</div> </div>
<div class="brand-subtitle">Administrator Access Only</div> <div class="brand-subtitle">Administrator Access Only</div>
</div> </div>
@ -368,7 +368,7 @@
</div> </div>
<div class="footer"> <div class="footer">
&copy; 2026 Systems. Secured with Microsoft Identity Platform. &copy; 2026 SingleLogin Systems. Secured with Microsoft Identity Platform.
</div> </div>
</div> </div>

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Portal - Authenticate</title> <title>SingleLogin Portal - Authenticate</title>
<!-- Google Fonts: Outfit & Inter --> <!-- Google Fonts: Outfit & Inter -->
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
@ -341,7 +341,7 @@
<svg viewBox="0 0 24 24"> <svg viewBox="0 0 24 24">
<path d="M18,8H17V6A5,5 0 0,0 12,1A5,5 0 0,0 7,6V8H6A2,2 0 0,0 4,10V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V10A2,2 0 0,0 18,8M8.9,6C8.9,4.29 10.29,2.9 12,2.9C13.71,2.9 15.1,4.29 15.1,6V8H8.9V6M12,17A2,2 0 1,1 14,15A2,2 0 0,1 12,17Z" /> <path d="M18,8H17V6A5,5 0 0,0 12,1A5,5 0 0,0 7,6V8H6A2,2 0 0,0 4,10V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V10A2,2 0 0,0 18,8M8.9,6C8.9,4.29 10.29,2.9 12,2.9C13.71,2.9 15.1,4.29 15.1,6V8H8.9V6M12,17A2,2 0 1,1 14,15A2,2 0 0,1 12,17Z" />
</svg> </svg>
Unified Portal SingleLogin
</div> </div>
<div class="brand-subtitle">Unified Identity Authentication Portal</div> <div class="brand-subtitle">Unified Identity Authentication Portal</div>
</div> </div>
@ -393,7 +393,7 @@
</div> </div>
<div class="footer"> <div class="footer">
&copy; 2026 Systems. Secured with Microsoft Identity Platform. &copy; 2026 SingleLogin Systems. Secured with Microsoft Identity Platform.
</div> </div>
</div> </div>

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard</title> <title>Dashboard - SingleLogin Portal</title>
<!-- Google Fonts: Outfit & Inter --> <!-- Google Fonts: Outfit & Inter -->
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
@ -267,71 +267,109 @@
.services-grid { .services-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 16px; gap: 24px;
} }
/* Service Cards - Small */ /* Service Cards */
.service-card-small { .service-card {
background-color: var(--card-bg); background-color: var(--card-bg);
border: 1px solid var(--card-border); border: 1px solid var(--card-border);
border-radius: 12px; border-radius: 16px;
padding: 16px; padding: 28px;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
align-items: center; flex-direction: column;
gap: 14px; justify-content: space-between;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(8px); backdrop-filter: blur(8px);
} }
.service-card-small:hover { .service-card::before {
transform: translateY(-3px); content: '';
border-color: rgba(255, 255, 255, 0.15); position: absolute;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); top: 0;
left: 0;
width: 100%;
height: 4px;
background-color: transparent;
transition: background-color 0.3s ease;
} }
.service-icon-wrapper-small { .service-card:hover {
width: 44px; transform: translateY(-5px);
height: 44px; border-color: rgba(255, 255, 255, 0.15);
border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.service-icon-wrapper {
width: 54px;
height: 54px;
border-radius: 12px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-shrink: 0; margin-bottom: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transition: transform 0.3s ease; transition: transform 0.3s ease;
} }
.service-card-small:hover .service-icon-wrapper-small { .service-card:hover .service-icon-wrapper {
transform: scale(1.08); transform: scale(1.1) rotate(3deg);
} }
.service-icon-wrapper-small svg { .service-icon-wrapper svg {
width: 24px; width: 32px;
height: 24px; height: 32px;
} }
.service-info-small { .service-tag {
display: flex;
flex-direction: column;
gap: 2px;
}
.service-name-small {
font-family: 'Outfit', sans-serif;
font-size: 1rem;
font-weight: 600;
color: var(--text-main);
margin: 0;
}
.service-tag-small {
font-size: 0.7rem;
color: var(--text-muted);
align-self: flex-start; align-self: flex-start;
font-size: 0.75rem;
color: var(--text-muted);
background-color: rgba(255, 255, 255, 0.04);
padding: 2px 8px;
border-radius: 4px;
margin-bottom: 8px;
font-weight: 500;
}
.service-name {
font-family: 'Outfit', sans-serif;
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 8px;
}
.service-desc {
font-size: 0.85rem;
color: var(--text-muted);
line-height: 1.5;
margin-bottom: 24px;
}
.sso-launch-btn {
background-color: rgba(255, 255, 255, 0.04);
border: 1px solid var(--card-border);
color: var(--text-main);
padding: 8px 12px;
border-radius: 8px;
font-size: 0.85rem;
font-weight: 500;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
width: 100%;
transition: all 0.2s ease;
}
.service-card:hover .sso-launch-btn {
background-color: var(--accent-primary);
border-color: transparent;
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
} }
/* Fullscreen SSO Modal Overlay */ /* Fullscreen SSO Modal Overlay */
@ -439,17 +477,38 @@
align-items: flex-start; align-items: flex-start;
padding: 24px; padding: 24px;
} }
.nav-user { .session-status {
margin-top: 10px; text-align: left;
width: 100%; width: 100%;
display: flex;
justify-content: flex-start;
} }
} }
</style> </style>
</head> </head>
<body> <body>
<!-- Nav -->
<header class="navbar">
<div class="nav-logo">
<svg viewBox="0 0 24 24">
<path d="M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20Z" />
</svg>
SingleLogin Dashboard
</div>
<div class="nav-user">
@if($user->role === 'admin')
<a href="{{ route('admin.dashboard') }}" class="logout-link" style="color: var(--info-color); border-color: rgba(6, 182, 212, 0.2); background-color: rgba(6, 182, 212, 0.05); margin-right: 10px;">
Admin Panel
</a>
@endif
<form action="{{ route('logout') }}" method="POST" id="logout-form" style="display: none;">
@csrf
</form>
<a href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();" class="logout-link">
Sign Out
</a>
</div>
</header>
<!-- Main Container --> <!-- Main Container -->
<main class="dashboard-container"> <main class="dashboard-container">
@ -486,18 +545,11 @@
</div> </div>
</div> </div>
<div class="nav-user"> <div class="session-status">
@if($user->role === 'admin') <div class="status-pill">
<a href="{{ route('admin.dashboard') }}" class="logout-link" style="color: var(--info-color); border-color: rgba(6, 182, 212, 0.2); background-color: rgba(6, 182, 212, 0.05); margin-right: 10px;"> <span class="status-dot"></span>
Admin Panel <span>Secure Microsoft SSO Session Active</span>
</a> </div>
@endif
<form action="{{ route('logout') }}" method="POST" id="logout-form" style="display: none;">
@csrf
</form>
<a href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();" class="logout-link">
Sign Out
</a>
</div> </div>
</section> </section>
@ -507,32 +559,40 @@
<div class="services-grid"> <div class="services-grid">
@foreach($services as $service) @foreach($services as $service)
<div class="service-card-small" onclick="launchSSO('{{ $service['name'] }}', '{{ route('sso.launch', $service['id']) }}')" style="border-left: 4px solid {{ $service['color'] }}"> <div class="service-card" onclick="launchSSO('{{ $service['name'] }}', '{{ route('sso.launch', $service['id']) }}')" style="border-top: 4px solid {{ $service['color'] }}">
<div class="service-icon-wrapper-small" style="background-color: rgba({{ hexdec(substr($service['color'] ?? '#4f46e5', 1, 2)) }}, {{ hexdec(substr($service['color'] ?? '#4f46e5', 3, 2)) }}, {{ hexdec(substr($service['color'] ?? '#4f46e5', 5, 2)) }}, 0.08)"> <div>
@if($service['logo']) <div class="service-tag">{{ $service['tag'] }}</div>
<img src="{{ asset($service['logo']) }}" alt="{{ $service['name'] }}" style="width: 32px; height: 32px; object-fit: contain; border-radius: 6px;"> <div class="service-icon-wrapper" style="background-color: rgba({{ hexdec(substr($service['color'], 1, 2)) }}, {{ hexdec(substr($service['color'], 3, 2)) }}, {{ hexdec(substr($service['color'], 5, 2)) }}, 0.08)">
@elseif($service['icon_svg'] === 'outlook') <!-- Custom SVGs for Service Providers -->
<svg viewBox="0 0 24 24" fill="{{ $service['color'] }}"> @if($service['icon_svg'] === 'outlook')
<path d="M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,19H5V8H19V19M19,6H5V5H19V6M17,12H12V17H17V12Z" /> <svg viewBox="0 0 24 24" fill="{{ $service['color'] }}">
</svg> <path d="M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,19H5V8H19V19M19,6H5V5H19V6M17,12H12V17H17V12Z" />
@elseif($service['icon_svg'] === 'teams') </svg>
<svg viewBox="0 0 24 24" fill="{{ $service['color'] }}"> @elseif($service['icon_svg'] === 'teams')
<path d="M12.5,9A2.5,2.5 0 0,1 15,11.5A2.5,2.5 0 0,1 12.5,14A2.5,2.5 0 0,1 10,11.5A2.5,2.5 0 0,1 12.5,9M12.5,15.5C14.71,15.5 18.5,16.5 18.5,18.5V20H6.5V18.5C6.5,16.5 10.29,15.5 12.5,15.5M6,8A2,2 0 0,1 8,10A2,2 0 0,1 6,12A2,2 0 0,1 4,10A2,2 0 0,1 6,8M6,13.5C7.43,13.5 10,14.07 10,15.25V17H2V15.25C2,14.07 4.57,13.5 6,13.5M12.5,3A2,2 0 0,1 14.5,5A2,2 0 0,1 12.5,7A2,2 0 0,1 10.5,5A2,2 0 0,1 12.5,3M12.5,20V22H19V20H12.5Z" /> <svg viewBox="0 0 24 24" fill="{{ $service['color'] }}">
</svg> <path d="M12.5,9A2.5,2.5 0 0,1 15,11.5A2.5,2.5 0 0,1 12.5,14A2.5,2.5 0 0,1 10,11.5A2.5,2.5 0 0,1 12.5,9M12.5,15.5C14.71,15.5 18.5,16.5 18.5,18.5V20H6.5V18.5C6.5,16.5 10.29,15.5 12.5,15.5M6,8A2,2 0 0,1 8,10A2,2 0 0,1 6,12A2,2 0 0,1 4,10A2,2 0 0,1 6,8M6,13.5C7.43,13.5 10,14.07 10,15.25V17H2V15.25C2,14.07 4.57,13.5 6,13.5M12.5,3A2,2 0 0,1 14.5,5A2,2 0 0,1 12.5,7A2,2 0 0,1 10.5,5A2,2 0 0,1 12.5,3M12.5,20V22H19V20H12.5Z" />
@elseif($service['icon_svg'] === 'keka') </svg>
<svg viewBox="0 0 24 24" fill="{{ $service['color'] }}"> @elseif($service['icon_svg'] === 'keka')
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H7c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.04-.42 1.99-1.07 2.75z"/> <svg viewBox="0 0 24 24" fill="{{ $service['color'] }}">
</svg> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H7c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.04-.42 1.99-1.07 2.75z"/>
@elseif(str_starts_with($service['icon_svg'] ?? '', '<svg')) </svg>
{!! $service['icon_svg'] !!} @elseif(str_starts_with($service['icon_svg'] ?? '', '<svg'))
@else {!! $service['icon_svg'] !!}
<img src="{{ asset('images/default_logo.png') }}" alt="Default Logo" style="width: 32px; height: 32px; object-fit: contain; border-radius: 6px;"> @else
@endif <svg viewBox="0 0 24 24" fill="{{ $service['color'] }}">
</div> <path d="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4M12,6A6,6 0 0,0 6,12A6,6 0 0,0 12,18A6,6 0 0,0 18,12A6,6 0 0,0 12,6M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8Z" />
<div class="service-info-small"> </svg>
<h3 class="service-name-small">{{ $service['name'] }}</h3> @endif
<span class="service-tag-small">{{ $service['tag'] }}</span> </div>
<div class="service-name">{{ $service['name'] }}</div>
<div class="service-desc">{{ $service['desc'] }}</div>
</div> </div>
<button class="sso-launch-btn">
Launch Service
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6M15 3h6v6M10 14L21 3"/>
</svg>
</button>
</div> </div>
@endforeach @endforeach
</div> </div>

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Launching {{ $name }}</title> <title>Launching {{ $name }} - SingleLogin</title>
<!-- Google Fonts: Outfit & Inter --> <!-- Google Fonts: Outfit & Inter -->
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>