diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bea433 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.DS_Store diff --git a/assets/uploads/catalog/avored-bunk-bed.jpg b/assets/uploads/catalog/avored-bunk-bed.jpg new file mode 100644 index 0000000..a20d83d Binary files /dev/null and b/assets/uploads/catalog/avored-bunk-bed.jpg differ diff --git a/assets/uploads/catalog/avored-double-bed.jpg b/assets/uploads/catalog/avored-double-bed.jpg new file mode 100644 index 0000000..13a285c Binary files /dev/null and b/assets/uploads/catalog/avored-double-bed.jpg differ diff --git a/assets/uploads/catalog/avored-queen-bed.jpg b/assets/uploads/catalog/avored-queen-bed.jpg new file mode 100644 index 0000000..6920a09 Binary files /dev/null and b/assets/uploads/catalog/avored-queen-bed.jpg differ diff --git a/assets/uploads/catalog/avored-single-bed.jpg b/assets/uploads/catalog/avored-single-bed.jpg new file mode 100644 index 0000000..ba85c1e Binary files /dev/null and b/assets/uploads/catalog/avored-single-bed.jpg differ diff --git a/assets/uploads/catalog/avored-sofa-set.jpg b/assets/uploads/catalog/avored-sofa-set.jpg new file mode 100644 index 0000000..cf120e6 Binary files /dev/null and b/assets/uploads/catalog/avored-sofa-set.jpg differ diff --git a/assets/uploads/catalog/blue-attribute.png b/assets/uploads/catalog/blue-attribute.png new file mode 100644 index 0000000..79842ca Binary files /dev/null and b/assets/uploads/catalog/blue-attribute.png differ diff --git a/assets/uploads/catalog/images/0/y/4/large-tsf02crsa.jpg b/assets/uploads/catalog/images/0/y/4/large-tsf02crsa.jpg deleted file mode 100644 index cd8c087..0000000 Binary files a/assets/uploads/catalog/images/0/y/4/large-tsf02crsa.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/0/y/4/med-tsf02crsa.jpg b/assets/uploads/catalog/images/0/y/4/med-tsf02crsa.jpg deleted file mode 100644 index a7c7283..0000000 Binary files a/assets/uploads/catalog/images/0/y/4/med-tsf02crsa.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/0/y/4/small-tsf02crsa.jpg b/assets/uploads/catalog/images/0/y/4/small-tsf02crsa.jpg deleted file mode 100644 index 18a4a6d..0000000 Binary files a/assets/uploads/catalog/images/0/y/4/small-tsf02crsa.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/0/y/4/tsf02crsa.jpg b/assets/uploads/catalog/images/0/y/4/tsf02crsa.jpg deleted file mode 100644 index e5da912..0000000 Binary files a/assets/uploads/catalog/images/0/y/4/tsf02crsa.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/1/k/0/-Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg b/assets/uploads/catalog/images/1/k/0/-Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg deleted file mode 100644 index ef38e1a..0000000 Binary files a/assets/uploads/catalog/images/1/k/0/-Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/1/k/0/large--Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg b/assets/uploads/catalog/images/1/k/0/large--Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg deleted file mode 100644 index a726929..0000000 Binary files a/assets/uploads/catalog/images/1/k/0/large--Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/1/k/0/med--Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg b/assets/uploads/catalog/images/1/k/0/med--Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg deleted file mode 100644 index 17b573d..0000000 Binary files a/assets/uploads/catalog/images/1/k/0/med--Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/1/k/0/small--Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg b/assets/uploads/catalog/images/1/k/0/small--Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg deleted file mode 100644 index 80e99c3..0000000 Binary files a/assets/uploads/catalog/images/1/k/0/small--Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/4/5/n/il_570xN.262261571.jpg b/assets/uploads/catalog/images/4/5/n/il_570xN.262261571.jpg deleted file mode 100644 index ad16925..0000000 Binary files a/assets/uploads/catalog/images/4/5/n/il_570xN.262261571.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/4/5/n/large-il_570xN.262261571.jpg b/assets/uploads/catalog/images/4/5/n/large-il_570xN.262261571.jpg deleted file mode 100644 index 94e9fff..0000000 Binary files a/assets/uploads/catalog/images/4/5/n/large-il_570xN.262261571.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/4/5/n/med-il_570xN.262261571.jpg b/assets/uploads/catalog/images/4/5/n/med-il_570xN.262261571.jpg deleted file mode 100644 index b28c32e..0000000 Binary files a/assets/uploads/catalog/images/4/5/n/med-il_570xN.262261571.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/4/5/n/small-il_570xN.262261571.jpg b/assets/uploads/catalog/images/4/5/n/small-il_570xN.262261571.jpg deleted file mode 100644 index 62db232..0000000 Binary files a/assets/uploads/catalog/images/4/5/n/small-il_570xN.262261571.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/d/0/c/classic-tv-stand.jpg b/assets/uploads/catalog/images/d/0/c/classic-tv-stand.jpg deleted file mode 100644 index 2d40ae1..0000000 Binary files a/assets/uploads/catalog/images/d/0/c/classic-tv-stand.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/d/0/c/large-classic-tv-stand.jpg b/assets/uploads/catalog/images/d/0/c/large-classic-tv-stand.jpg deleted file mode 100644 index a255974..0000000 Binary files a/assets/uploads/catalog/images/d/0/c/large-classic-tv-stand.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/d/0/c/med-classic-tv-stand.jpg b/assets/uploads/catalog/images/d/0/c/med-classic-tv-stand.jpg deleted file mode 100644 index 346af73..0000000 Binary files a/assets/uploads/catalog/images/d/0/c/med-classic-tv-stand.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/d/0/c/small-classic-tv-stand.jpg b/assets/uploads/catalog/images/d/0/c/small-classic-tv-stand.jpg deleted file mode 100644 index 11c5d39..0000000 Binary files a/assets/uploads/catalog/images/d/0/c/small-classic-tv-stand.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/f/h/2/flower-pot.jpg b/assets/uploads/catalog/images/f/h/2/flower-pot.jpg deleted file mode 100644 index 613210b..0000000 Binary files a/assets/uploads/catalog/images/f/h/2/flower-pot.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/f/h/2/large-flower-pot.jpg b/assets/uploads/catalog/images/f/h/2/large-flower-pot.jpg deleted file mode 100644 index e216016..0000000 Binary files a/assets/uploads/catalog/images/f/h/2/large-flower-pot.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/f/h/2/med-flower-pot.jpg b/assets/uploads/catalog/images/f/h/2/med-flower-pot.jpg deleted file mode 100644 index 4f30d0d..0000000 Binary files a/assets/uploads/catalog/images/f/h/2/med-flower-pot.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/f/h/2/small-flower-pot.jpg b/assets/uploads/catalog/images/f/h/2/small-flower-pot.jpg deleted file mode 100644 index ce94d22..0000000 Binary files a/assets/uploads/catalog/images/f/h/2/small-flower-pot.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/l/i/k/coffee-maker-20.jpg b/assets/uploads/catalog/images/l/i/k/coffee-maker-20.jpg deleted file mode 100644 index 7abf766..0000000 Binary files a/assets/uploads/catalog/images/l/i/k/coffee-maker-20.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/l/i/k/large-coffee-maker-20.jpg b/assets/uploads/catalog/images/l/i/k/large-coffee-maker-20.jpg deleted file mode 100644 index 46c14d4..0000000 Binary files a/assets/uploads/catalog/images/l/i/k/large-coffee-maker-20.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/l/i/k/med-coffee-maker-20.jpg b/assets/uploads/catalog/images/l/i/k/med-coffee-maker-20.jpg deleted file mode 100644 index 9e488bd..0000000 Binary files a/assets/uploads/catalog/images/l/i/k/med-coffee-maker-20.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/l/i/k/small-coffee-maker-20.jpg b/assets/uploads/catalog/images/l/i/k/small-coffee-maker-20.jpg deleted file mode 100644 index 3c317d2..0000000 Binary files a/assets/uploads/catalog/images/l/i/k/small-coffee-maker-20.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/m/2/z/b594a5c88e527b467508aa9fa3b01228.jpg b/assets/uploads/catalog/images/m/2/z/b594a5c88e527b467508aa9fa3b01228.jpg deleted file mode 100644 index ccb3150..0000000 Binary files a/assets/uploads/catalog/images/m/2/z/b594a5c88e527b467508aa9fa3b01228.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/m/2/z/large-b594a5c88e527b467508aa9fa3b01228.jpg b/assets/uploads/catalog/images/m/2/z/large-b594a5c88e527b467508aa9fa3b01228.jpg deleted file mode 100644 index a0a2ba5..0000000 Binary files a/assets/uploads/catalog/images/m/2/z/large-b594a5c88e527b467508aa9fa3b01228.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/m/2/z/med-b594a5c88e527b467508aa9fa3b01228.jpg b/assets/uploads/catalog/images/m/2/z/med-b594a5c88e527b467508aa9fa3b01228.jpg deleted file mode 100644 index ce49ac9..0000000 Binary files a/assets/uploads/catalog/images/m/2/z/med-b594a5c88e527b467508aa9fa3b01228.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/m/2/z/small-b594a5c88e527b467508aa9fa3b01228.jpg b/assets/uploads/catalog/images/m/2/z/small-b594a5c88e527b467508aa9fa3b01228.jpg deleted file mode 100644 index eebaa0e..0000000 Binary files a/assets/uploads/catalog/images/m/2/z/small-b594a5c88e527b467508aa9fa3b01228.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/n/y/n/CC2600.jpg b/assets/uploads/catalog/images/n/y/n/CC2600.jpg deleted file mode 100644 index 3726972..0000000 Binary files a/assets/uploads/catalog/images/n/y/n/CC2600.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/n/y/n/large-CC2600.jpg b/assets/uploads/catalog/images/n/y/n/large-CC2600.jpg deleted file mode 100644 index c149100..0000000 Binary files a/assets/uploads/catalog/images/n/y/n/large-CC2600.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/n/y/n/med-CC2600.jpg b/assets/uploads/catalog/images/n/y/n/med-CC2600.jpg deleted file mode 100644 index 7c2132d..0000000 Binary files a/assets/uploads/catalog/images/n/y/n/med-CC2600.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/n/y/n/small-CC2600.jpg b/assets/uploads/catalog/images/n/y/n/small-CC2600.jpg deleted file mode 100644 index 8c37504..0000000 Binary files a/assets/uploads/catalog/images/n/y/n/small-CC2600.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/q/o/m/comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg b/assets/uploads/catalog/images/q/o/m/comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg deleted file mode 100644 index e02d866..0000000 Binary files a/assets/uploads/catalog/images/q/o/m/comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/q/o/m/large-comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg b/assets/uploads/catalog/images/q/o/m/large-comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg deleted file mode 100644 index b10d312..0000000 Binary files a/assets/uploads/catalog/images/q/o/m/large-comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/q/o/m/med-comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg b/assets/uploads/catalog/images/q/o/m/med-comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg deleted file mode 100644 index cd77cbb..0000000 Binary files a/assets/uploads/catalog/images/q/o/m/med-comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/q/o/m/small-comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg b/assets/uploads/catalog/images/q/o/m/small-comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg deleted file mode 100644 index ec1f30c..0000000 Binary files a/assets/uploads/catalog/images/q/o/m/small-comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/s/e/j/ff815ea7756de71d6c5edb5566330df6.jpg b/assets/uploads/catalog/images/s/e/j/ff815ea7756de71d6c5edb5566330df6.jpg deleted file mode 100644 index 46e89ee..0000000 Binary files a/assets/uploads/catalog/images/s/e/j/ff815ea7756de71d6c5edb5566330df6.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/s/e/j/large-ff815ea7756de71d6c5edb5566330df6.jpg b/assets/uploads/catalog/images/s/e/j/large-ff815ea7756de71d6c5edb5566330df6.jpg deleted file mode 100644 index 47fd471..0000000 Binary files a/assets/uploads/catalog/images/s/e/j/large-ff815ea7756de71d6c5edb5566330df6.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/s/e/j/med-ff815ea7756de71d6c5edb5566330df6.jpg b/assets/uploads/catalog/images/s/e/j/med-ff815ea7756de71d6c5edb5566330df6.jpg deleted file mode 100644 index d14fccb..0000000 Binary files a/assets/uploads/catalog/images/s/e/j/med-ff815ea7756de71d6c5edb5566330df6.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/s/e/j/small-ff815ea7756de71d6c5edb5566330df6.jpg b/assets/uploads/catalog/images/s/e/j/small-ff815ea7756de71d6c5edb5566330df6.jpg deleted file mode 100644 index ae8674e..0000000 Binary files a/assets/uploads/catalog/images/s/e/j/small-ff815ea7756de71d6c5edb5566330df6.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/t/b/n/20121018143846738.jpg b/assets/uploads/catalog/images/t/b/n/20121018143846738.jpg deleted file mode 100644 index 77f28ff..0000000 Binary files a/assets/uploads/catalog/images/t/b/n/20121018143846738.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/t/b/n/large-20121018143846738.jpg b/assets/uploads/catalog/images/t/b/n/large-20121018143846738.jpg deleted file mode 100644 index 4650ef3..0000000 Binary files a/assets/uploads/catalog/images/t/b/n/large-20121018143846738.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/t/b/n/med-20121018143846738.jpg b/assets/uploads/catalog/images/t/b/n/med-20121018143846738.jpg deleted file mode 100644 index e9a46df..0000000 Binary files a/assets/uploads/catalog/images/t/b/n/med-20121018143846738.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/t/b/n/small-20121018143846738.jpg b/assets/uploads/catalog/images/t/b/n/small-20121018143846738.jpg deleted file mode 100644 index 1c91e75..0000000 Binary files a/assets/uploads/catalog/images/t/b/n/small-20121018143846738.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/v/t/x/bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg b/assets/uploads/catalog/images/v/t/x/bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg deleted file mode 100644 index 0766c7d..0000000 Binary files a/assets/uploads/catalog/images/v/t/x/bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/v/t/x/large-bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg b/assets/uploads/catalog/images/v/t/x/large-bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg deleted file mode 100644 index 1add4a5..0000000 Binary files a/assets/uploads/catalog/images/v/t/x/large-bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/v/t/x/med-bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg b/assets/uploads/catalog/images/v/t/x/med-bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg deleted file mode 100644 index c8c72ab..0000000 Binary files a/assets/uploads/catalog/images/v/t/x/med-bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/v/t/x/small-bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg b/assets/uploads/catalog/images/v/t/x/small-bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg deleted file mode 100644 index 26a7b77..0000000 Binary files a/assets/uploads/catalog/images/v/t/x/small-bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/y/f/r/large-textiles-2.jpg b/assets/uploads/catalog/images/y/f/r/large-textiles-2.jpg deleted file mode 100644 index c1b8489..0000000 Binary files a/assets/uploads/catalog/images/y/f/r/large-textiles-2.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/y/f/r/med-textiles-2.jpg b/assets/uploads/catalog/images/y/f/r/med-textiles-2.jpg deleted file mode 100644 index 1da00ad..0000000 Binary files a/assets/uploads/catalog/images/y/f/r/med-textiles-2.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/y/f/r/small-textiles-2.jpg b/assets/uploads/catalog/images/y/f/r/small-textiles-2.jpg deleted file mode 100644 index 391f780..0000000 Binary files a/assets/uploads/catalog/images/y/f/r/small-textiles-2.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/y/f/r/textiles-2.jpg b/assets/uploads/catalog/images/y/f/r/textiles-2.jpg deleted file mode 100644 index 777308f..0000000 Binary files a/assets/uploads/catalog/images/y/f/r/textiles-2.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/z/c/u/d5d710257f2cf7cf2576f4a43dc40430.jpg b/assets/uploads/catalog/images/z/c/u/d5d710257f2cf7cf2576f4a43dc40430.jpg deleted file mode 100644 index b868525..0000000 Binary files a/assets/uploads/catalog/images/z/c/u/d5d710257f2cf7cf2576f4a43dc40430.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/z/c/u/large-d5d710257f2cf7cf2576f4a43dc40430.jpg b/assets/uploads/catalog/images/z/c/u/large-d5d710257f2cf7cf2576f4a43dc40430.jpg deleted file mode 100644 index 9f1e0fb..0000000 Binary files a/assets/uploads/catalog/images/z/c/u/large-d5d710257f2cf7cf2576f4a43dc40430.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/z/c/u/med-d5d710257f2cf7cf2576f4a43dc40430.jpg b/assets/uploads/catalog/images/z/c/u/med-d5d710257f2cf7cf2576f4a43dc40430.jpg deleted file mode 100644 index 35d147c..0000000 Binary files a/assets/uploads/catalog/images/z/c/u/med-d5d710257f2cf7cf2576f4a43dc40430.jpg and /dev/null differ diff --git a/assets/uploads/catalog/images/z/c/u/small-d5d710257f2cf7cf2576f4a43dc40430.jpg b/assets/uploads/catalog/images/z/c/u/small-d5d710257f2cf7cf2576f4a43dc40430.jpg deleted file mode 100644 index ecfed9c..0000000 Binary files a/assets/uploads/catalog/images/z/c/u/small-d5d710257f2cf7cf2576f4a43dc40430.jpg and /dev/null differ diff --git a/assets/uploads/catalog/laravel-bedside-table.jpg b/assets/uploads/catalog/laravel-bedside-table.jpg new file mode 100644 index 0000000..f5818c0 Binary files /dev/null and b/assets/uploads/catalog/laravel-bedside-table.jpg differ diff --git a/assets/uploads/catalog/laravel-sofa-set.jpg b/assets/uploads/catalog/laravel-sofa-set.jpg new file mode 100644 index 0000000..810c2a7 Binary files /dev/null and b/assets/uploads/catalog/laravel-sofa-set.jpg differ diff --git a/assets/uploads/catalog/php-single-mattress.jpg b/assets/uploads/catalog/php-single-mattress.jpg new file mode 100644 index 0000000..8d5d2de Binary files /dev/null and b/assets/uploads/catalog/php-single-mattress.jpg differ diff --git a/assets/uploads/catalog/php-sofa-set.jpg b/assets/uploads/catalog/php-sofa-set.jpg new file mode 100644 index 0000000..8aee649 Binary files /dev/null and b/assets/uploads/catalog/php-sofa-set.jpg differ diff --git a/assets/uploads/catalog/red-attribute.jpg b/assets/uploads/catalog/red-attribute.jpg new file mode 100644 index 0000000..dcc9052 Binary files /dev/null and b/assets/uploads/catalog/red-attribute.jpg differ diff --git a/assets/uploads/catalog/yellow-attribute.png b/assets/uploads/catalog/yellow-attribute.png new file mode 100644 index 0000000..6847895 Binary files /dev/null and b/assets/uploads/catalog/yellow-attribute.png differ diff --git a/assets/uploads/cms/images/b/k/o/TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg b/assets/uploads/cms/images/b/k/o/TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg deleted file mode 100644 index 099991a..0000000 Binary files a/assets/uploads/cms/images/b/k/o/TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg and /dev/null differ diff --git a/assets/uploads/cms/images/b/k/o/large-TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg b/assets/uploads/cms/images/b/k/o/large-TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg deleted file mode 100644 index acf8785..0000000 Binary files a/assets/uploads/cms/images/b/k/o/large-TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg and /dev/null differ diff --git a/assets/uploads/cms/images/b/k/o/med-TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg b/assets/uploads/cms/images/b/k/o/med-TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg deleted file mode 100644 index d9708a1..0000000 Binary files a/assets/uploads/cms/images/b/k/o/med-TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg and /dev/null differ diff --git a/assets/uploads/cms/images/b/k/o/small-TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg b/assets/uploads/cms/images/b/k/o/small-TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg deleted file mode 100644 index 74f8362..0000000 Binary files a/assets/uploads/cms/images/b/k/o/small-TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg and /dev/null differ diff --git a/assets/uploads/cms/images/n/k/q/large-txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg b/assets/uploads/cms/images/n/k/q/large-txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg deleted file mode 100644 index 8b7eb80..0000000 Binary files a/assets/uploads/cms/images/n/k/q/large-txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg and /dev/null differ diff --git a/assets/uploads/cms/images/n/k/q/med-txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg b/assets/uploads/cms/images/n/k/q/med-txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg deleted file mode 100644 index f0ca8e0..0000000 Binary files a/assets/uploads/cms/images/n/k/q/med-txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg and /dev/null differ diff --git a/assets/uploads/cms/images/n/k/q/small-txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg b/assets/uploads/cms/images/n/k/q/small-txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg deleted file mode 100644 index 10a3e26..0000000 Binary files a/assets/uploads/cms/images/n/k/q/small-txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg and /dev/null differ diff --git a/assets/uploads/cms/images/n/k/q/txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg b/assets/uploads/cms/images/n/k/q/txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg deleted file mode 100644 index 5a3f41e..0000000 Binary files a/assets/uploads/cms/images/n/k/q/txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg and /dev/null differ diff --git a/assets/uploads/cms/images/y/v/u/CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg b/assets/uploads/cms/images/y/v/u/CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg deleted file mode 100644 index cfd2b20..0000000 Binary files a/assets/uploads/cms/images/y/v/u/CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg and /dev/null differ diff --git a/assets/uploads/cms/images/y/v/u/large-CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg b/assets/uploads/cms/images/y/v/u/large-CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg deleted file mode 100644 index b6a68ca..0000000 Binary files a/assets/uploads/cms/images/y/v/u/large-CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg and /dev/null differ diff --git a/assets/uploads/cms/images/y/v/u/med-CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg b/assets/uploads/cms/images/y/v/u/med-CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg deleted file mode 100644 index 3cc2a29..0000000 Binary files a/assets/uploads/cms/images/y/v/u/med-CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg and /dev/null differ diff --git a/assets/uploads/cms/images/y/v/u/small-CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg b/assets/uploads/cms/images/y/v/u/small-CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg deleted file mode 100644 index 2c18923..0000000 Binary files a/assets/uploads/cms/images/y/v/u/small-CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg and /dev/null differ diff --git a/assets/uploads/order/invoice/.gitignore b/assets/uploads/order/invoice/.gitignore deleted file mode 100644 index d6b7ef3..0000000 --- a/assets/uploads/order/invoice/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/assets/uploads/users/.gitignore b/assets/uploads/users/.gitignore deleted file mode 100644 index d6b7ef3..0000000 --- a/assets/uploads/users/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/composer.json b/composer.json index df91483..bb0decc 100644 --- a/composer.json +++ b/composer.json @@ -23,13 +23,9 @@ ], "require" : { "php" : ">=7.1.3", - "avored/module-installer" : "1.*", - "avored/framework" : "~2.0" + "avored/module-installer" : "dev-developed" }, "autoload" : { - "classmap" : [ - "database/seeds" - ], "psr-4" : { "AvoRed\\DummyData\\" : "src" } diff --git a/database/migrations/2017_03_29_000000_avored_demo_data_schema.php b/database/migrations/2017_03_29_000000_avored_demo_data_schema.php new file mode 100644 index 0000000..99277e2 --- /dev/null +++ b/database/migrations/2017_03_29_000000_avored_demo_data_schema.php @@ -0,0 +1,550 @@ + 'AvoRed', + 'slug' => 'avored' + ]); + $phpCategory = Category::create([ + 'name' => 'PHP', + 'slug' => 'php' + ]); + $laravelCategory = Category::create([ + 'name' => 'Laravel', + 'slug' => 'laravel' + ]); + + // $colorAttribute = Attribute::create( + // ['name' => 'Color', + // 'slug' => 'color', + // 'display_as' => 'IMAGE'] + // ); + // $redOption = $colorAttribute->dropdownOptions()->create(['display_text' => 'Red', 'path' => 'uploads/catalog/attributes/red-attribute.jpg']); + // $blueOption = $colorAttribute->dropdownOptions()->create(['display_text' => 'Blue', 'path' => 'uploads/catalog/attributes/blue-attribute.png']); + // $yellowOption = $colorAttribute->dropdownOptions()->create(['display_text' => 'Yellow', 'path' => 'uploads/catalog/attributes/yellow-attribute.png']); + + + // $brandProperty = Property::create( + // ['name' => 'Brand', + // 'slug' => 'brand', + // 'data_type' => 'INTEGER', + // 'field_type' => 'SELECT', + // 'use_for_all_products' => 1, + // 'use_for_category_filter' => 1, + // 'is_visible_frontend' => 1, + // 'sort_order' => 10] + // ); + // $avoredOption = $brandProperty->dropdownOptions()->create(['display_text' => 'Avored']); + // $phpOption = $brandProperty->dropdownOptions()->create(['display_text' => 'PHP']); + // $laravelOption = $brandProperty->dropdownOptions()->create(['display_text' => 'Laravel']); + + // $materialProperty = Property::create( + // ['name' => 'Frame Material', + // 'slug' => 'frame-material', + // 'data_type' => 'INTEGER', + // 'field_type' => 'SELECT', + // 'use_for_all_products' => 1, + // 'use_for_category_filter' => 1, + // 'is_visible_frontend' => 1, + // 'sort_order' => 10] + // ); + // $oakwoodOption = $materialProperty->dropdownOptions()->create(['display_text' => 'Oak wood']); + // $whiteWoodOption = $materialProperty->dropdownOptions()->create(['display_text' => 'White wood framae']); + // $aluminumFrameOption = $materialProperty->dropdownOptions()->create(['display_text' => 'Aluminium frame']); + + // CategoryFilter::create( + // ['category_id' => $avoredCategory->id, + // 'filter_id' => $brandProperty->id, + // 'type' => 'PROPERTY'] + // ); + // CategoryFilter::create( + // ['category_id' => $phpCategory->id, + // 'filter_id' => $brandProperty->id, + // 'type' => 'PROPERTY'] + // ); + // CategoryFilter::create( + // ['category_id' => $laravelCategory->id, + // 'filter_id' => $brandProperty->id, + // 'type' => 'PROPERTY'] + // ); + // CategoryFilter::create( + // ['category_id' => $avoredCategory->id, + // 'filter_id' => $materialProperty->id, + // 'type' => 'PROPERTY'] + // ); + // CategoryFilter::create( + // ['category_id' => $phpCategory->id, + // 'filter_id' => $materialProperty->id, + // 'type' => 'PROPERTY'] + // ); + // CategoryFilter::create( + // ['category_id' => $laravelCategory->id, + // 'filter_id' => $materialProperty->id, + // 'type' => 'PROPERTY'] + // ); + + $price = rand(500, 1000) / 10; + $product = Product::create([ + 'type' => 'BASIC', + 'name' => 'AvoRed Sofa Set', + 'slug' => 'avored-sofa-set', + 'sku' => 'avored-sofa-set', + 'barcode' => '123456789', + 'description' => $faker->text, + 'status' => 1, + 'in_stock' => 1, + 'track_stock' => 1, + 'qty' => rand(50, 100), + 'is_taxable' => 1, + 'price' => $price, + 'cost_price' => $price - (rand(50, 100) / 10), + 'weight' => rand(1, 10), + 'height' => rand(1, 10), + 'length' => rand(1, 10), + 'width' => rand(1, 10), + ]); + $product->categories()->sync([$avoredCategory->id]); + Document::create([ + 'path' => 'uploads/catalog/avored-sofa-set.jpg', + 'mime_type' => 'image/jpg', + 'size' => filesize(__DIR__ . '/../../assets/uploads/catalog/avored-sofa-set.jpg'), + 'origional_name' => 'avored-sofa-set.jpg', + 'documentable_type' => Product::class, + 'documentable_id' => $product->id + ]); + // $product->productPropertyIntegerValues()->create(['property_id' => $brandProperty->id, 'value' => $avoredOption->id]); + // $product->productPropertyIntegerValues()->create(['property_id' => $materialProperty->id, 'value' => $aluminumFrameOption->id]); + // $product->properties()->sync([$brandProperty->id, $materialProperty->id]); + + $price = rand(500, 1000) / 10; + $product = Product::create([ + 'type' => 'BASIC', + 'name' => 'AvoRed Single Bed', + 'slug' => 'avored-single-bed', + 'sku' => 'avored-single-bed', + 'barcode' => '123456789', + 'description' => $faker->text, + 'status' => 1, + 'in_stock' => 1, + 'track_stock' => 1, + 'qty' => rand(50, 100), + 'is_taxable' => 1, + 'price' => $price, + 'cost_price' => $price - (rand(50, 100) / 10), + 'weight' => rand(1, 10), + 'height' => rand(1, 10), + 'length' => rand(1, 10), + 'width' => rand(1, 10), + ]); + $product->categories()->sync([$avoredCategory->id]); + Document::create([ + 'path' => 'uploads/catalog/avored-single-bed.jpg', + 'mime_type' => 'image/jpg', + 'size' => filesize(__DIR__ . '/../../assets/uploads/catalog/avored-single-bed.jpg'), + 'origional_name' => 'avored-single-bed.jpg', + 'documentable_type' => Product::class, + 'documentable_id' => $product->id + ]); + // ProductImage::create(['path' => 'uploads/catalog/'. $product->id .'/avored-single-bed.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); + // $product->properties()->sync($brandProperty); + // $product->properties()->sync($materialProperty); + // $product->productPropertyIntegerValues()->create(['property_id' => $brandProperty->id, 'value' => $avoredOption->id]); + // $product->productPropertyIntegerValues()->create(['property_id' => $materialProperty->id, 'value' => $whiteWoodOption->id]); + + + $price = rand(500, 1000) / 10; + $product = Product::create([ + 'type' => 'BASIC', + 'name' => 'AvoRed Double Bed', + 'slug' => 'avored-double-bed', + 'sku' => 'avored-double-bed', + 'barcode' => '123456789', + 'description' => $faker->text, + 'status' => 1, + 'in_stock' => 1, + 'track_stock' => 1, + 'qty' => rand(50, 100), + 'is_taxable' => 1, + 'price' => $price, + 'cost_price' => $price - (rand(50, 100) / 10), + 'weight' => rand(1, 10), + 'height' => rand(1, 10), + 'length' => rand(1, 10), + 'width' => rand(1, 10), + ]); + $product->categories()->sync([$avoredCategory->id]); + Document::create([ + 'path' => 'uploads/catalog/avored-double-bed.jpg', + 'mime_type' => 'image/jpg', + 'size' => filesize(__DIR__ . '/../../assets/uploads/catalog/avored-double-bed.jpg'), + 'origional_name' => 'avored-double-bed.jpg', + 'documentable_type' => Product::class, + 'documentable_id' => $product->id + ]); + // $product->properties()->sync($brandProperty); + // $product->properties()->sync($materialProperty); + + // ProductImage::create(['path' => 'uploads/catalog/'. $product->id .'/avored-double-bed.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); + // $product->productPropertyIntegerValues()->create(['property_id' => $brandProperty->id, 'value' => $avoredOption->id]); + // $product->productPropertyIntegerValues()->create(['property_id' => $materialProperty->id, 'value' => $oakwoodOption->id]); + + + $price = rand(500, 1000) / 10; + $product = Product::create([ + 'type' => 'BASIC', + 'name' => 'AvoRed Queen Bed', + 'slug' => 'avored-queen-bed', + 'sku' => 'avored-queen-bed', + 'barcode' => '123456789', + 'description' => $faker->text, + 'status' => 1, + 'in_stock' => 1, + 'track_stock' => 1, + 'qty' => rand(50, 100), + 'is_taxable' => 1, + 'price' => $price, + 'cost_price' => $price - (rand(50, 100) / 10), + 'weight' => rand(1, 10), + 'height' => rand(1, 10), + 'length' => rand(1, 10), + 'width' => rand(1, 10), + ]); + $product->categories()->sync([$avoredCategory->id]); + Document::create([ + 'path' => 'uploads/catalog/avored-queen-bed.jpg', + 'mime_type' => 'image/jpg', + 'size' => filesize(__DIR__ . '/../../assets/uploads/catalog/avored-queen-bed.jpg'), + 'origional_name' => 'avored-queen-bed.jpg', + 'documentable_type' => Product::class, + 'documentable_id' => $product->id + ]); + // $product->properties()->sync($brandProperty); + // $product->properties()->sync($materialProperty); + + // ProductImage::create(['path' => 'uploads/catalog/'. $product->id .'/avored-queen-bed.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); + // $product->productPropertyIntegerValues()->create(['property_id' => $brandProperty->id, 'value' => $avoredOption->id]); + // $product->productPropertyIntegerValues()->create(['property_id' => $materialProperty->id, 'value' => $oakwoodOption->id]); + + + $price = rand(500, 1000) / 10; + $product = Product::create([ + 'type' => 'BASIC', + 'name' => 'AvoRed Bunk Bed', + 'slug' => 'avored-bunk-bed', + 'sku' => 'avored-bunk-bed', + 'barcode' => '123456789', + 'description' => $faker->text, + 'status' => 1, + 'in_stock' => 1, + 'track_stock' => 1, + 'qty' => rand(50, 100), + 'is_taxable' => 1, + 'price' => $price, + 'cost_price' => $price - (rand(50, 100) / 10), + 'weight' => rand(1, 10), + 'height' => rand(1, 10), + 'length' => rand(1, 10), + 'width' => rand(1, 10), + ]); + $product->categories()->sync([$avoredCategory->id]); + Document::create([ + 'path' => 'uploads/catalog/avored-bunk-bed.jpg', + 'mime_type' => 'image/jpg', + 'size' => filesize(__DIR__ . '/../../assets/uploads/catalog/avored-bunk-bed.jpg'), + 'origional_name' => 'avored-bunk-bed.jpg', + 'documentable_type' => Product::class, + 'documentable_id' => $product->id + ]); + // $product->properties()->sync($brandProperty); + // $product->properties()->sync($materialProperty); + + // ProductImage::create(['path' => 'uploads/catalog/'. $product->id .'/avored-bunk-bed.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); + // $product->productPropertyIntegerValues()->create(['property_id' => $brandProperty->id, 'value' => $avoredOption->id]); + // $product->productPropertyIntegerValues()->create(['property_id' => $materialProperty->id, 'value' => $whiteWoodOption->id]); + + + $price = rand(500, 1000) / 10; + $product = Product::create([ + 'type' => 'BASIC', + 'name' => 'PHP Sofa Set', + 'slug' => 'php-sofa-set', + 'sku' => 'php-sofa-set', + 'barcode' => '123456789', + 'description' => $faker->text, + 'status' => 1, + 'in_stock' => 1, + 'track_stock' => 1, + 'qty' => rand(50, 100), + 'is_taxable' => 1, + 'price' => $price, + 'cost_price' => $price - (rand(50, 100) / 10), + 'weight' => rand(1, 10), + 'height' => rand(1, 10), + 'length' => rand(1, 10), + 'width' => rand(1, 10), + ]); + $product->categories()->sync([$phpCategory->id]); + Document::create([ + 'path' => 'uploads/catalog/php-sofa-set.jpg', + 'mime_type' => 'image/jpg', + 'size' => filesize(__DIR__ . '/../../assets/uploads/catalog/php-sofa-set.jpg'), + 'origional_name' => 'php-sofa-set.jpg', + 'documentable_type' => Product::class, + 'documentable_id' => $product->id + ]); + // $product->properties()->sync($brandProperty); + // $product->properties()->sync($materialProperty); + + // ProductImage::create(['path' => 'uploads/catalog/'. $product->id .'/php-sofa-set.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); + // $product->productPropertyIntegerValues()->create(['property_id' => $brandProperty->id, 'value' => $phpOption->id]); + // $product->productPropertyIntegerValues()->create(['property_id' => $materialProperty->id, 'value' => $whiteWoodOption->id]); + + + $price = rand(500, 1000) / 10; + $product = Product::create([ + 'type' => 'BASIC', + 'name' => 'Laravel Sofa Set', + 'slug' => 'laravel-sofa-set', + 'sku' => 'laravel-sofa-set', + 'barcode' => '123456789', + 'description' => $faker->text, + 'status' => 1, + 'in_stock' => 1, + 'track_stock' => 1, + 'qty' => rand(50, 100), + 'is_taxable' => 1, + 'price' => $price, + 'cost_price' => $price - (rand(50, 100) / 10), + 'weight' => rand(1, 10), + 'height' => rand(1, 10), + 'length' => rand(1, 10), + 'width' => rand(1, 10), + ]); + $product->categories()->sync([$laravelCategory->id]); + Document::create([ + 'path' => 'uploads/catalog/laravel-sofa-set.jpg', + 'mime_type' => 'image/jpg', + 'size' => filesize(__DIR__ . '/../../assets/uploads/catalog/laravel-sofa-set.jpg'), + 'origional_name' => 'laravel-sofa-set.jpg', + 'documentable_type' => Product::class, + 'documentable_id' => $product->id + ]); + // $product->properties()->sync($brandProperty); + // $product->properties()->sync($materialProperty); + + // ProductImage::create(['path' => 'uploads/catalog/'. $product->id .'/laravel-sofa-set.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); + // $product->productPropertyIntegerValues()->create(['property_id' => $brandProperty->id, 'value' => $laravelOption->id]); + // $product->productPropertyIntegerValues()->create(['property_id' => $materialProperty->id, 'value' => $oakwoodOption->id]); + + + $price = rand(500, 1000) / 10; + $product = Product::create([ + 'type' => 'BASIC', + 'name' => 'PHP Single Mattress', + 'slug' => 'php-single-mattress', + 'sku' => 'php-sofa-set', + 'barcode' => '123456789', + 'description' => $faker->text, + 'status' => 1, + 'in_stock' => 1, + 'track_stock' => 1, + 'qty' => rand(50, 100), + 'is_taxable' => 1, + 'price' => $price, + 'cost_price' => $price - (rand(50, 100) / 10), + 'weight' => rand(1, 10), + 'height' => rand(1, 10), + 'length' => rand(1, 10), + 'width' => rand(1, 10), + ]); + $product->categories()->sync([$phpCategory->id]); + Document::create([ + 'path' => 'uploads/catalog/php-single-mattress.jpg', + 'mime_type' => 'image/jpg', + 'size' => filesize(__DIR__ . '/../../assets/uploads/catalog/php-single-mattress.jpg'), + 'origional_name' => 'php-single-mattress.jpg', + 'documentable_type' => Product::class, + 'documentable_id' => $product->id + ]); + // $product->properties()->sync($brandProperty); + // $product->properties()->sync($materialProperty); + + // ProductImage::create(['path' => 'uploads/catalog/'. $product->id .'/php-single-mattress.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); + // $product->productPropertyIntegerValues()->create(['property_id' => $brandProperty->id, 'value' => $phpOption->id]); + // $product->productPropertyIntegerValues()->create(['property_id' => $materialProperty->id, 'value' => $oakwoodOption->id]); + + + $price = rand(500, 1000) / 10; + $product = Product::create([ + 'type' => 'BASIC', + 'name' => 'Laravel Bedside Table', + 'slug' => 'laravel-bedside-table', + 'sku' => 'laravel-bedside-table', + 'barcode' => '123456789', + 'description' => $faker->text, + 'status' => 1, + 'in_stock' => 1, + 'track_stock' => 1, + 'qty' => rand(50, 100), + 'is_taxable' => 1, + 'price' => $price, + 'cost_price' => $price - (rand(50, 100) / 10), + 'weight' => rand(1, 10), + 'height' => rand(1, 10), + 'length' => rand(1, 10), + 'width' => rand(1, 10), + ]); + $product->categories()->sync([$laravelCategory->id]); + Document::create([ + 'path' => 'uploads/catalog/laravel-bedside-table.jpg', + 'mime_type' => 'image/jpg', + 'size' => filesize(__DIR__ . '/../../assets/uploads/catalog/laravel-bedside-table.jpg'), + 'origional_name' => 'laravel-bed-sidetable.jpg', + 'documentable_type' => Product::class, + 'documentable_id' => $product->id + ]); + + OrderStatus::create([ + 'name' => 'Pending', + 'is_default' => 1 + ]); + OrderStatus::create([ + 'name' => 'Processing', + 'is_default' => 0 + ]); + OrderStatus::create([ + 'name' => 'Complete', + 'is_default' => 0 + ]); + // $product->properties()->sync($brandProperty); + // $product->properties()->sync($materialProperty); + + // ProductImage::create(['path' => 'uploads/catalog/'. $product->id .'/laravel-bedside-table.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); + // $product->productPropertyIntegerValues()->create(['property_id' => $brandProperty->id, 'value' => $laravelOption->id]); + // $product->productPropertyIntegerValues()->create(['property_id' => $materialProperty->id, 'value' => $aluminumFrameOption->id]); + + // $mainMenu = MenuGroup::create(['name' => 'Main Menu', 'identifier' => 'main-menu', 'is_default' => 1]); + + // $mainMenu->menus()->create(['name' => $avoredCategory->name, 'type' => Menu::CATEGORY, 'route_info' => $avoredCategory->slug]); + // $mainMenu->menus()->create(['name' => $phpCategory->name, 'type' => Menu::CATEGORY, 'route_info' => $phpCategory->slug]); + // $mainMenu->menus()->create(['name' => $laravelCategory->name, 'type' => Menu::CATEGORY, 'route_info' => $laravelCategory->slug]); + // $mainMenu->menus()->create(['name' => 'Cart', 'type' => Menu::FRONT_MENU, 'route_info' => 'cart.show']); + // $mainMenu->menus()->create(['name' => 'Checkout', 'type' => Menu::FRONT_MENU, 'route_info' => 'checkout.show']); + // $mainMenu->menus()->create(['name' => 'Login', 'type' => Menu::FRONT_MENU, 'route_info' => 'login']); + // $mainMenu->menus()->create(['name' => 'Register', 'type' => Menu::FRONT_MENU, 'route_info' => 'register']); + + // $mainAuthMenu = MenuGroup::create(['name' => 'Main Auth Menu', 'identifier' => 'main-auth-menu']); + + // $mainAuthMenu->menus()->create(['name' => $avoredCategory->name, 'type' => Menu::CATEGORY, 'route_info' => $avoredCategory->slug]); + // $mainAuthMenu->menus()->create(['name' => $phpCategory->name, 'type' => Menu::CATEGORY, 'route_info' => $phpCategory->slug]); + // $mainAuthMenu->menus()->create(['name' => $laravelCategory->name, 'type' => Menu::CATEGORY, 'route_info' => $laravelCategory->slug]); + // $mainAuthMenu->menus()->create(['name' => 'Cart', 'type' => Menu::FRONT_MENU, 'route_info' => 'cart.show']); + // $mainAuthMenu->menus()->create(['name' => 'Checkout', 'type' => Menu::FRONT_MENU, 'route_info' => 'checkout.show']); + // $accountMenu = $mainAuthMenu->menus()->create(['name' => 'Account', 'type' => Menu::FRONT_MENU, 'route_info' => 'account.dashboard']); + // $mainAuthMenu->menus()->create(['name' => 'Logout', 'type' => Menu::FRONT_MENU, 'route_info' => 'logout', 'parent_id' => $accountMenu->id]); + + // Page::create( + // ['name' => 'HomePage', + // 'slug' => 'home-page', + // 'content' => '%%%avored-banner%%%'] + // ); + + // $customer = Customer::create([ + // 'first_name' => $faker->firstName(), + // 'last_name' => $faker->lastName(), + // 'email' => $faker->safeEmail(), + // 'password' => 'secret', + // ]); + + // $this->createOrder($faker, $customer); + // $this->createOrder($faker, $customer); + } + + /** + * Uninstall the AvoRed Address Module Schema. + * + * @return void + */ + public function down() + { + Schema::disableForeignKeyConstraints(); + + Schema::enableForeignKeyConstraints(); + } + + public function createOrder($faker, $customer) + { + $shippingAddress = $customer->addresses()->create([ + 'type' => Address::SHIPPING, + 'company_name' => $faker->company, + 'first_name' => $faker->firstName, + 'last_name' => $faker->lastName, + 'address1' => $faker->streetAddress, + 'address2' => $faker->streetSuffix, + 'postcode' => $faker->postcode, + 'city' => $faker->city, + 'state' => $faker->state, + 'country_id' => Country::all()->random(1)->first()->id, + 'phone' => $faker->phoneNumber, + ]); + $billingAddress = $customer->addresses()->create([ + 'type' => Address::BILLING, + 'company_name' => $faker->company, + 'first_name' => $faker->firstName, + 'last_name' => $faker->lastName, + 'address1' => $faker->streetAddress, + 'address2' => $faker->streetSuffix, + 'postcode' => $faker->postcode, + 'city' => $faker->city, + 'state' => $faker->state, + 'country_id' => Country::all()->random(1)->first()->id, + 'phone' => $faker->phoneNumber, + ]); + + $orderData = [ + 'shipping_option' => 'pickup', + 'payment_option' => 'a-cash-on-delivery', + 'order_status_id' => OrderStatus::whereIsDefault(1)->first()->id, + 'currency_id' => Currency::all()->first()->id, + 'customer_id' => $customer->id, + 'shipping_address_id' => $shippingAddress->id, + 'billing_address_id' => $billingAddress->id, + ]; + $order = Order::create($orderData); + + $qty = rand(1, 10); + $product = Product::all()->random(1)->first(); + $orderProductData = [ + 'product_id' => $product->id, + 'order_id' => $order->id, + 'qty' => $qty, + 'price' => $product->price, + 'tax_amount' => 0, + ]; + + OrderProduct::create($orderProductData); + + } +} diff --git a/database/seeds/AvoRedDataSeeder.php b/database/seeds/AvoRedDataSeeder.php deleted file mode 100644 index 50f6a53..0000000 --- a/database/seeds/AvoRedDataSeeder.php +++ /dev/null @@ -1,390 +0,0 @@ -first(); - $kitchenCategory = Category::create([ - 'parent_id' => null, - 'name' => 'Kitchen', - 'slug' => 'kitchen' - ]); - $bedroomCategory = Category::create([ - 'parent_id' => null, - 'name' => 'Bedroom', - 'slug' => 'bedroom' - ]); - $livingRoomCategory = Category::create([ - 'parent_id' => null, - 'name' => 'Living Room', - 'slug' => 'living-room' - ]); - $product = Product::create([ - 'name' => 'Flower Pot', - 'slug' => 'flower-pot', - 'sku' => 'flower-pot', - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'track_stock' => 1, - 'qty' => rand(10, 1000), - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '' - ]); - $product->categories()->sync($livingRoomCategory->id); - ProductImage::create(['path' => 'uploads/catalog/images/f/h/2/flower-pot.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); - $classicTvProduct = Product::create([ - 'name' => 'Classic TV Stand', - 'type' => 'BASIC', - 'slug' => 'classic-tv-stand', - 'sku' => 'classic-tv-stand', - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'track_stock' => 1, - 'qty' => rand(10, 1000), - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '' - ]); - $classicTvProduct->categories()->sync($livingRoomCategory->id); - ProductImage::create(['path' => 'uploads/catalog/images/d/0/c/classic-tv-stand.jpg', - 'product_id' => $classicTvProduct->id, - 'is_main_image' => 1 - ]); - $product = Product::create([ - 'name' => 'Classic Vintage Curtain', - 'type' => 'BASIC', - 'slug' => 'classic-vintage-curtain', - 'sku' => 'classic-vintage-curtain', - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'track_stock' => 1, - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'qty' => rand(10, 1000), - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '' - ]); - $product->categories()->sync($livingRoomCategory->id); - ProductImage::create(['path' => 'uploads/catalog/images/y/f/r/textiles-2.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); - $product = Product::create([ - 'name' => 'Comfirtable Couch', - 'type' => 'BASIC', - 'slug' => 'comfirtable-couch', - 'sku' => 'comfirtable-couch', - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'track_stock' => 1, - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'qty' => rand(10, 1000), - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '' - ]); - $product->categories()->sync($livingRoomCategory->id); - ProductImage::create(['path' => 'uploads/catalog/images/1/k/0/-Single-Panel-New-Pastoral-Linen-Blending-Embroidered-Living-Room-font-b-Curtain-b-font-font.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); - $product = Product::create([ - 'type' => 'BASIC', - 'name' => 'Delicate Brown Curtain', - 'slug' => 'delicate-brown-curtain', - 'sku' => 'delicate-brown-curtain', - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'track_stock' => 1, - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'qty' => rand(10, 1000), - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '', - ]); - $product->categories()->sync($livingRoomCategory->id); - ProductImage::create(['path' => 'uploads/catalog/images/q/o/m/comfortable-leather-chair-published-under-the-most-comfortable-couch-group.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); - $title = 'Medium White Couch'; - $product = Product::create([ - 'type' => 'BASIC', - 'name' => $title, - 'slug' => str_slug($title), - 'sku' => str_slug($title), - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'track_stock' => 1, - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'qty' => rand(10, 1000), - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '' - ]); - $product->categories()->sync($livingRoomCategory->id); - ProductImage::create(['path' => 'uploads/catalog/images/s/e/j/ff815ea7756de71d6c5edb5566330df6.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); - $title = 'Comfirtable Gray Bed'; - $comfirtableGrayBedProduct = Product::create([ - 'name' => $title, - 'type' => 'BASIC', - 'slug' => str_slug($title), - 'sku' => str_slug($title), - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'track_stock' => 1, - 'qty' => rand(10, 1000), - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '' - ]); - $product->categories()->sync($bedroomCategory->id); - ProductImage::create(['path' => 'uploads/catalog/images/v/t/x/bed-bedding-comfortable-platform-with-smooth-gray-also-are-beds-and-headboard-plus-small-.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); - $title = 'Cute Teddy Bear'; - $product = Product::create([ - 'name' => $title, - 'slug' => str_slug($title), - 'sku' => str_slug($title), - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'track_stock' => 1, - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'qty' => rand(10, 1000), - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '', - 'type' => 'BASIC', - ]); - $product->categories()->sync($bedroomCategory->id); - ProductImage::create(['path' => 'uploads/catalog/images/z/c/u/d5d710257f2cf7cf2576f4a43dc40430.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); - $title = 'Minimalist Ceramic Lamp'; - $product = Product::create([ - 'name' => $title, - 'slug' => str_slug($title), - 'sku' => str_slug($title), - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'track_stock' => 1, - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'qty' => rand(10, 1000), - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '', - 'type' => 'BASIC', - ]); - $product->categories()->sync($bedroomCategory->id); - ProductImage::create(['path' => 'uploads/catalog/images/m/2/z/b594a5c88e527b467508aa9fa3b01228.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); - $title = 'Wooden Bunk Bed'; - $product = Product::create([ - 'name' => $title, - 'slug' => str_slug($title), - 'sku' => str_slug($title), - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'track_stock' => 1, - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'qty' => rand(10, 1000), - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '', - 'type' => 'BASIC', - ]); - $product->categories()->sync($bedroomCategory->id); - ProductImage::create(['path' => 'uploads/catalog/images/4/5/n/il_570xN.262261571.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); - $title = 'Cooktail Mixed'; - $cockTailProduct = Product::create([ - 'name' => $title, - 'slug' => str_slug($title), - 'sku' => str_slug($title), - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'track_stock' => 1, - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'qty' => rand(10, 1000), - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '', - 'type' => 'BASIC', - ]); - $cockTailProduct->categories()->sync($kitchenCategory->id); - ProductImage::create([ - 'path' => 'uploads/catalog/images/n/y/n/CC2600.jpg', - 'product_id' => $cockTailProduct->id, - 'is_main_image' => 1 - ]); - $title = 'Coffee Making Machine'; - $coffeProduct = Product::create([ - 'name' => $title, - 'slug' => str_slug($title), - 'sku' => str_slug($title), - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'track_stock' => 1, - 'qty' => rand(10, 1000), - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '', - 'type' => 'BASIC', - ]); - $coffeProduct->categories()->sync($kitchenCategory->id); - ProductImage::create([ - 'path' => 'uploads/catalog/images/t/b/n/20121018143846738.jpg', - 'product_id' => $coffeProduct->id, - 'is_main_image' => 1 - ]); - $title = 'Luxury Cooking Utensil'; - $product = Product::create([ - 'name' => $title, - 'slug' => str_slug($title), - 'sku' => str_slug($title), - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'track_stock' => 1, - 'qty' => rand(10, 1000), - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '', - 'type' => 'BASIC', - ]); - $product->categories()->sync($kitchenCategory->id); - ProductImage::create(['path' => 'uploads/catalog/images/l/i/k/coffee-maker-20.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); - $title = 'Vintage Toaste'; - $product = Product::create([ - 'name' => $title, - 'slug' => str_slug($title), - 'sku' => str_slug($title), - 'description' => $faker->realText(rand(3000, 6000)), - 'status' => 1, - 'in_stock' => 1, - 'track_stock' => 1, - 'price' => rand(2, 10) . '0.' . rand(1, 9) . '0', - 'qty' => rand(10, 1000), - 'is_taxable' => 1, - 'meta_title' => '', - 'meta_description' => '', - 'type' => 'BASIC', - ]); - Menu::create([ - 'name' => $kitchenCategory->name, - 'params' => $kitchenCategory->slug, - 'route' => 'category.view', - ]); - Menu::create([ - 'name' => $bedroomCategory->name, - 'params' => $bedroomCategory->slug, - 'route' => 'category.view', - ]); - Menu::create([ - 'name' => $livingRoomCategory->name, - 'params' => $livingRoomCategory->slug, - 'route' => 'category.view', - ]); - Menu::create([ - 'name' => 'My Account', - 'route' => 'my-account.home', - ]); - Menu::create([ - 'name' => 'Cart', - 'route' => 'cart.view', - ]); - Menu::create([ - 'name' => 'Checkout', - 'route' => 'checkout.index', - ]); - $product->categories()->sync($kitchenCategory->id); - ProductImage::create(['path' => 'uploads/catalog/images/0/y/4/tsf02crsa.jpg', 'product_id' => $product->id, 'is_main_image' => 1]); - $homePageContent = html_entity_decode('
### avored-banner ###
HOME PAGE FOR AvoRed E COMMERCE LARAVEL OPEN SOURCE SHOPPING CART
Please star us on https://github.com/avored/laravel-ecommerce
Like us on Facebook : https://www.facebook.com/avored/
Follow us on Twitter: https://twitter.com/avoredecommerce/
### avored-featured ###
'); - $homePage = Page::create(['name' => 'Home Page', - 'slug' => 'home-page', - 'content' => $homePageContent, - 'meta_title' => 'Home Page - AvoRed E commerce']); - Configuration::create(['configuration_key' => 'general_home_page', - 'configuration_value' => $homePage->id]); - $termPage = Page::create(['name' => 'Term & Condition', - 'slug' => 'term-condition', - 'content' => $faker->text(200), - 'meta_title' => 'Term & Condition - AvoRed E commerce']); - Configuration::create(['configuration_key' => 'general_term_condition_page', - 'configuration_value' => $termPage->id - ]); - Banner::create([ - 'name' => 'Kitchen Sale', - 'image_path' => 'uploads/cms/images/b/k/o/TIydVFNLKKJTiqJjUa29LKdVH0sgxadTJGogzGuI.jpeg', - 'alt_text' => 'Kitchen On Sale', - 'url' => 'category/kitchen', - 'status' => 'ENABLED', - 'sort_order' => 10 - ]); - Banner::create([ - 'name' => 'Living Room On Sale', - 'image_path' => 'uploads/cms/images/y/v/u/CqQjp5hSvRFnx0glalLnpTP7F1PLOCGoLAMPtnmc.jpeg', - 'alt_text' => 'Living Room Items on Sale', - 'url' => 'category/living-room', - 'status' => 'ENABLED', - 'sort_order' => 20 - ]); - Banner::create([ - 'name' => 'Bedroom Sale', - 'image_path' => 'uploads/cms/images/n/k/q/txdsemPHuXC9CHvXrXB7vvRVZc4C0YhrOrr4v1Su.jpeg', - 'alt_text' => 'Bedroom On Sale', - 'url' => 'category/bedroom', - 'status' => 'ENABLED', - 'sort_order' => 30 - ]); - $isFeaturedProperty = Property::whereIdentifier('avored-is-featured')->first(); - if(null !== $isFeaturedProperty) { - $yesPropertyDropdownValueId = PropertyDropdownOption::wherePropertyId($isFeaturedProperty->id) - ->whereDisplayText('Yes') - ->first(); - ProductPropertyIntegerValue::create([ - 'property_id' => $isFeaturedProperty->id, - 'product_id' => $classicTvProduct->id, - 'value' => $yesPropertyDropdownValueId->id - ]); - ProductPropertyIntegerValue::create([ - 'property_id' => $isFeaturedProperty->id, - 'product_id' => $product->id, - 'value' => $yesPropertyDropdownValueId->id - ]); - ProductPropertyIntegerValue::create([ - 'property_id' => $isFeaturedProperty->id, - 'product_id' => $coffeProduct->id, - 'value' => $yesPropertyDropdownValueId->id - ]); - ProductPropertyIntegerValue::create([ - 'property_id' => $isFeaturedProperty->id, - 'product_id' => $cockTailProduct->id, - 'value' => $yesPropertyDropdownValueId->id - ]); - - } - } -} \ No newline at end of file diff --git a/register.yaml b/register.yml similarity index 88% rename from register.yaml rename to register.yml index 394087c..c8e4210 100644 --- a/register.yaml +++ b/register.yml @@ -2,4 +2,4 @@ name: AvoRed Dummy Data identifier: avored-dummy-data description: AvoRed Dummy Data Module namespace: AvoRed\DummyData\ -status: Enabled \ No newline at end of file +status: active