Initial commit
This commit is contained in:
33
resources/views/emails/issues/assigned.blade.php
Normal file
33
resources/views/emails/issues/assigned.blade.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<x-mail::message>
|
||||
# Issue Assigned to You
|
||||
|
||||
You have been assigned to work on an issue.
|
||||
|
||||
**Issue Details:**
|
||||
- **Issue Number:** {{ $issue->issue_number }}
|
||||
- **Title:** {{ $issue->title }}
|
||||
- **Priority:** {{ ucfirst($issue->priority) }}
|
||||
- **Type:** {{ ucfirst(str_replace('_', ' ', $issue->issue_type)) }}
|
||||
- **Status:** {{ ucfirst(str_replace('_', ' ', $issue->status)) }}
|
||||
@if($issue->due_date)
|
||||
- **Due Date:** {{ $issue->due_date->format('Y-m-d') }} ({{ $issue->due_date->diffForHumans() }})
|
||||
@endif
|
||||
@if($issue->estimated_hours)
|
||||
- **Estimated Hours:** {{ $issue->estimated_hours }}
|
||||
@endif
|
||||
- **Assigned by:** {{ $issue->createdBy->name }}
|
||||
|
||||
@if($issue->description)
|
||||
**Description:**
|
||||
{{ $issue->description }}
|
||||
@endif
|
||||
|
||||
<x-mail::button :url="route('admin.issues.show', $issue)">
|
||||
View Issue
|
||||
</x-mail::button>
|
||||
|
||||
Please review this issue and start working on it at your earliest convenience.
|
||||
|
||||
Thanks,<br>
|
||||
{{ config('app.name') }}
|
||||
</x-mail::message>
|
||||
45
resources/views/emails/issues/closed.blade.php
Normal file
45
resources/views/emails/issues/closed.blade.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<x-mail::message>
|
||||
# Issue Closed - Completed
|
||||
|
||||
An issue you were watching has been closed and marked as complete.
|
||||
|
||||
**Issue Details:**
|
||||
- **Issue Number:** {{ $issue->issue_number }}
|
||||
- **Title:** {{ $issue->title }}
|
||||
- **Type:** {{ ucfirst(str_replace('_', ' ', $issue->issue_type)) }}
|
||||
- **Priority:** {{ ucfirst($issue->priority) }}
|
||||
- **Status:** Closed
|
||||
@if($issue->assignedTo)
|
||||
- **Completed By:** {{ $issue->assignedTo->name }}
|
||||
@endif
|
||||
- **Closed At:** {{ $issue->updated_at->format('Y-m-d H:i') }}
|
||||
|
||||
@if($issue->due_date)
|
||||
**Due Date:** {{ $issue->due_date->format('Y-m-d') }}
|
||||
@if($issue->due_date->isPast())
|
||||
*This issue was completed {{ $issue->updated_at->diffInDays($issue->due_date) }} {{ $issue->updated_at->diffInDays($issue->due_date) === 1 ? 'day' : 'days' }} after the due date.*
|
||||
@else
|
||||
*This issue was completed on time.*
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if($issue->estimated_hours)
|
||||
**Time Tracking:**
|
||||
- Estimated: {{ $issue->estimated_hours }} hours
|
||||
- Actual: {{ $issue->actual_hours }} hours
|
||||
@if($issue->actual_hours > $issue->estimated_hours)
|
||||
- Variance: +{{ round($issue->actual_hours - $issue->estimated_hours, 2) }} hours over estimate
|
||||
@elseif($issue->actual_hours < $issue->estimated_hours)
|
||||
- Variance: {{ round($issue->estimated_hours - $issue->actual_hours, 2) }} hours under estimate
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<x-mail::button :url="route('admin.issues.show', $issue)">
|
||||
View Closed Issue
|
||||
</x-mail::button>
|
||||
|
||||
Thank you for your work on this issue.
|
||||
|
||||
Thanks,<br>
|
||||
{{ config('app.name') }}
|
||||
</x-mail::message>
|
||||
30
resources/views/emails/issues/commented.blade.php
Normal file
30
resources/views/emails/issues/commented.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<x-mail::message>
|
||||
# New Comment on Issue
|
||||
|
||||
A new comment has been added to an issue you're watching.
|
||||
|
||||
**Issue Details:**
|
||||
- **Issue Number:** {{ $issue->issue_number }}
|
||||
- **Title:** {{ $issue->title }}
|
||||
- **Status:** {{ ucfirst(str_replace('_', ' ', $issue->status)) }}
|
||||
- **Priority:** {{ ucfirst($issue->priority) }}
|
||||
|
||||
**Comment by:** {{ $comment->user->name }}
|
||||
**Posted at:** {{ $comment->created_at->format('Y-m-d H:i') }}
|
||||
|
||||
@if(!$comment->is_internal)
|
||||
**Comment:**
|
||||
{{ $comment->comment_text }}
|
||||
@else
|
||||
*An internal comment has been added to this issue.*
|
||||
@endif
|
||||
|
||||
<x-mail::button :url="route('admin.issues.show', $issue)">
|
||||
View Issue & Comment
|
||||
</x-mail::button>
|
||||
|
||||
Stay engaged with the discussion on this issue.
|
||||
|
||||
Thanks,<br>
|
||||
{{ config('app.name') }}
|
||||
</x-mail::message>
|
||||
35
resources/views/emails/issues/due-soon.blade.php
Normal file
35
resources/views/emails/issues/due-soon.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<x-mail::message>
|
||||
# Issue Due Soon - Reminder
|
||||
|
||||
An issue assigned to you is due soon and requires your attention.
|
||||
|
||||
**Issue Details:**
|
||||
- **Issue Number:** {{ $issue->issue_number }}
|
||||
- **Title:** {{ $issue->title }}
|
||||
- **Priority:** {{ ucfirst($issue->priority) }}
|
||||
- **Status:** {{ ucfirst(str_replace('_', ' ', $issue->status)) }}
|
||||
- **Due Date:** {{ $issue->due_date->format('Y-m-d') }}
|
||||
- **Days Remaining:** {{ $daysRemaining }} {{ $daysRemaining === 1 ? 'day' : 'days' }}
|
||||
|
||||
**Progress:** {{ $issue->progress_percentage }}%
|
||||
|
||||
@if($issue->estimated_hours)
|
||||
**Time Tracking:**
|
||||
- Estimated: {{ $issue->estimated_hours }} hours
|
||||
- Actual: {{ $issue->actual_hours }} hours
|
||||
@endif
|
||||
|
||||
@if($issue->description)
|
||||
**Description:**
|
||||
{{ Str::limit($issue->description, 200) }}
|
||||
@endif
|
||||
|
||||
<x-mail::button :url="route('admin.issues.show', $issue)">
|
||||
View Issue
|
||||
</x-mail::button>
|
||||
|
||||
Please ensure this issue is completed before the due date.
|
||||
|
||||
Thanks,<br>
|
||||
{{ config('app.name') }}
|
||||
</x-mail::message>
|
||||
35
resources/views/emails/issues/overdue.blade.php
Normal file
35
resources/views/emails/issues/overdue.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<x-mail::message>
|
||||
# Issue Overdue - Urgent Attention Required
|
||||
|
||||
An issue assigned to you is now overdue and requires immediate attention.
|
||||
|
||||
**Issue Details:**
|
||||
- **Issue Number:** {{ $issue->issue_number }}
|
||||
- **Title:** {{ $issue->title }}
|
||||
- **Priority:** {{ ucfirst($issue->priority) }}
|
||||
- **Status:** {{ ucfirst(str_replace('_', ' ', $issue->status)) }}
|
||||
- **Due Date:** {{ $issue->due_date->format('Y-m-d') }}
|
||||
- **Days Overdue:** {{ $daysOverdue }} {{ $daysOverdue === 1 ? 'day' : 'days' }}
|
||||
|
||||
**Progress:** {{ $issue->progress_percentage }}%
|
||||
|
||||
@if($issue->estimated_hours)
|
||||
**Time Tracking:**
|
||||
- Estimated: {{ $issue->estimated_hours }} hours
|
||||
- Actual: {{ $issue->actual_hours }} hours
|
||||
@endif
|
||||
|
||||
@if($issue->description)
|
||||
**Description:**
|
||||
{{ Str::limit($issue->description, 200) }}
|
||||
@endif
|
||||
|
||||
<x-mail::button :url="route('admin.issues.show', $issue)">
|
||||
View Issue Immediately
|
||||
</x-mail::button>
|
||||
|
||||
This issue is overdue. Please prioritize completing it or update the due date if needed.
|
||||
|
||||
Thanks,<br>
|
||||
{{ config('app.name') }}
|
||||
</x-mail::message>
|
||||
29
resources/views/emails/issues/status-changed.blade.php
Normal file
29
resources/views/emails/issues/status-changed.blade.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<x-mail::message>
|
||||
# Issue Status Changed
|
||||
|
||||
The status of an issue you're watching has been updated.
|
||||
|
||||
**Issue Details:**
|
||||
- **Issue Number:** {{ $issue->issue_number }}
|
||||
- **Title:** {{ $issue->title }}
|
||||
- **Previous Status:** {{ ucfirst(str_replace('_', ' ', $oldStatus)) }}
|
||||
- **New Status:** {{ ucfirst(str_replace('_', ' ', $newStatus)) }}
|
||||
- **Priority:** {{ ucfirst($issue->priority) }}
|
||||
@if($issue->assignedTo)
|
||||
- **Assigned To:** {{ $issue->assignedTo->name }}
|
||||
@endif
|
||||
@if($issue->due_date)
|
||||
- **Due Date:** {{ $issue->due_date->format('Y-m-d') }}
|
||||
@endif
|
||||
|
||||
**Current Progress:** {{ $issue->progress_percentage }}%
|
||||
|
||||
<x-mail::button :url="route('admin.issues.show', $issue)">
|
||||
View Issue
|
||||
</x-mail::button>
|
||||
|
||||
Stay updated on the progress of this issue.
|
||||
|
||||
Thanks,<br>
|
||||
{{ config('app.name') }}
|
||||
</x-mail::message>
|
||||
Reference in New Issue
Block a user