Skip to content

Commit

Permalink
Merge pull request #677 from jitendra-webkul/master
Browse files Browse the repository at this point in the history
Isue #672 fixed
  • Loading branch information
jitendra-webkul authored Nov 11, 2021
2 parents 85330d1 + 04b6b0e commit f6b7be9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/Webkul/Admin/src/DataGrids/Quote/QuoteDataGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Webkul\Admin\DataGrids\Quote;

use Illuminate\Support\Facades\DB;
use Carbon\Carbon;
use Webkul\Admin\Traits\ProvideDropdownOptions;
use Webkul\UI\DataGrid\DataGrid;
use Webkul\User\Repositories\UserRepository;
Expand Down Expand Up @@ -41,7 +42,7 @@ public function init()
$this->setRowProperties([
'backgroundColor' => '#ffd0d6',
'condition' => function ($row) {
if ($row->expired_at < \Carbon\Carbon::now()) {
if (Carbon::createFromFormat('Y-m-d H:i:s', $row->expired_at)->endOfDay() < Carbon::now()) {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public function __construct(DashboardHelper $dashboardHelper)
* @return \Illuminate\View\View
*/
public function index()
{
$cards = $this->dashboardHelper->getCards();
{$cards = $this->dashboardHelper->getCards();

if ($dateRange = request('date-range')) {
$dateRange = explode(",", $dateRange);
Expand Down

0 comments on commit f6b7be9

Please sign in to comment.