Skip to content

Commit

Permalink
Merge pull request #561 from jitendra-webkul/master
Browse files Browse the repository at this point in the history
Issue #541 fixed
  • Loading branch information
jitendra-webkul authored Oct 20, 2021
2 parents 76d566e + ba773ac commit ac6aca9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,16 @@

<tab name="{{ __('admin::app.leads.details') }}" :selected="true">
@include('admin::common.custom-attributes.edit', [
'customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
'customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
'entity_type' => 'leads',
'quick_add' => 1
]),
'customValidations' => [
'expected_close_date' => [
'date_format:yyyy-MM-dd',
'after:' . \Carbon\Carbon::yesterday()->format('Y-m-d')
],
],
])
</tab>

Expand Down
10 changes: 8 additions & 2 deletions packages/Webkul/Admin/src/Resources/views/leads/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,16 @@

<tab name="{{ __('admin::app.leads.details') }}" :selected="true">
@include('admin::common.custom-attributes.edit', [
'customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
'customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
'entity_type' => 'leads',
]),
'entity' => $lead,
'customValidations' => [
'expected_close_date' => [
'date_format:yyyy-MM-dd',
'after:' . \Carbon\Carbon::yesterday()->format('Y-m-d')
],
],
'entity' => $lead,
])
</tab>

Expand Down

0 comments on commit ac6aca9

Please # to comment.