http://offline_laravel.test/admin123/rss2

echo url()->current();
echo '<pre style="color: red">'; print_r('xxx'); echo '</pre>';
// Get the current URL including the query string...
echo url()->full();
echo '<pre style="color: red">'; print_r('xxx'); echo '</pre>';
// Get the full URL for the previous request...
echo url()->previous();

user -> contact

```php
array (
    'product_id' => '22',
    'attribute_id' => 1,
    'value' => 'vàng',
)


array (
    0 =>
        array (
        'id' => 45,
        'product_id' => 22,
        'attribute_id' => 1,
        'value' => 'đỏ',
        'status' => NULL,
        'created' => '2022-11-10 00:00:00',
        'created_by' => 'hailan',
        'modified' => NULL,
        'modified_by' => NULL,
        ),
    1 =>
        array (
        'id' => 44,
        'product_id' => 22,
        'attribute_id' => 1,
        'value' => 'vàng',
        'status' => NULL,
        'created' => '2022-11-10 00:00:00',
        'created_by' => 'hailan',
        'modified' => NULL,
        'modified_by' => NULL,
        )
)
```

```php
array (
    3 => 'inox,gỗ',
    1 => 'đỏ,vàng',
);
$new = [
    0 => ["attribute_id" => 3, "value" => "inox", "attribute_id_value" => ''],
    1 => ["attribute_id" => 3, "value" => "gỗ", "attribute_id_value" => ''],
    3 => ["attribute_id" => 1, "value" => "vàng", "attribute_id_value" => ''],
]
$new = [
    0 => ["attribute_id" => 3, "value" => "inox", "attribute_id_value" => ''],
    1 => ["attribute_id" => 3, "value" => "gỗ", "attribute_id_value" => ''],
    2 => ["attribute_id" => 1, "value" => "đỏ", "attribute_id_value" => ''],
    3 => ["attribute_id" => 1, "value" => "vàng", "attribute_id_value" => ''],
]
array (
    0 =>
        array (
            'id' => 45,
            'attribute_id' => 1,
            'value' => 'đỏ',
        ),
    1 =>
        array (
            'id' => 44,
            'attribute_id' => 1,
            'value' => 'vàng',
        ),
    2 =>
        array (
            'id' => 43,
            'attribute_id' => 3,
            'value' => 'inox',
        ),
    3 =>
        array (
            'id' => 42,
            'attribute_id' => 3,
            'value' => 'gỗ',
        ),
)
```
## form.blade.php
- add value for id attribute-row
  + collect list id of attribute-row
  + find max id value
## ProductController.php
- get order array
- set order for each item
## Delete button
- [x] route
- button delete
 + delete-product-attribute/{id}
- controller
- model
## View detail
- Khung html
  
- Get data
- Set data
- Button function
---
xoaóa thuoc tinh khi them

moi[vang trang do]
cu[vang trang do tim]

dif(cu,moi)


---
cart[
    cart_item[
        product_id
        product_attribute_id (color) -> color_id
        product_attribute_id (material) -> material_id
        product_name
        product_price
    ]
    cart_item[

    ]
]

{
    "key": "value",
    "key": {
        "child_key": "child_value",
        "child_key": "child_value"
    }
}

