48 lines
1.4 KiB
PHP
48 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
class DashboardController extends Controller
|
|
{
|
|
/**
|
|
* Show the user dashboard.
|
|
*/
|
|
public function index()
|
|
{
|
|
$user = Auth::user();
|
|
|
|
// Service list with URLs and aesthetic tags
|
|
$services = [
|
|
[
|
|
'name' => 'Outlook',
|
|
'url' => 'https://outlook.office.com/mail/',
|
|
'icon_svg' => 'outlook',
|
|
'color' => '#0078d4',
|
|
'desc' => 'Access your corporate mail, calendar, and contacts instantly.',
|
|
'tag' => 'Microsoft 365'
|
|
],
|
|
[
|
|
'name' => 'Microsoft Teams',
|
|
'url' => 'https://teams.microsoft.com/v2/',
|
|
'icon_svg' => 'teams',
|
|
'color' => '#6264a7',
|
|
'desc' => 'Chat, meet, call, and collaborate with your team.',
|
|
'tag' => 'Microsoft 365'
|
|
],
|
|
[
|
|
'name' => 'Keka HR',
|
|
'url' => 'https://sentientgeeks.keka.com/',
|
|
'icon_svg' => 'keka',
|
|
'color' => '#f27059',
|
|
'desc' => 'Manage timesheets, leaves, payroll, and performance tasks.',
|
|
'tag' => 'HR Portal'
|
|
],
|
|
];
|
|
|
|
return view('dashboard', compact('user', 'services'));
|
|
}
|
|
}
|