#40 - generate pdf for vacation request (#46)

* #40 - wip

* #40 - generate pdf

* #40 - fix

* Update resources/js/Pages/VacationRequest/Show.vue

Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com>

* #40 - fix

Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>
Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com>
This commit is contained in:
Adrian Hopek
2022-02-04 10:57:11 +01:00
committed by GitHub
parent 067b343f24
commit 41c769d4ab
22 changed files with 544 additions and 10 deletions

View File

@@ -22,6 +22,7 @@ use Toby\Domain\Enums\Role;
* @property string $last_name
* @property string $email
* @property string $avatar
* @property string $position
* @property Role $role
* @property EmploymentForm $employment_form
* @property Carbon $employment_date

View File

@@ -23,7 +23,10 @@ use Toby\Domain\Enums\VacationType;
* @property Carbon $to
* @property string $comment
* @property User $user
* @property YearPeriod $yearPeriod
* @property Collection $activities
* @property Carbon $created_at
* @property Carbon $updated_at
*/
class VacationRequest extends Model
{
@@ -43,6 +46,11 @@ class VacationRequest extends Model
return $this->belongsTo(User::class);
}
public function yearPeriod(): BelongsTo
{
return $this->belongsTo(YearPeriod::class);
}
public function activities(): HasMany
{
return $this->hasMany(VacationRequestActivity::class);