finally finished edit profile modal
This commit is contained in:
1 parent
0b5b3dd3ee
commit
a7434e33d7
25 files changed
+7088
-765
No files matched your search
@@ -119,12 +119,16 @@
|
||||
<div class="flex-grow-1 text-white">
|
||||
<h5 class="mb-1 fw-bold">{{ $affiliation->club_name }}</h5>
|
||||
<div class="d-flex gap-3 flex-wrap">
|
||||
<small class="opacity-90">
|
||||
<i class="bi bi-calendar-event me-1"></i>{{ $affiliation->start_date->format('M Y') }} - {{ $isOngoing ? 'Present' : $affiliation->end_date->format('M Y') }}
|
||||
</small>
|
||||
<small class="opacity-90">
|
||||
<i class="bi bi-hourglass-split me-1"></i>{{ $affiliation->formatted_duration }}
|
||||
</small>
|
||||
@if($affiliation->start_date)
|
||||
<small class="opacity-90">
|
||||
<i class="bi bi-calendar-event me-1"></i>{{ $affiliation->start_date->format('M Y') }} - {{ $isOngoing ? 'Present' : ($affiliation->end_date ? $affiliation->end_date->format('M Y') : 'N/A') }}
|
||||
</small>
|
||||
@endif
|
||||
@if($affiliation->formatted_duration)
|
||||
<small class="opacity-90">
|
||||
<i class="bi bi-hourglass-split me-1"></i>{{ $affiliation->formatted_duration }}
|
||||
</small>
|
||||
@endif
|
||||
@if($ageAtStart)
|
||||
<small class="opacity-90">
|
||||
<i class="bi bi-person me-1"></i>Age: {{ $ageAtStart }}{{ $ageAtEnd && $ageAtEnd != $ageAtStart ? " to $ageAtEnd" : '' }}
|
||||
@@ -165,7 +169,7 @@
|
||||
Proficiency: {{ ucfirst($skill->proficiency_level) }}<br>
|
||||
Duration: {{ $skill->formatted_duration }}<br>
|
||||
@if($skill->instructor)Instructor: {{ $skill->instructor->user->full_name ?? 'Unknown' }}<br>@endif
|
||||
Started: {{ $skill->start_date->format('M Y') }}">
|
||||
@if($skill->start_date)Started: {{ $skill->start_date->format('M Y') }}@endif">
|
||||
<i class="bi bi-star-fill me-1"></i>{{ $skill->skill_name }}
|
||||
<span class="badge bg-white text-dark ms-1" style="font-size: 0.65rem;">{{ ucfirst($skill->proficiency_level) }}</span>
|
||||
</span>
|
||||
@@ -432,15 +436,18 @@
|
||||
<label class="text-muted small fw-semibold">Subscription Period</label>
|
||||
<div>
|
||||
<i class="bi bi-calendar-range me-2 text-primary"></i>
|
||||
{{ $subscription->start_date->format('M d, Y') }} - {{ $subscription->end_date->format('M d, Y') }}
|
||||
{{ $subscription->start_date ? $subscription->start_date->format('M d, Y') : 'N/A' }} - {{ $subscription->end_date ? $subscription->end_date->format('M d, Y') : 'N/A' }}
|
||||
</div>
|
||||
@php
|
||||
$duration = $subscription->start_date->diff($subscription->end_date);
|
||||
$durationParts = [];
|
||||
if ($duration->y > 0) $durationParts[] = $duration->y . ' year' . ($duration->y > 1 ? 's' : '');
|
||||
if ($duration->m > 0) $durationParts[] = $duration->m . ' month' . ($duration->m > 1 ? 's' : '');
|
||||
if ($duration->d > 0) $durationParts[] = $duration->d . ' day' . ($duration->d > 1 ? 's' : '');
|
||||
$durationText = implode(' ', $durationParts) ?: 'Same day';
|
||||
$durationText = 'N/A';
|
||||
if ($subscription->start_date && $subscription->end_date) {
|
||||
$duration = $subscription->start_date->diff($subscription->end_date);
|
||||
$durationParts = [];
|
||||
if ($duration->y > 0) $durationParts[] = $duration->y . ' year' . ($duration->y > 1 ? 's' : '');
|
||||
if ($duration->m > 0) $durationParts[] = $duration->m . ' month' . ($duration->m > 1 ? 's' : '');
|
||||
if ($duration->d > 0) $durationParts[] = $duration->d . ' day' . ($duration->d > 1 ? 's' : '');
|
||||
$durationText = implode(' ', $durationParts) ?: 'Same day';
|
||||
}
|
||||
@endphp
|
||||
<small class="text-muted">
|
||||
<i class="bi bi-hourglass-split me-1"></i>Duration: {{ $durationText }}
|
||||
@@ -530,13 +537,16 @@
|
||||
<div class="fw-semibold mb-1">You subscribed to this package {{ $samePackageSubscriptions->count() + 1 }} times:</div>
|
||||
<ul class="mb-0 ps-3">
|
||||
<li class="text-primary fw-semibold">
|
||||
{{ $subscription->start_date->format('M d, Y') }} - {{ $subscription->end_date->format('M d, Y') }} (Current)
|
||||
{{ $subscription->start_date ? $subscription->start_date->format('M d, Y') : 'N/A' }} - {{ $subscription->end_date ? $subscription->end_date->format('M d, Y') : 'N/A' }} (Current)
|
||||
</li>
|
||||
@foreach($samePackageSubscriptions as $otherSub)
|
||||
<li>
|
||||
{{ $otherSub->start_date->format('M d, Y') }} - {{ $otherSub->end_date->format('M d, Y') }}
|
||||
{{ $otherSub->start_date ? $otherSub->start_date->format('M d, Y') : 'N/A' }} - {{ $otherSub->end_date ? $otherSub->end_date->format('M d, Y') : 'N/A' }}
|
||||
@php
|
||||
$gap = $subscription->start_date->diffInMonths($otherSub->start_date);
|
||||
$gap = 0;
|
||||
if ($subscription->start_date && $otherSub->start_date) {
|
||||
$gap = $subscription->start_date->diffInMonths($otherSub->start_date);
|
||||
}
|
||||
@endphp
|
||||
@if($gap > 0)
|
||||
<small class="text-muted">({{ abs($gap) }} months {{ $subscription->start_date->gt($otherSub->start_date) ? 'before' : 'after' }} current)</small>
|
||||
|
||||
Reference in new issue
Block a user