@extends('layouts.app')

<style>
    body {
        background: linear-gradient(135deg, rgba(23, 162, 184, 0.8), rgba(0, 123, 255, 0.8)), 
            url('https://www.example.com/your-background-image.jpg') no-repeat center center fixed;
        background-size: cover;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        font-family: Arial, sans-serif;
    }
    .card {
        width: 600px;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
    }
    .card-header {
        background: #17a2b8;
        color: white;
        padding: 20px;
        text-align: center;
        font-size: 1.8rem;
        font-weight: bold;
    }
    .card-body {
        padding: 30px;
        text-align: center;
    }
    a {
        text-decoration: none;
        color: #17a2b8;
        font-weight: bold;
        font-size: 1.25rem;
    }
    a:hover {
        color: #117a8b;
    }
    iframe {
        margin-top: 20px;
        border-radius: 8px;
        overflow: hidden;
        border: none;
    }
</style>

@section('content')
<div class="card">
    <div class="card-header">
        Gestion de stock
    </div>
    <div class="card-body">
        @if (session('status'))
            <div class="alert alert-success" role="alert">
                {{ session('status') }}
            </div>
           
        @endif
        <h1>Entrer <a href="{{ route('login') }}">ici</a></h1>
        <h1>
            @if(Auth::check())
                @if(Auth::user()->hasRole('admin'))
                    <a href="{{ route('dashadmin') }}">Accéder au tableau de bord admin</a>
                @else
                    <a href="{{ route('dashboarduser') }}">Accéder au tableau de bord utilisateur</a>
                @endif
            @endif
        </h1>
        <hr>
    </div>
    
</div>
@endsection
