# Blade Views Update Reference

## Files Requiring Update

The following files need to be updated to use `storage_url()` helper instead of `asset('storage/' . $path)`:

### Admin Views
1. `resources/views/admin/products/index.blade.php` - Line 107
2. `resources/views/admin/products/show.blade.php` - Line 42
3. `resources/views/admin/products/edit.blade.php` - Line 179
4. `resources/views/admin/orders/show.blade.php` - Line 46
5. `resources/views/admin/categories/show.blade.php` - Line 176

### Shop Views
6. `resources/views/shop/index.blade.php` - Line 144
7. `resources/views/shop/products.blade.php` - Lines 121, 538
8. `resources/views/shop/product.blade.php` - Lines 22, 41, 183
9. `resources/views/shop/cart.blade.php` - Line 15
10. `resources/views/shop/checkout.blade.php` - Line 192
11. `resources/views/shop/order-success.blade.php` - Line 94

### Order Tracking
12. `resources/views/order/tracking-details.blade.php` - Line 53

## Find & Replace Pattern

**Find:**
```blade
asset('storage/' . $variable)
```

**Replace:**
```blade
storage_url($variable)
```

**Also find:**
```blade
asset("storage/" . $variable)
```

**Replace:**
```blade
storage_url($variable)
```

**And in JavaScript:**
```javascript
'/storage/' + variable
```

**Replace:**
```javascript
Use a Blade variable passed from PHP or call via AJAX
```

## Manual Update Instructions

Since there are 15+ files, you can either:

1. **Manually update each file** using your code editor's find & replace
2. **Use the provided helper** `storage_url()` when creating new views
3. **Keep existing views** - they will work if using local storage

## Important Notes

- The `storage_url()` helper works with BOTH Cloudinary URLs and local paths
- Existing code will continue to work with local storage
- Update views gradually as needed
- No breaking changes if using local storage (default)

## Testing After Update

After updating views, test:
1. Logo and favicon display
2. Product images on shop pages
3. Category images
4. Admin panel product/category listings
5. Order confirmation pages
6. Cart and checkout pages
