@php $mpCategory = \App\Models\ProductCategory::pluck('category_name', 'id')->toArray(); $mpBrands = \App\Models\Brand::where('status', 1)->pluck('brand_name', 'id')->toArray(); $mpUnits = \App\Models\Unit::where('status', 1)->get()->mapWithKeys(function ($item) { return [strtolower($item->name) => $item->name]; })->toArray(); $mpTaxGroup = \App\Models\TaxGroup::pluck('tax_slab', 'id') ->map(function ($taxSlab) { if ($taxSlab === 'None' || $taxSlab === 'Exempt') { return $taxSlab; } return 'GST@' . $taxSlab . '%'; }) ->toArray(); @endphp @include('common.modal.category') @include('common.modal.brand') @include('common.modal.unit')