fixed gg-theme ajax price

This commit is contained in:
vedatakd 2021-04-06 15:08:50 +03:00
parent 61751cc208
commit 75b07c8abf

View File

@ -8,6 +8,7 @@ use Illuminate\Support\Facades\DB;
use Intervention\Image\Facades\Image;
use Visiosoft\AdvsModule\Adv\Contract\AdvRepositoryInterface;
use Anomaly\Streams\Platform\Entry\EntryRepository;
use Visiosoft\AdvsModule\Support\Command\Currency;
use Visiosoft\CatsModule\Category\CategoryModel;
use Visiosoft\LocationModule\City\CityModel;
use Visiosoft\LocationModule\Country\CountryModel;
@ -419,6 +420,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
foreach ($ads as $index => $ad) {
$ads[$index]->detail_url = $this->model->getAdvDetailLinkByModel($ad, 'list');
$ads[$index]->currency_price = app(Currency::class)->format($ad->price,$ad->currency);
$ads[$index] = $this->model->AddAdsDefaultCoverImage($ad);
}