diff --git a/app/Imports/AlternativeInvestmentFundImport.php b/app/Imports/AlternativeInvestmentFundImport.php index c17b38b..ecf1583 100644 --- a/app/Imports/AlternativeInvestmentFundImport.php +++ b/app/Imports/AlternativeInvestmentFundImport.php @@ -68,7 +68,7 @@ class AlternativeInvestmentFundImport implements ToCollection, WithHeadingRow AlternativeInvestmentFund::create([ 'products_id' => $product->id, - 'slug' => $count < 1 ? Str::slug($row['name_of_the_fund']) : Str::slug($row['name_of_the_fund']) . '-' . $count + 1, + 'slug' => Str::slug($row['name_of_the_fund']) . '-' . $count+1, 'fund_name' => $row['name_of_the_fund'], 'registration_number' => $row['registration_no'] ?? null, 'fund_category' => $row['fund_category_iiiiii'],