Deploy Laravel rebuild via Coolify
Point Docker and Coolify compose to the Laravel rebuild app so mahasiswa, dosen, and admin flows are served from the new Laravel public entrypoint.
This commit is contained in:
128
rebuild/resources/views/dashboard/dosen.blade.php
Normal file
128
rebuild/resources/views/dashboard/dosen.blade.php
Normal file
@@ -0,0 +1,128 @@
|
||||
<x-dosen.partials.page-shell :title="$title" :sidebar="$sidebar ?? $dashboard['sidebar']" :page-title="$dashboard['pageTitle']" :page-description="$dashboard['welcomeText']" :page-date="$dashboard['dateLabel']" :user="$user">
|
||||
<section>
|
||||
<article class="rounded-xl border border-[#E5E7EB] bg-white p-6 shadow-[0_8px_12px_rgba(13,10,44,0.04)] lg:p-7">
|
||||
<h2 class="text-[22px] font-semibold leading-[30px] text-[#15171A]">{{ $dashboard['welcomeTitle'] }}</h2>
|
||||
<p class="mt-3 max-w-[920px] text-[15px] leading-7 text-[#4B5563]">{{ $dashboard['welcomeText'] }}</p>
|
||||
@if ($dashboard['androidLink'])
|
||||
<div class="mt-5">
|
||||
<a href="{{ $dashboard['androidLink'] }}" target="_blank" rel="noreferrer" class="inline-flex items-center rounded-md bg-[#2D68F8] px-4 py-2.5 text-sm font-medium text-white hover:opacity-90">Unduh Aplikasi SPOTA Android</a>
|
||||
</div>
|
||||
@endif
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section class="grid gap-5 lg:grid-cols-3">
|
||||
<article class="rounded-xl border border-[#F2D38B] bg-[#FFF9E9] p-6 shadow-[0_8px_12px_rgba(13,10,44,0.04)]">
|
||||
<div class="flex items-start gap-3">
|
||||
<div class="mt-0.5 inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-[#FDE7AE] text-[#A16207]">
|
||||
@include('dashboard.partials.icon', ['icon' => 'warning'])
|
||||
</div>
|
||||
<div class="min-w-0 flex-1">
|
||||
<h3 class="text-lg font-semibold text-[#15171A]">{{ $dashboard['announcementNotice']['title'] }}</h3>
|
||||
<p class="mt-2 text-sm leading-7 text-[#5B4A1C]">{{ $dashboard['announcementNotice']['message'] }}</p>
|
||||
<div class="mt-4">
|
||||
<a href="{{ $dashboard['announcementNotice']['primaryHref'] }}" class="inline-flex items-center rounded-md bg-[#EAB308] px-4 py-2.5 text-sm font-medium text-[#15171A] hover:opacity-90">{{ $dashboard['announcementNotice']['primaryLabel'] }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="rounded-xl border border-[#F2D38B] bg-[#FFF9E9] p-6 shadow-[0_8px_12px_rgba(13,10,44,0.04)]">
|
||||
<div class="flex items-start gap-3">
|
||||
<div class="mt-0.5 inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-[#FDE7AE] text-[#A16207]">
|
||||
@include('dashboard.partials.icon', ['icon' => 'warning'])
|
||||
</div>
|
||||
<div class="min-w-0 flex-1">
|
||||
<h3 class="text-lg font-semibold text-[#15171A]">{{ $dashboard['proposalNotice']['title'] }}</h3>
|
||||
<p class="mt-2 text-sm leading-7 text-[#5B4A1C]">{{ $dashboard['proposalNotice']['message'] }}</p>
|
||||
<div class="mt-4 flex flex-wrap gap-3">
|
||||
<a href="{{ $dashboard['proposalNotice']['primaryHref'] }}" class="inline-flex items-center rounded-md bg-[#EAB308] px-4 py-2.5 text-sm font-medium text-[#15171A] hover:opacity-90">{{ $dashboard['proposalNotice']['primaryLabel'] }}</a>
|
||||
@if ($dashboard['proposalNotice']['secondaryLabel'])
|
||||
<a href="{{ $dashboard['proposalNotice']['secondaryHref'] }}" class="inline-flex items-center rounded-md border border-[#E5C35C] bg-white px-4 py-2.5 text-sm font-medium text-[#15171A] hover:bg-[#FFFDF5]">{{ $dashboard['proposalNotice']['secondaryLabel'] }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="rounded-xl border border-[#E5E7EB] bg-white p-6 shadow-[0_8px_12px_rgba(13,10,44,0.04)]">
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<div>
|
||||
<p class="text-sm font-semibold uppercase tracking-[0.16em] text-[#979797]">Agenda Terdekat</p>
|
||||
<h3 class="mt-2 text-xl font-semibold text-[#15171A]">Jadwal Seminar</h3>
|
||||
</div>
|
||||
<span class="rounded-full border border-[#E5E7EB] bg-[#F9FAFB] px-3 py-1 text-xs font-semibold text-[#4B5563]">{{ count($dashboard['upcomingSchedules']) }} data</span>
|
||||
</div>
|
||||
|
||||
@if ($dashboard['upcomingSchedules'] === [])
|
||||
<div class="mt-5 rounded-lg border border-dashed border-[#D1D5DB] bg-[#F9FAFB] p-5 text-sm leading-7 text-[#6B7280]">
|
||||
Belum ada jadwal seminar terdekat yang terpublikasi untuk program studi ini.
|
||||
</div>
|
||||
@else
|
||||
<div class="mt-5 space-y-3">
|
||||
@foreach ($dashboard['upcomingSchedules'] as $schedule)
|
||||
<div class="rounded-lg border border-[#E5E7EB] bg-[#F9FAFB] p-4">
|
||||
<div class="flex flex-wrap items-start justify-between gap-3">
|
||||
<div>
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
<span class="rounded-full px-2.5 py-1 text-[11px] font-semibold {{ $schedule['jenisClass'] }}">{{ $schedule['jenis'] }}</span>
|
||||
<p class="text-sm font-semibold text-[#15171A]">{{ $schedule['nama'] }}</p>
|
||||
<span class="text-sm text-[#6B7280]">{{ $schedule['nim'] }}</span>
|
||||
</div>
|
||||
<p class="mt-2 text-sm leading-6 text-[#4B5563]">{{ $schedule['judul'] }}</p>
|
||||
</div>
|
||||
<div class="text-right text-sm text-[#6B7280]">
|
||||
<p>{{ $schedule['tanggal'] }}</p>
|
||||
<p class="mt-1">{{ $schedule['ruangan'] }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<article class="rounded-xl border border-[#E5E7EB] bg-white p-5 shadow-[0_8px_12px_rgba(13,10,44,0.04)] lg:p-6 xl:p-7">
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<div>
|
||||
<p class="text-sm font-semibold uppercase tracking-[0.16em] text-[#979797]">Kalender</p>
|
||||
<h3 class="mt-2 text-xl font-semibold text-[#15171A]">{{ $dashboard['calendar']['monthLabel'] }}</h3>
|
||||
</div>
|
||||
<span class="rounded-full border border-[#E5E7EB] bg-[#F9FAFB] px-3 py-1 text-xs font-semibold text-[#4B5563]">Publikasi jadwal aktif</span>
|
||||
</div>
|
||||
|
||||
<div class="mt-6 grid grid-cols-7 gap-2.5 text-center text-xs font-semibold uppercase tracking-[0.12em] text-[#9CA3AF]">
|
||||
@foreach ($dashboard['calendar']['weekdays'] as $weekday)
|
||||
<div class="rounded-md bg-[#F9FAFB] px-2 py-2.5">{{ $weekday }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="mt-3 space-y-2.5">
|
||||
@foreach ($dashboard['calendar']['weeks'] as $week)
|
||||
<div class="grid grid-cols-7 gap-2.5">
|
||||
@foreach ($week as $day)
|
||||
<div class="aspect-[0.82/1] min-h-[72px] rounded-lg border px-1.5 py-1.5 {{ $day['isCurrentMonth'] ? 'border-[#E5E7EB] bg-white' : 'border-[#EEF2F7] bg-[#F9FAFB]/80' }} {{ $day['isToday'] ? 'ring-2 ring-[#625DF5]/20' : '' }}">
|
||||
<div class="flex items-center justify-between">
|
||||
<span class="text-[13px] font-semibold {{ $day['isCurrentMonth'] ? 'text-[#15171A]' : 'text-[#9CA3AF]' }}">{{ $day['day'] }}</span>
|
||||
@if ($day['isToday'])
|
||||
<span class="rounded-full bg-[#625DF5] px-1 py-0.5 text-[8px] font-semibold leading-none text-white">Hari ini</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="mt-1.5 space-y-1">
|
||||
@foreach (array_slice($day['events'], 0, 3) as $event)
|
||||
<div class="rounded-md border px-1.5 py-0.5 text-[8px] leading-3 {{ $event['className'] }}">
|
||||
<p class="font-semibold">{{ $event['jenis'] }}</p>
|
||||
<p class="truncate">{{ $event['title'] }}</p>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</article>
|
||||
</section>
|
||||
</x-dosen.partials.page-shell>
|
||||
Reference in New Issue
Block a user