| @@ 1658-1668 (lines=11) @@ | ||
| 1655 | * |
|
| 1656 | * @return type |
|
| 1657 | */ |
|
| 1658 | public function system() |
|
| 1659 | { |
|
| 1660 | $system = System::Where('id', '=', '1')->first(); |
|
| 1661 | if ($system->name == null) { |
|
| 1662 | $system = 'Support Center'; |
|
| 1663 | } else { |
|
| 1664 | $system = $system->name; |
|
| 1665 | } |
|
| 1666 | ||
| 1667 | return $system; |
|
| 1668 | } |
|
| 1669 | ||
| 1670 | /** |
|
| 1671 | * shows trashed tickets. |
|
| @@ 580-594 (lines=15) @@ | ||
| 577 | * |
|
| 578 | * @return type |
|
| 579 | */ |
|
| 580 | public function system() |
|
| 581 | { |
|
| 582 | try { |
|
| 583 | $system = System::Where('id', '=', '1')->first(); |
|
| 584 | if ($system->name == null) { |
|
| 585 | $system = 'Support Center'; |
|
| 586 | } else { |
|
| 587 | $system = $system->name; |
|
| 588 | } |
|
| 589 | ||
| 590 | return $system; |
|
| 591 | } catch (\Exception $e) { |
|
| 592 | return $e->getMessage(); |
|
| 593 | } |
|
| 594 | } |
|
| 595 | ||
| 596 | /** |
|
| 597 | * Create Attachment. |
|