176 changed files with 3900 additions and 1174 deletions
-
12.env.example
-
1.travis.yml
-
4README.id.md
-
4README.md
-
41app/Entities/BaseRepository.php
-
2app/Entities/Payments/PaymentPresenter.php
-
8app/Entities/Projects/File.php
-
60app/Entities/Projects/Issue.php
-
39app/Entities/Projects/IssueStatus.php
-
16app/Entities/Projects/Job.php
-
35app/Entities/Projects/Priority.php
-
36app/Entities/Projects/Project.php
-
22app/Entities/Reports/ReportsRepository.php
-
10app/Entities/Subscriptions/Subscription.php
-
52app/Entities/Subscriptions/SubscriptionsRepository.php
-
18app/Http/Controllers/Api/CustomerController.php
-
18app/Http/Controllers/Api/VendorController.php
-
38app/Http/Controllers/Controller.php
-
83app/Http/Controllers/Issues/CommentController.php
-
26app/Http/Controllers/Issues/OptionController.php
-
10app/Http/Controllers/PaymentsController.php
-
20app/Http/Controllers/Projects/FilesController.php
-
116app/Http/Controllers/Projects/IssueController.php
-
2app/Http/Controllers/Projects/JobsController.php
-
42app/Http/Controllers/Reports/LogFileController.php
-
13app/Http/Controllers/ReportsController.php
-
64app/Http/Controllers/SubscriptionsController.php
-
22app/Http/Controllers/Users/CalendarController.php
-
23app/Http/Middleware/TrustProxies.php
-
52app/Http/Requests/SubscriptionRequest.php
-
29app/Policies/Projects/IssuePolicy.php
-
1app/Providers/AppServiceProvider.php
-
1app/Providers/AuthServiceProvider.php
-
62app/helpers.php
-
18composer.json
-
1807composer.lock
-
52config/hashing.php
-
92config/logging.php
-
21database/factories/IssueFactory.php
-
38database/migrations/2019_03_03_210017_create_issues_table.php
-
1phpunit.xml
-
1resources/lang/de/app.php
-
3resources/lang/de/customer.php
-
57resources/lang/de/issue.php
-
1resources/lang/de/project.php
-
4resources/lang/de/report.php
-
1resources/lang/de/vendor.php
-
1resources/lang/en/app.php
-
3resources/lang/en/customer.php
-
58resources/lang/en/issue.php
-
1resources/lang/en/project.php
-
4resources/lang/en/report.php
-
1resources/lang/en/vendor.php
-
1resources/lang/id/app.php
-
2resources/lang/id/comment.php
-
3resources/lang/id/customer.php
-
57resources/lang/id/issue.php
-
1resources/lang/id/project.php
-
4resources/lang/id/report.php
-
1resources/lang/id/vendor.php
-
2resources/views/auth/app-install.blade.php
-
2resources/views/auth/login.blade.php
-
4resources/views/backups/index.blade.php
-
4resources/views/customers/invoices.blade.php
-
2resources/views/customers/payments.blade.php
-
2resources/views/customers/projects.blade.php
-
6resources/views/customers/subscriptions.blade.php
-
6resources/views/invoice-drafts/partials/draft-confirm.blade.php
-
2resources/views/invoice-drafts/partials/draft-item-list.blade.php
-
4resources/views/invoices/index.blade.php
-
2resources/views/invoices/partials/detail.blade.php
-
2resources/views/invoices/partials/item-list.blade.php
-
16resources/views/invoices/pdf.blade.php
-
8resources/views/invoices/show.blade.php
-
4resources/views/jobs/partials/job-show.blade.php
-
2resources/views/jobs/partials/job-tasks.blade.php
-
8resources/views/jobs/unfinished.blade.php
-
2resources/views/layouts/partials/sidebar.blade.php
-
2resources/views/options/page-1.blade.php
-
8resources/views/pages/home.blade.php
-
49resources/views/payments/edit.blade.php
-
6resources/views/payments/pdf.blade.php
-
64resources/views/projects/files.blade.php
-
4resources/views/projects/index.blade.php
-
4resources/views/projects/invoices.blade.php
-
32resources/views/projects/issues/create.blade.php
-
54resources/views/projects/issues/edit.blade.php
-
67resources/views/projects/issues/index.blade.php
-
54resources/views/projects/issues/partials/comment-section.blade.php
-
65resources/views/projects/issues/show.blade.php
-
10resources/views/projects/jobs/add-from-other-project.blade.php
-
18resources/views/projects/jobs/export-html.blade.php
-
10resources/views/projects/jobs/index.blade.php
-
12resources/views/projects/jobs/progress-export-html.blade.php
-
3resources/views/projects/partials/nav-tabs.blade.php
-
16resources/views/projects/partials/payment-summary.blade.php
-
12resources/views/projects/partials/project-show.blade.php
-
4resources/views/projects/partials/project-stats.blade.php
-
4resources/views/projects/payments.blade.php
-
8resources/views/projects/subscriptions.blade.php
@ -0,0 +1,60 @@ |
|||
<?php |
|||
|
|||
namespace App\Entities\Projects; |
|||
|
|||
use App\Entities\Users\User; |
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Issue extends Model |
|||
{ |
|||
protected $fillable = [ |
|||
'project_id', 'title', 'body', 'priority_id', 'pic_id', 'creator_id', |
|||
]; |
|||
|
|||
public function project() |
|||
{ |
|||
return $this->belongsTo(Project::class); |
|||
} |
|||
|
|||
public function pic() |
|||
{ |
|||
return $this->belongsTo(User::class)->withDefault(['name' => __('issue.no_pic')]); |
|||
} |
|||
|
|||
public function creator() |
|||
{ |
|||
return $this->belongsTo(User::class); |
|||
} |
|||
|
|||
public function getPriorityAttribute() |
|||
{ |
|||
return Priority::getNameById($this->priority_id); |
|||
} |
|||
|
|||
public function getPriorityLabelAttribute() |
|||
{ |
|||
$classColor = Priority::getColorById($this->priority_id); |
|||
|
|||
return '<span class="label label-'.$classColor.'">'.$this->priority.'</span>'; |
|||
} |
|||
|
|||
public function getStatusAttribute() |
|||
{ |
|||
return IssueStatus::getNameById($this->status_id); |
|||
} |
|||
|
|||
public function getStatusLabelAttribute() |
|||
{ |
|||
return '<span class="badge">'.$this->status.'</span>'; |
|||
} |
|||
|
|||
/** |
|||
* Issue has many comments relation. |
|||
* |
|||
* @return \Illuminate\Database\Eloquent\Relations\MorphMany |
|||
*/ |
|||
public function comments() |
|||
{ |
|||
return $this->morphMany(Comment::class, 'commentable'); |
|||
} |
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
<?php |
|||
|
|||
namespace App\Entities\Projects; |
|||
|
|||
use App\Entities\ReferenceAbstract; |
|||
|
|||
class IssueStatus extends ReferenceAbstract |
|||
{ |
|||
protected static $lists = [ |
|||
0 => 'open', |
|||
1 => 'resolved', |
|||
2 => 'closed', |
|||
3 => 'on_hold', |
|||
4 => 'invalid', |
|||
]; |
|||
|
|||
protected static $colors = [ |
|||
0 => 'yellow', |
|||
1 => 'green', |
|||
2 => 'primary', |
|||
3 => 'default', |
|||
4 => 'warning', |
|||
]; |
|||
|
|||
public static function getNameById($singleId) |
|||
{ |
|||
return trans('issue.'.static::getById($singleId)); |
|||
} |
|||
|
|||
public static function toArray() |
|||
{ |
|||
$lists = []; |
|||
foreach (static::$lists as $key => $value) { |
|||
$lists[$key] = trans('issue.'.$value); |
|||
} |
|||
|
|||
return $lists; |
|||
} |
|||
} |
|||
@ -0,0 +1,35 @@ |
|||
<?php |
|||
|
|||
namespace App\Entities\Projects; |
|||
|
|||
use App\Entities\ReferenceAbstract; |
|||
|
|||
class Priority extends ReferenceAbstract |
|||
{ |
|||
protected static $lists = [ |
|||
1 => 'minor', |
|||
2 => 'major', |
|||
3 => 'critical', |
|||
]; |
|||
|
|||
protected static $colors = [ |
|||
1 => 'info', |
|||
2 => 'warning', |
|||
3 => 'danger', |
|||
]; |
|||
|
|||
public static function getNameById($singleId) |
|||
{ |
|||
return trans('issue.'.static::getById($singleId)); |
|||
} |
|||
|
|||
public static function toArray() |
|||
{ |
|||
$lists = []; |
|||
foreach (static::$lists as $key => $value) { |
|||
$lists[$key] = trans('issue.'.$value); |
|||
} |
|||
|
|||
return $lists; |
|||
} |
|||
} |
|||
@ -1,52 +0,0 @@ |
|||
<?php |
|||
|
|||
namespace App\Entities\Subscriptions; |
|||
|
|||
use App\Entities\BaseRepository; |
|||
|
|||
/** |
|||
* Subscriptions Repository Class. |
|||
*/ |
|||
class SubscriptionsRepository extends BaseRepository |
|||
{ |
|||
/** |
|||
* Subscription model. |
|||
* |
|||
* @var \App\Entities\Subscriptions\Subscription |
|||
*/ |
|||
protected $model; |
|||
|
|||
/** |
|||
* Create SubscriptionRepository class instance. |
|||
* |
|||
* @param \App\Entities\Subscriptions\Subscription $model |
|||
*/ |
|||
public function __construct(Subscription $model) |
|||
{ |
|||
parent::__construct($model); |
|||
} |
|||
|
|||
/** |
|||
* Get subscrioption list. |
|||
* |
|||
* @param string $q |
|||
* @param int $customerId |
|||
* @return \Illuminate\Pagination\LengthAwarePaginator |
|||
*/ |
|||
public function getSubscriptions($q, $customerId) |
|||
{ |
|||
return $this->model->orderBy('status_id', 'desc') |
|||
->orderBy('due_date') |
|||
->where(function ($query) use ($q, $customerId) { |
|||
if ($customerId) { |
|||
$query->where('customer_id', $customerId); |
|||
} |
|||
|
|||
if ($q) { |
|||
$query->where('name', 'like', '%'.$q.'%'); |
|||
} |
|||
}) |
|||
->with('customer', 'vendor') |
|||
->paginate($this->_paginate); |
|||
} |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
<?php |
|||
|
|||
namespace App\Http\Controllers\Api; |
|||
|
|||
use App\Entities\Partners\Customer; |
|||
use App\Http\Controllers\Controller; |
|||
|
|||
class CustomerController extends Controller |
|||
{ |
|||
public function index() |
|||
{ |
|||
$customers = Customer::where('is_active', 1) |
|||
->orderBy('name') |
|||
->pluck('name', 'id'); |
|||
|
|||
return response()->json($customers); |
|||
} |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
<?php |
|||
|
|||
namespace App\Http\Controllers\Api; |
|||
|
|||
use App\Entities\Partners\Vendor; |
|||
use App\Http\Controllers\Controller; |
|||
|
|||
class VendorController extends Controller |
|||
{ |
|||
public function index() |
|||
{ |
|||
$vendors = Vendor::where('is_active', 1) |
|||
->orderBy('name') |
|||
->pluck('name', 'id'); |
|||
|
|||
return response()->json($vendors); |
|||
} |
|||
} |
|||
@ -0,0 +1,83 @@ |
|||
<?php |
|||
|
|||
namespace App\Http\Controllers\Issues; |
|||
|
|||
use Illuminate\Http\Request; |
|||
use App\Entities\Projects\Issue; |
|||
use App\Entities\Projects\Comment; |
|||
use App\Http\Controllers\Controller; |
|||
|
|||
class CommentController extends Controller |
|||
{ |
|||
/** |
|||
* Store a new comment in storage. |
|||
* |
|||
* @param \Illuminate\Http\Request $request |
|||
* @param \App\Entities\Projects\Issue $issue |
|||
* @return \Illuminate\Http\RedirectResponse |
|||
*/ |
|||
public function store(Request $request, Issue $issue) |
|||
{ |
|||
$this->authorize('comment-on', $issue); |
|||
|
|||
$newComment = $request->validate([ |
|||
'body' => 'required|string|max:255', |
|||
]); |
|||
|
|||
$issue->comments()->create([ |
|||
'body' => $newComment['body'], |
|||
'creator_id' => auth()->id(), |
|||
]); |
|||
$issue->touch(); |
|||
|
|||
flash(__('comment.created'), 'success'); |
|||
|
|||
return back(); |
|||
} |
|||
|
|||
/** |
|||
* Update the specified comment. |
|||
* |
|||
* @param \Illuminate\Http\Request $request |
|||
* @param \App\Entities\Projects\Issue $issue |
|||
* @param \App\Entities\Projects\Comment $comment |
|||
* @return \Illuminate\Http\Response |
|||
*/ |
|||
public function update(Request $request, Issue $issue, Comment $comment) |
|||
{ |
|||
$this->authorize('update', $comment); |
|||
|
|||
$commentData = $request->validate([ |
|||
'body' => 'required|string|max:255', |
|||
]); |
|||
$comment->update($commentData); |
|||
flash(__('comment.updated'), 'success'); |
|||
|
|||
return redirect()->route('projects.issues.show', [$issue->project, $issue]); |
|||
} |
|||
|
|||
/** |
|||
* Remove the specified comment. |
|||
* |
|||
* @param \App\Entities\Projects\Issue $issue |
|||
* @param \\App\Entities\Projects\Comment $comment |
|||
* @return \Illuminate\Routing\Redirector |
|||
*/ |
|||
public function destroy(Issue $issue, Comment $comment) |
|||
{ |
|||
$this->authorize('delete', $comment); |
|||
|
|||
request()->validate([ |
|||
'comment_id' => 'required|exists:comments,id', |
|||
]); |
|||
|
|||
if (request('comment_id') == $comment->id && $comment->delete()) { |
|||
flash(__('comment.deleted'), 'warning'); |
|||
|
|||
return redirect()->route('projects.issues.show', [$issue->project, $issue]); |
|||
} |
|||
flash(__('comment.undeleted'), 'error'); |
|||
|
|||
return back(); |
|||
} |
|||
} |
|||
@ -0,0 +1,26 @@ |
|||
<?php |
|||
|
|||
namespace App\Http\Controllers\Issues; |
|||
|
|||
use Illuminate\Http\Request; |
|||
use App\Entities\Projects\Issue; |
|||
use App\Http\Controllers\Controller; |
|||
|
|||
class OptionController extends Controller |
|||
{ |
|||
public function update(Request $request, Issue $issue) |
|||
{ |
|||
$issueData = $request->validate([ |
|||
'priority_id' => 'required|in:1,2,3', |
|||
'status_id' => 'required|in:0,1,2,3,4', |
|||
'pic_id' => 'nullable|exists:users,id', |
|||
]); |
|||
$issue->priority_id = $issueData['priority_id']; |
|||
$issue->status_id = $issueData['status_id']; |
|||
$issue->pic_id = $issueData['pic_id']; |
|||
$issue->save(); |
|||
flash(__('issue.updated'), 'success'); |
|||
|
|||
return back(); |
|||
} |
|||
} |
|||
@ -0,0 +1,116 @@ |
|||
<?php |
|||
|
|||
namespace App\Http\Controllers\Projects; |
|||
|
|||
use App\Entities\Users\User; |
|||
use Illuminate\Http\Request; |
|||
use App\Entities\Projects\Issue; |
|||
use App\Entities\Projects\Comment; |
|||
use App\Entities\Projects\Project; |
|||
use App\Entities\Projects\Priority; |
|||
use App\Http\Controllers\Controller; |
|||
use App\Entities\Projects\IssueStatus; |
|||
|
|||
class IssueController extends Controller |
|||
{ |
|||
public function index(Project $project) |
|||
{ |
|||
$issueQuery = $project->issues() |
|||
->orderBy('updated_at', 'desc') |
|||
->with(['pic', 'creator']) |
|||
->withCount(['comments']); |
|||
|
|||
if ($priorityId = request('priority_id')) { |
|||
$issueQuery->where('priority_id', $priorityId); |
|||
} |
|||
|
|||
if ($statusId = request('status_id')) { |
|||
$issueQuery->where('status_id', $priorityId); |
|||
} |
|||
|
|||
$issues = $issueQuery->get(); |
|||
|
|||
return view('projects.issues.index', compact('project', 'issues')); |
|||
} |
|||
|
|||
public function create(Project $project) |
|||
{ |
|||
$users = User::pluck('name', 'id'); |
|||
$priorities = Priority::toArray(); |
|||
|
|||
return view('projects.issues.create', compact('project', 'users', 'priorities')); |
|||
} |
|||
|
|||
public function store(Request $request, Project $project) |
|||
{ |
|||
$issueData = $request->validate([ |
|||
'title' => 'required|max:60', |
|||
'body' => 'required|max:255', |
|||
'priority_id' => 'required|in:1,2,3', |
|||
'pic_id' => 'nullable|exists:users,id', |
|||
]); |
|||
Issue::create([ |
|||
'project_id' => $project->id, |
|||
'creator_id' => auth()->id(), |
|||
'title' => $issueData['title'], |
|||
'body' => $issueData['body'], |
|||
'priority_id' => $issueData['priority_id'], |
|||
'pic_id' => $issueData['pic_id'], |
|||
]); |
|||
flash(__('issue.created'), 'success'); |
|||
|
|||
return redirect()->route('projects.issues.index', $project); |
|||
} |
|||
|
|||
public function show(Project $project, Issue $issue) |
|||
{ |
|||
$editableComment = null; |
|||
$priorities = Priority::toArray(); |
|||
$statuses = IssueStatus::toArray(); |
|||
$users = User::pluck('name', 'id'); |
|||
$comments = $issue->comments()->with('creator')->get(); |
|||
|
|||
if (request('action') == 'comment-edit' && request('comment_id') != null) { |
|||
$editableComment = Comment::find(request('comment_id')); |
|||
} |
|||
|
|||
return view('projects.issues.show', compact( |
|||
'project', 'issue', 'users', 'statuses', 'priorities', 'comments', |
|||
'editableComment' |
|||
)); |
|||
} |
|||
|
|||
public function edit(Project $project, Issue $issue) |
|||
{ |
|||
return view('projects.issues.edit', compact('project', 'issue')); |
|||
} |
|||
|
|||
public function update(Request $request, Project $project, Issue $issue) |
|||
{ |
|||
$issueData = $request->validate([ |
|||
'title' => 'required|max:60', |
|||
'body' => 'required|max:255', |
|||
]); |
|||
$issue->title = $issueData['title']; |
|||
$issue->body = $issueData['body']; |
|||
$issue->save(); |
|||
|
|||
flash(__('issue.updated'), 'success'); |
|||
|
|||
return redirect()->route('projects.issues.show', [$project, $issue]); |
|||
} |
|||
|
|||
public function destroy(Request $request, Project $project, Issue $issue) |
|||
{ |
|||
$request->validate(['issue_id' => 'required']); |
|||
|
|||
if ($request->get('issue_id') == $issue->id && $issue->delete()) { |
|||
flash(__('issue.deleted'), 'warning'); |
|||
|
|||
return redirect()->route('projects.issues.index', $project); |
|||
} |
|||
flash(__('issue.undeleted'), 'danger'); |
|||
|
|||
return back(); |
|||
} |
|||
} |
|||
@ -0,0 +1,42 @@ |
|||
<?php |
|||
|
|||
namespace App\Http\Controllers\Reports; |
|||
|
|||
use App\Http\Controllers\Controller; |
|||
|
|||
class LogFileController extends Controller |
|||
{ |
|||
public function index() |
|||
{ |
|||
if (!file_exists(storage_path('logs'))) { |
|||
return []; |
|||
} |
|||
|
|||
$logFiles = \File::allFiles(storage_path('logs')); |
|||
|
|||
// Sort files by modified time DESC
|
|||
usort($logFiles, function ($a, $b) { |
|||
return -1 * strcmp($a->getMTime(), $b->getMTime()); |
|||
}); |
|||
|
|||
return view('reports.log-files', compact('logFiles')); |
|||
} |
|||
|
|||
public function show($fileName) |
|||
{ |
|||
if (file_exists(storage_path('logs/'.$fileName))) { |
|||
return response()->file(storage_path('logs/'.$fileName), ['content-type' => 'text/plain']); |
|||
} |
|||
|
|||
return 'Invalid file name.'; |
|||
} |
|||
|
|||
public function download($fileName) |
|||
{ |
|||
if (file_exists(storage_path('logs/'.$fileName))) { |
|||
return response()->download(storage_path('logs/'.$fileName), env('APP_ENV').'.'.$fileName); |
|||
} |
|||
|
|||
return 'Invalid file name.'; |
|||
} |
|||
} |
|||
@ -0,0 +1,22 @@ |
|||
<?php |
|||
|
|||
namespace App\Http\Controllers\Users; |
|||
|
|||
use App\Entities\Projects\Project; |
|||
use App\Http\Controllers\Controller; |
|||
|
|||
class CalendarController extends Controller |
|||
{ |
|||
public function index() |
|||
{ |
|||
$user = auth()->user(); |
|||
|
|||
if ($user->hasRole('admin') == false) { |
|||
$projects = $user->projects()->orderBy('projects.name')->pluck('projects.name', 'projects.id'); |
|||
} else { |
|||
$projects = Project::orderBy('name')->pluck('name', 'id'); |
|||
} |
|||
|
|||
return view('users.calendar', compact('projects')); |
|||
} |
|||
} |
|||
@ -0,0 +1,23 @@ |
|||
<?php |
|||
|
|||
namespace App\Http\Middleware; |
|||
|
|||
use Illuminate\Http\Request; |
|||
use Fideloper\Proxy\TrustProxies as Middleware; |
|||
|
|||
class TrustProxies extends Middleware |
|||
{ |
|||
/** |
|||
* The trusted proxies for this application. |
|||
* |
|||
* @var array |
|||
*/ |
|||
protected $proxies; |
|||
|
|||
/** |
|||
* The headers that should be used to detect proxies. |
|||
* |
|||
* @var int |
|||
*/ |
|||
protected $headers = Request::HEADER_X_FORWARDED_ALL; |
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
<?php |
|||
|
|||
namespace App\Policies\Projects; |
|||
|
|||
use App\Entities\Users\User; |
|||
use App\Entities\Projects\Issue; |
|||
use Illuminate\Auth\Access\HandlesAuthorization; |
|||
|
|||
class IssuePolicy |
|||
{ |
|||
use HandlesAuthorization; |
|||
|
|||
public function create(User $user, Issue $issue) |
|||
{ |
|||
return true; |
|||
} |
|||
|
|||
/** |
|||
* Determine whether the user can add comment to an issue. |
|||
* |
|||
* @param \App\Entities\Users\User $user |
|||
* @param \App\Entities\Projects\Issue $issue |
|||
* @return bool |
|||
*/ |
|||
public function commentOn(User $user, Issue $issue) |
|||
{ |
|||
return true; |
|||
} |
|||
} |
|||
1807
composer.lock
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,52 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Default Hash Driver |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| This option controls the default hash driver that will be used to hash |
|||
| passwords for your application. By default, the bcrypt algorithm is |
|||
| used; however, you remain free to modify this option if you wish. |
|||
| |
|||
| Supported: "bcrypt", "argon", "argon2id" |
|||
| |
|||
*/ |
|||
|
|||
'driver' => 'bcrypt', |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Bcrypt Options |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may specify the configuration options that should be used when |
|||
| passwords are hashed using the Bcrypt algorithm. This will allow you |
|||
| to control the amount of time it takes to hash the given password. |
|||
| |
|||
*/ |
|||
|
|||
'bcrypt' => [ |
|||
'rounds' => env('BCRYPT_ROUNDS', 10), |
|||
], |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Argon Options |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may specify the configuration options that should be used when |
|||
| passwords are hashed using the Argon algorithm. These will allow you |
|||
| to control the amount of time it takes to hash the given password. |
|||
| |
|||
*/ |
|||
|
|||
'argon' => [ |
|||
'memory' => 1024, |
|||
'threads' => 2, |
|||
'time' => 2, |
|||
], |
|||
|
|||
]; |
|||
@ -0,0 +1,92 @@ |
|||
<?php |
|||
|
|||
use Monolog\Handler\StreamHandler; |
|||
use Monolog\Handler\SyslogUdpHandler; |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Default Log Channel |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| This option defines the default log channel that gets used when writing |
|||
| messages to the logs. The name specified in this option should match |
|||
| one of the channels defined in the "channels" configuration array. |
|||
| |
|||
*/ |
|||
|
|||
'default' => env('LOG_CHANNEL', 'stack'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Log Channels |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may configure the log channels for your application. Out of |
|||
| the box, Laravel uses the Monolog PHP logging library. This gives |
|||
| you a variety of powerful log handlers / formatters to utilize. |
|||
| |
|||
| Available Drivers: "single", "daily", "slack", "syslog", |
|||
| "errorlog", "monolog", |
|||
| "custom", "stack" |
|||
| |
|||
*/ |
|||
|
|||
'channels' => [ |
|||
'stack' => [ |
|||
'driver' => 'stack', |
|||
'channels' => ['daily'], |
|||
], |
|||
|
|||
'single' => [ |
|||
'driver' => 'single', |
|||
'path' => storage_path('logs/laravel.log'), |
|||
'level' => 'debug', |
|||
], |
|||
|
|||
'daily' => [ |
|||
'driver' => 'daily', |
|||
'path' => storage_path('logs/laravel.log'), |
|||
'level' => 'debug', |
|||
'days' => 30, |
|||
], |
|||
|
|||
'slack' => [ |
|||
'driver' => 'slack', |
|||
'url' => env('LOG_SLACK_WEBHOOK_URL'), |
|||
'username' => 'Laravel Log', |
|||
'emoji' => ':boom:', |
|||
'level' => 'critical', |
|||
], |
|||
|
|||
'papertrail' => [ |
|||
'driver' => 'monolog', |
|||
'level' => 'debug', |
|||
'handler' => SyslogUdpHandler::class, |
|||
'handler_with' => [ |
|||
'host' => env('PAPERTRAIL_URL'), |
|||
'port' => env('PAPERTRAIL_PORT'), |
|||
], |
|||
], |
|||
|
|||
'stderr' => [ |
|||
'driver' => 'monolog', |
|||
'handler' => StreamHandler::class, |
|||
'with' => [ |
|||
'stream' => 'php://stderr', |
|||
], |
|||
], |
|||
|
|||
'syslog' => [ |
|||
'driver' => 'syslog', |
|||
'level' => 'debug', |
|||
], |
|||
|
|||
'errorlog' => [ |
|||
'driver' => 'errorlog', |
|||
'level' => 'debug', |
|||
], |
|||
], |
|||
|
|||
]; |
|||
@ -0,0 +1,21 @@ |
|||
<?php |
|||
|
|||
use App\Entities\Users\User; |
|||
use Faker\Generator as Faker; |
|||
use App\Entities\Projects\Issue; |
|||
use App\Entities\Projects\Project; |
|||
|
|||
$factory->define(Issue::class, function (Faker $faker) { |
|||
return [ |
|||
'project_id' => function () { |
|||
return factory(Project::class)->create()->id; |
|||
}, |
|||
'title' => $faker->words(3, true), |
|||
'body' => $faker->sentences(3, true), |
|||
'creator_id' => function () { |
|||
return factory(User::class)->create()->id; |
|||
}, |
|||
'status_id' => 0, |
|||
'priority_id' => 1, |
|||
]; |
|||
}); |
|||
@ -0,0 +1,38 @@ |
|||
<?php |
|||
|
|||
use Illuminate\Support\Facades\Schema; |
|||
use Illuminate\Database\Schema\Blueprint; |
|||
use Illuminate\Database\Migrations\Migration; |
|||
|
|||
class CreateIssuesTable extends Migration |
|||
{ |
|||
/** |
|||
* Run the migrations. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function up() |
|||
{ |
|||
Schema::create('issues', function (Blueprint $table) { |
|||
$table->increments('id'); |
|||
$table->unsignedInteger('project_id'); |
|||
$table->string('title', 60); |
|||
$table->string('body'); |
|||
$table->unsignedInteger('creator_id'); |
|||
$table->unsignedTinyInteger('priority_id'); |
|||
$table->unsignedInteger('pic_id')->nullable(); |
|||
$table->unsignedTinyInteger('status_id')->default(0); |
|||
$table->timestamps(); |
|||
}); |
|||
} |
|||
|
|||
/** |
|||
* Reverse the migrations. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function down() |
|||
{ |
|||
Schema::dropIfExists('issues'); |
|||
} |
|||
} |
|||
@ -0,0 +1,57 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
// Labels
|
|||
'issue' => 'Issue', |
|||
'list' => 'Issue List', |
|||
'search' => 'Search Issue', |
|||
'search_text' => 'Title ...', |
|||
'all' => 'All Issue', |
|||
'select' => 'Select Issue', |
|||
'detail' => 'Issue Detail', |
|||
'not_found' => 'Issue not found.', |
|||
'empty' => 'Issue is empty.', |
|||
'back_to_show' => 'Back to Issue Detail', |
|||
'back_to_index' => 'Back to Issue List', |
|||
'no_pic' => 'No issue PIC', |
|||
|
|||
// Actions
|
|||
'create' => 'Create new Issue', |
|||
'created' => 'A new Issue has been created.', |
|||
'show' => 'View Issue Detail', |
|||
'edit' => 'Edit Issue', |
|||
'update' => 'Update Issue', |
|||
'updated' => 'Issue data has been updated.', |
|||
'delete' => 'Delete Issue', |
|||
'delete_confirm' => 'Are you sure to delete this Issue?', |
|||
'deleted' => 'Issue has been deleted.', |
|||
'undeleted' => 'Issue not deleted.', |
|||
'undeleteable' => 'Issue data cannot be deleted.', |
|||
'assign_pic' => 'Assign PIC', |
|||
'select_pic' => 'Select a PIC', |
|||
'pic_assigned' => 'Issue PIC has been assigned.', |
|||
'pic_removed' => 'Issue PIC has been removed.', |
|||
|
|||
// Attributes
|
|||
'title' => 'Issue Title', |
|||
'body' => 'Issue Description', |
|||
|
|||
// Relations
|
|||
'project' => 'Issue Project', |
|||
'pic' => 'Issue PIC', |
|||
'creator' => 'Issue Creator', |
|||
|
|||
// Priority
|
|||
'minor' => 'Minor', |
|||
'major' => 'Major', |
|||
'critical' => 'Critical', |
|||
'all_priority' => 'All Priority', |
|||
|
|||
// Statuses
|
|||
'open' => 'Open', |
|||
'resolved' => 'Resolved', |
|||
'closed' => 'Closed', |
|||
'on_hold' => 'On Hold', |
|||
'invalid' => 'Invalid', |
|||
'all_status' => 'All Status', |
|||
]; |
|||
@ -0,0 +1,58 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
// Labels
|
|||
'issue' => 'Issue', |
|||
'list' => 'Issue List', |
|||
'search' => 'Search Issue', |
|||
'search_text' => 'Title ...', |
|||
'all' => 'All Issue', |
|||
'select' => 'Select Issue', |
|||
'detail' => 'Issue Detail', |
|||
'not_found' => 'Issue not found.', |
|||
'empty' => 'Issue is empty.', |
|||
'back_to_show' => 'Back to Issue Detail', |
|||
'back_to_index' => 'Back to Issue List', |
|||
'no_pic' => 'No issue PIC', |
|||
|
|||
// Actions
|
|||
'create' => 'Create new Issue', |
|||
'created' => 'A new Issue has been created.', |
|||
'show' => 'View Issue Detail', |
|||
'edit' => 'Edit Issue', |
|||
'update' => 'Update Issue', |
|||
'updated' => 'Issue data has been updated.', |
|||
'delete' => 'Delete Issue', |
|||
'delete_confirm' => 'Are you sure to delete this Issue?', |
|||
'deleted' => 'Issue has been deleted.', |
|||
'undeleted' => 'Issue not deleted.', |
|||
'undeleteable' => 'Issue data cannot be deleted.', |
|||
'assign_pic' => 'Assign PIC', |
|||
'select_pic' => 'Select a PIC', |
|||
'pic_assigned' => 'Issue PIC has been assigned.', |
|||
'pic_removed' => 'Issue PIC has been removed.', |
|||
|
|||
// Attributes
|
|||
'title' => 'Issue Title', |
|||
'body' => 'Issue Description', |
|||
|
|||
// Relations
|
|||
'project' => 'Issue Project', |
|||
'pic' => 'Issue PIC', |
|||
'creator' => 'Issue Creator', |
|||
|
|||
// Priority
|
|||
'priority' => 'Priority', |
|||
'minor' => 'Minor', |
|||
'major' => 'Major', |
|||
'critical' => 'Critical', |
|||
'all_priority' => 'All Priority', |
|||
|
|||
// Statuses
|
|||
'open' => 'Open', |
|||
'resolved' => 'Resolved', |
|||
'closed' => 'Closed', |
|||
'on_hold' => 'On Hold', |
|||
'invalid' => 'Invalid', |
|||
'all_status' => 'All Status', |
|||
]; |
|||
@ -0,0 +1,57 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
// Labels
|
|||
'issue' => 'Issue', |
|||
'list' => 'Daftar Issue', |
|||
'search' => 'Cari Issue', |
|||
'search_text' => 'Nama ...', |
|||
'all' => 'Semua Issue', |
|||
'select' => 'Pilih Issue', |
|||
'detail' => 'Detail Issue', |
|||
'not_found' => 'Issue tidak ditemukan.', |
|||
'empty' => 'Belum ada Issue', |
|||
'back_to_show' => 'Kembali ke detail Issue', |
|||
'back_to_index' => 'Kembali ke daftar Issue', |
|||
'no_pic' => 'Belum ada PIC', |
|||
|
|||
// Actions
|
|||
'create' => 'Input Issue Baru', |
|||
'created' => 'Input Issue baru telah berhasil.', |
|||
'show' => 'Lihat Detail Issue', |
|||
'edit' => 'Edit Issue', |
|||
'update' => 'Update Issue', |
|||
'updated' => 'Update data Issue telah berhasil.', |
|||
'delete' => 'Hapus Issue', |
|||
'delete_confirm' => 'Anda yakin akan menghapus Issue ini?', |
|||
'deleted' => 'Hapus data Issue telah berhasil.', |
|||
'undeleted' => 'Data Issue gagal dihapus.', |
|||
'undeleteable' => 'Data Issue tidak dapat dihapus.', |
|||
'assign_pic' => 'Tugaskan PIC', |
|||
'select_pic' => 'Pilih PIC', |
|||
'pic_assigned' => 'PIC telah ditugaskan.', |
|||
'pic_removed' => 'PIC telah dihapus.', |
|||
|
|||
// Attributes
|
|||
'title' => 'Judul Issue', |
|||
'body' => 'Deskripsi Issue', |
|||
|
|||
// Relations
|
|||
'project' => 'Project Issue', |
|||
'pic' => 'PIC Issue', |
|||
'creator' => 'Pembuat Issue', |
|||
|
|||
// Priority
|
|||
'minor' => 'Minor', |
|||
'major' => 'Major', |
|||
'critical' => 'Critical', |
|||
'all_priority' => 'Semua Priority', |
|||
|
|||
// Statuses
|
|||
'open' => 'Open', |
|||
'resolved' => 'Selesai', |
|||
'closed' => 'Ditutup', |
|||
'on_hold' => 'Ditunda', |
|||
'invalid' => 'Tidak Valid', |
|||
'all_status' => 'Semua Status', |
|||
]; |
|||
@ -0,0 +1,32 @@ |
|||
@extends('layouts.project') |
|||
|
|||
@section('subtitle', __('issue.create')) |
|||
|
|||
@section('action-buttons') |
|||
@can('create', new App\Entities\Projects\Issue) |
|||
{!! html_link_to_route('projects.issues.create', __('issue.create'), $project, ['class' => 'btn btn-success', 'icon' => 'plus']) !!} |
|||
@endcan |
|||
@endsection |
|||
|
|||
@section('content-project') |
|||
|
|||
<div class="row"> |
|||
<div class="col-sm-6 col-sm-offset-2"> |
|||
{{ Form::open(['route' => ['projects.issues.store', $project]]) }} |
|||
<div class="panel panel-default"> |
|||
<div class="panel-heading"><h3 class="panel-title">{{ __('issue.create') }}</h3></div> |
|||
<div class="panel-body"> |
|||
{!! FormField::text('title', ['label' => __('issue.title')]) !!} |
|||
{!! FormField::textarea('body', ['label' => __('issue.body')]) !!} |
|||
{!! FormField::radios('priority_id', $priorities, ['label' => __('issue.priority'), 'placeholder' => false]) !!} |
|||
{!! FormField::select('pic_id', $users, ['label' => __('issue.pic')]) !!} |
|||
</div> |
|||
<div class="panel-footer"> |
|||
{{ Form::submit(__('issue.create'), ['class' => 'btn btn-success']) }} |
|||
{{ link_to_route('projects.issues.index', __('app.cancel'), $project, ['class' => 'btn btn-default']) }} |
|||
</div> |
|||
</div> |
|||
{{ Form::close() }} |
|||
</div> |
|||
</div> |
|||
@endsection |
|||
@ -0,0 +1,54 @@ |
|||
@extends('layouts.project') |
|||
|
|||
@section('subtitle', __('issue.update')) |
|||
|
|||
@section('action-buttons') |
|||
@can('create', new App\Entities\Projects\Issue) |
|||
{!! html_link_to_route('projects.issues.create', __('issue.create'), $project, ['class' => 'btn btn-success', 'icon' => 'plus']) !!} |
|||
@endcan |
|||
@endsection |
|||
|
|||
@section('content-project') |
|||
<div class="row"> |
|||
<div class="col-sm-6 col-sm-offset-2"> |
|||
@if (request('action') == 'delete' && $issue) |
|||
<div class="panel panel-default"> |
|||
<div class="panel-heading"><h3 class="panel-title">{{ __('issue.delete') }}</h3></div> |
|||
<div class="panel-body"> |
|||
<label class="control-label text-primary">{{ __('issue.title') }}</label> |
|||
<p>{{ $issue->title }}</p> |
|||
<label class="control-label text-primary">{{ __('issue.body') }}</label> |
|||
<p>{{ $issue->body }}</p> |
|||
{!! $errors->first('issue_id', '<span class="form-error small">:message</span>') !!} |
|||
</div> |
|||
<hr style="margin:0"> |
|||
<div class="panel-body text-danger">{{ __('issue.delete_confirm') }}</div> |
|||
<div class="panel-footer"> |
|||
{!! FormField::delete( |
|||
['route' => ['projects.issues.destroy', $project, $issue]], |
|||
__('app.delete_confirm_button'), |
|||
['id' => 'delete-issue-'.$issue->id, 'class' => 'btn btn-danger'], |
|||
['issue_id' => $issue->id] |
|||
) !!} |
|||
{{ link_to_route('projects.issues.edit', __('app.cancel'), [$project, $issue], ['class' => 'btn btn-default']) }} |
|||
</div> |
|||
</div> |
|||
@else |
|||
{{ Form::model($issue, ['route' => ['projects.issues.update', $project, $issue], 'method' => 'patch']) }} |
|||
<div class="panel panel-default"> |
|||
<div class="panel-heading"><h3 class="panel-title">{{ __('issue.update') }}</h3></div> |
|||
<div class="panel-body"> |
|||
{!! FormField::text('title', ['label' => __('issue.title')]) !!} |
|||
{!! FormField::textarea('body', ['label' => __('issue.body')]) !!} |
|||
</div> |
|||
<div class="panel-footer"> |
|||
{{ Form::submit(__('issue.update'), ['class' => 'btn btn-success']) }} |
|||
{{ link_to_route('projects.issues.show', __('app.cancel'), [$project, $issue], ['class' => 'btn btn-default']) }} |
|||
{{ link_to_route('projects.issues.edit', __('app.delete'), [$project, $issue, 'action' => 'delete'], ['id' => 'delete-issue-'.$issue->id, 'class' => 'btn btn-danger pull-right']) }} |
|||
</div> |
|||
</div> |
|||
{{ Form::close() }} |
|||
@endif |
|||
</div> |
|||
</div> |
|||
@endsection |
|||
@ -0,0 +1,67 @@ |
|||
@inject('priorities', 'App\Entities\Projects\Priority') |
|||
@inject('issueStatuses', 'App\Entities\Projects\IssueStatus') |
|||
@extends('layouts.project') |
|||
|
|||
@section('subtitle', __('project.issues')) |
|||
|
|||
@section('action-buttons') |
|||
{{ Form::open(['method' => 'get', 'class' => 'form-inline', 'style' => 'display:inline']) }} |
|||
{!! FormField::select('priority_id', $priorities::toArray(), ['label' => false, 'placeholder' => __('issue.all_priority'), 'value' => request('priority_id')]) !!} |
|||
{!! FormField::select('status_id', $issueStatuses::toArray(), ['label' => false, 'placeholder' => __('issue.all_status'), 'value' => request('status_id')]) !!} |
|||
{{ Form::submit(__('app.filter'), ['class' => 'btn btn-info']) }} |
|||
@if (request(['priority_id', 'status_id'])) |
|||
{{ link_to_route('projects.issues.index', __('app.reset'), $project, ['class' => 'btn btn-default']) }} |
|||
@endif |
|||
{{ Form::close() }} |
|||
@can('create', new App\Entities\Projects\Issue) |
|||
{!! html_link_to_route('projects.issues.create', __('issue.create'), $project, ['class' => 'btn btn-success', 'icon' => 'plus']) !!} |
|||
@endcan |
|||
@endsection |
|||
|
|||
@section('content-project') |
|||
<div id="project-issues" class="panel panel-default table-responsive"> |
|||
<div class="panel-heading"> |
|||
<h3 class="panel-title">{{ __('project.issues') }}</h3> |
|||
</div> |
|||
<table class="table table-condensed table-striped"> |
|||
<thead> |
|||
<th>{{ __('app.table_no') }}</th> |
|||
<th>{{ __('issue.title') }}</th> |
|||
<th>{{ __('issue.priority') }}</th> |
|||
<th>{{ __('app.status') }}</th> |
|||
<th class="text-center">{{ __('comment.comment') }}</th> |
|||
<th>{{ __('issue.pic') }}</th> |
|||
<th>{{ __('issue.creator') }}</th> |
|||
<th>{{ __('app.last_update') }}</th> |
|||
<th class="text-center">{{ __('app.action') }}</th> |
|||
</thead> |
|||
<tbody> |
|||
@forelse($issues as $key => $issue) |
|||
@php |
|||
$no = 1 + $key; |
|||
@endphp |
|||
<tr id="{{ $issue->id }}"> |
|||
<td>{{ $no }}</td> |
|||
<td>{{ $issue->title }}</td> |
|||
<td>{!! $issue->priority_label !!}</td> |
|||
<td>{!! $issue->status_label !!}</td> |
|||
<td class="text-center">{{ $issue->comments_count }}</td> |
|||
<td>{{ $issue->pic->name }}</td> |
|||
<td>{{ $issue->creator->name }}</td> |
|||
<td>{{ $issue->updated_at->diffForHumans() }}</td> |
|||
<td class="text-center"> |
|||
{{ link_to_route( |
|||
'projects.issues.show', |
|||
__('app.show'), |
|||
[$project, $issue], |
|||
['title' => __('issue.show')] |
|||
) }} |
|||
</td> |
|||
</tr> |
|||
@empty |
|||
<tr><td colspan="9">{{ __('issue.not_found') }}</td></tr> |
|||
@endforelse |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
@endsection |
|||
@ -0,0 +1,54 @@ |
|||
@foreach($comments as $comment) |
|||
<div class="alert alert-warning"> |
|||
<legend style="font-size: 14px;margin-bottom: 10px;"> |
|||
<span class="label label-default pull-right">{{ $comment->time_display }}</span> |
|||
<strong>{{ $comment->creator->name }}</strong> |
|||
</legend> |
|||
<div class="pull-right"> |
|||
@can('update', $comment) |
|||
{{ link_to_route('projects.issues.show', __('app.edit'), [$project, $issue, 'action' => 'comment-edit', 'comment_id' => $comment->id], ['id' => 'edit-comment-'.$comment->id, 'class' => 'small', 'title' => __('comment.edit')]) }} |
|||
@endcan |
|||
@can('delete', $comment) |
|||
{!! FormField::delete( |
|||
['route' => ['issues.comments.destroy', $issue, $comment], 'class' => ''], |
|||
'×', |
|||
['class' => 'btn-link', 'id' => 'delete-comment-'.$comment->id], |
|||
['comment_id' => $comment->id] |
|||
) !!} |
|||
@endcan |
|||
</div> |
|||
{!! nl2br($comment->body) !!} |
|||
</div> |
|||
@endforeach |
|||
|
|||
@can('comment-on', $issue) |
|||
{{ Form::open(['route' => ['issues.comments.store', $issue]]) }} |
|||
{!! FormField::textarea('body', ['required' => true, 'label' => false, 'placeholder' => __('comment.create_text')]) !!} |
|||
{{ Form::submit(__('comment.create'), ['class' => 'btn btn-success pull-right']) }} |
|||
{{ Form::close() }} |
|||
<div class="clearfix"></div><br> |
|||
@endcan |
|||
|
|||
@if (Request::get('action') == 'comment-edit' && $editableComment) |
|||
<div id="commentModal" class="modal" role="dialog"> |
|||
<div class="modal-dialog"> |
|||
<!-- Modal content--> |
|||
<div class="modal-content"> |
|||
<div class="modal-header"> |
|||
{{ link_to_route('projects.issues.show', '×', [$issue->project, $issue], ['class' => 'close']) }} |
|||
<h4 class="modal-title">{{ __('comment.edit') }}</h4> |
|||
</div> |
|||
{!! Form::model($editableComment, ['route' => ['issues.comments.update', $issue, $editableComment],'method' => 'patch']) !!} |
|||
<div class="modal-body"> |
|||
{!! FormField::textarea('body', ['label' => __('comment.body')]) !!} |
|||
{{ Form::hidden('page', request('page')) }} |
|||
</div> |
|||
<div class="modal-footer"> |
|||
{!! Form::submit(__('comment.update'), ['class' => 'btn btn-success']) !!} |
|||
{{ link_to_route('projects.issues.show', __('app.cancel'), [$project->issue, $issue] + request(['page']), ['class' => 'btn btn-default']) }} |
|||
</div> |
|||
{!! Form::close() !!} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
@endif |
|||
@ -0,0 +1,65 @@ |
|||
@extends('layouts.project') |
|||
|
|||
@section('subtitle', __('issue.detail')) |
|||
|
|||
@section('action-buttons') |
|||
@can('create', new App\Entities\Projects\Issue) |
|||
{!! html_link_to_route('projects.issues.create', __('issue.create'), $project, ['class' => 'btn btn-success', 'icon' => 'plus']) !!} |
|||
@endcan |
|||
@endsection |
|||
|
|||
@section('content-project') |
|||
<div class="row"> |
|||
<div class="col-md-6"> |
|||
<div class="panel panel-default"> |
|||
<div class="panel-heading"> |
|||
<h3 class="panel-title"> |
|||
<div class="pull-right">{!! $issue->status_label !!}</div> |
|||
{{ __('issue.detail') }} |
|||
</h3> |
|||
</div> |
|||
<table class="table table-condensed"> |
|||
<tbody> |
|||
<tr><th class="col-md-4">{{ __('issue.title') }}</th><td class="col-md-8">{{ $issue->title }}</td></tr> |
|||
<tr><th>{{ __('issue.body') }}</th><td>{{ $issue->body }}</td></tr> |
|||
<tr><th>{{ __('issue.priority') }}</th><td>{!! $issue->priority_label !!}</td></tr> |
|||
<tr><th>{{ __('issue.pic') }}</th><td>{{ $issue->pic->name }}</td></tr> |
|||
<tr><th>{{ __('app.created_by') }}</th><td>{{ $issue->creator->name }}</td></tr> |
|||
</tbody> |
|||
</table> |
|||
<div class="panel-footer"> |
|||
{{ link_to_route('projects.issues.edit', __('issue.edit'), [$project, $issue], ['id' => 'edit-issue-'.$issue->id, 'class' => 'btn btn-warning']) }} |
|||
{{ link_to_route('projects.issues.index', __('issue.back_to_index'), [$project], ['class' => 'btn btn-default pull-right']) }} |
|||
</div> |
|||
</div> |
|||
<hr> |
|||
@include('projects.issues.partials.comment-section') |
|||
</div> |
|||
<div class="col-md-6"> |
|||
{{ Form::model($issue, ['route' => ['issues.options.update', $issue], 'method' => 'patch']) }} |
|||
<div class="panel panel-default"> |
|||
<div class="panel-heading"><h3 class="panel-title">{{ __('app.action') }}</h3></div> |
|||
<div class="panel-body"> |
|||
{!! FormField::radios('priority_id', $priorities, ['label' => __('issue.priority')]) !!} |
|||
{!! FormField::radios('status_id', $statuses, ['label' => __('app.status')]) !!} |
|||
{!! FormField::select('pic_id', $users, ['label' => __('issue.assign_pic'), 'placeholder' => __('issue.select_pic')]) !!} |
|||
</div> |
|||
<div class="panel-footer"> |
|||
{{ Form::submit(__('issue.update'), ['class' => 'btn btn-success']) }} |
|||
</div> |
|||
</div> |
|||
{{ Form::close() }} |
|||
</div> |
|||
</div> |
|||
@endsection |
|||
|
|||
@section('script') |
|||
<script> |
|||
(function () { |
|||
$('#commentModal').modal({ |
|||
show: true, |
|||
backdrop: 'static', |
|||
}); |
|||
})(); |
|||
</script> |
|||
@endsection |
|||
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue