<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>WeatherApp</title>
  <?php echo app('Illuminate\Foundation\Vite')(['resources/sass/app.scss', 'resources/js/app.js']); ?>
</head>
<body>
  <header>
    <nav class="navbar navbar-expand-sm" style="background-color:#004e99;">
      <div class="container-fluid">
        <a class="navbar-brand fs-4 fs-sm-5 fs-md-4 text-wrap text-white fw-bold gap-2 d-flex" href="#">
          <img
            src="<?php echo e(asset('images/logo.png')); ?>"
            alt="Logo"
            width="30"
            height="50"
            class="d-inline-block"
          />
          Regional Meteorological Centre Kolkata
        </a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
        </button>
        
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav ms-auto mb-2 mb-lg-0">
  <li class="nav-item">
    <?php if(Auth::user()->role === 'admin'): ?>
      <a href="<?php echo e(route('admin.dashboard')); ?>" class="nav-link active text-white">Home</a>
    <?php elseif(Auth::user()->role === 'meteorologist'): ?>
      <a href="<?php echo e(route('meteo.dashboard')); ?>" class="nav-link active text-white">Home</a>
    <?php endif; ?>
  </li>

  <li class="nav-item">
   <form method="POST" action="<?php echo e(route('logout')); ?>">
                            <?php echo csrf_field(); ?>

                            <?php if (isset($component)) { $__componentOriginal68cb1971a2b92c9735f83359058f7108 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal68cb1971a2b92c9735f83359058f7108 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dropdown-link','data' => ['href' => route('logout'),'class' => 'nav-link active text-white','onclick' => 'event.preventDefault();
                                                this.closest(\'form\').submit();']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dropdown-link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('logout')),'class' => 'nav-link active text-white','onclick' => 'event.preventDefault();
                                                this.closest(\'form\').submit();']); ?>
                                <?php echo e(__('Log Out')); ?>

                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal68cb1971a2b92c9735f83359058f7108)): ?>
<?php $attributes = $__attributesOriginal68cb1971a2b92c9735f83359058f7108; ?>
<?php unset($__attributesOriginal68cb1971a2b92c9735f83359058f7108); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal68cb1971a2b92c9735f83359058f7108)): ?>
<?php $component = $__componentOriginal68cb1971a2b92c9735f83359058f7108; ?>
<?php unset($__componentOriginal68cb1971a2b92c9735f83359058f7108); ?>
<?php endif; ?>
                        </form>
</li>
  <li class="nav-item date-time">
    <a class="nav-link active text-white" href="#">
      <?php echo e(\Carbon\Carbon::now()->format('d M Y')); ?>

    </a>
  </li>
</ul>
        </div>
      </div>
    </nav>
  </header>
</body>
</html>
<style>
  .navbar-nav .nav-item.date-time {
    margin-left: 15px; /* Adjust as needed */
  }
</style><?php /**PATH D:\xampp\htdocs\RMC_project\resources\views/layouts/header.blade.php ENDPATH**/ ?>