Merge pull request #3 from 4xmen/master

perpare for v1
pull/8/head
A1Gard 1 year ago committed by GitHub
commit 621e0efc19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,131 @@
<div align="center">
<img src="media/xstack-shop-logo.svg" alt="xshop logo" width="600">
</div>
#xShop
اکس شاپ یک پروژه اوپن سورس فروشگاهی بر پایه لاراول است که شما می‌توانید به راحتی با سفارشی سازی آن فروشگاه مورد نظر خودتون یا مشتریتون رو راه‌اندازی کنید و حتی از سورس کدش آموزش ببنید
## امکانات xshop
- کنترل کامل دسته محصولات
- دسته محصولات با قابلیت درختی
- با قابلیت ذخیره ترتیب دسته
- با قابلیت تعریف متای خاص برای هر دسته
- مدیریت عکس دسته بندی با بند انگشتی
- مدیریت محصولات
- فیلد محصولات
- نام
- قیمت پایه
- دسته اصلی
- انتخاب سایر دسته بندی ها
- sku کد
- خلاصه
- توضیحات
- برچسب برای محصولات
- انبارداری و مدیریت موجودی با قیمت های دلخواه مدیر
- مدیریت تخفیف برای هر محصول بر اساس درصد و مبلغ
- مدیریت تصاویر محصول به همراه بند انگشتی
- قابلیت درج متای خاص برای هر محصول
- مدیریت سفارشات و صورتحساب ها
- مشتریان
- تعریف چندین آدرس
- تعیین مشتری به عنوان همکار
- کنترل پنل مشتریان
- قابلیت پرس‌ و پاسخ
- سیستم تیکتیگ برای مشتری
- مدیریت شیوه ارسال
- مدیریت متا ها
- مدیریت مطالب
- سرفصل مطالب
- مدیریت گالری
- مدیریت منو سایت
- مدیریت اسلایدر
- مدیریت محصولات
- تنظیمات ویژه
- مدیریت پیوست ها و سیستم پیوست
- ذخیره لاگ admin ها
- مدیریت ادمین ها و کاربران
- سیستم نظرسنجی
- مدیریت تبلیغات
- پشتیبانی از درگاه‌های:
- زرین پال
- زیبال
- pay.ir
- بانک صادرات
- بانک ملت
- بانک پارسیان
- و امکانات دیگر از جمله، مقایسه محصول و جستجوی پیشرفته
## License
پروژه xshop تحت لیسانس `GPL-3` است بنابراین می‌توانید آسوده خاطر باشید تا ابد اوپن سورس خواهد بود !
[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://opensource.org/licenses/GNU)
[GPL](https://www.gnu.org/licenses/gpl-3.0.en.html)
## راهنمای توسعه
### نیازمندی‌ها
- php 8.1
- mysql or mariadb
- composer
### توسعه و پیکربندی
ابتدا پروژه رو دانلود کنید، یک دیتابیس بسازید و سپس `.env.example` به `.env` کپی جدید بگیرید `.env` سپس اطلاعات به روز کنید و دستورات زیر رو بزنید:
```bash
git clone https://github.com/4xmen/xshop.git
cd xshop
composer install
php artisan migrate --seed
php artisan storage:link
php artisan serv
```
اکنون می‌توانید در آدرس زیر `http://localhost:800/dashboard` با رایانه : `admin@example.com` و پسورد: `password` وارد شوید
# راهنمای انتشار
پیشنهاد ما این است که اکس شاپ را روی vps اجرا کنید، برای این کار یک دیتابیس بسازید و دستورات زیر را اجرا کنید:
```bash
cd /home/[yourUsername]/[pathOfYourWebsitePublicHTML]
git clone https://github.com/4xmen/xshop.git . # if this command not work make empty this folder
cp .env.example .env
nano .env # edit your config db, url, etc.
composer install
php artisan migrate
php artisan db:seed --class=UserSeeder
php artisan db:seed --class=SettingSeeder
nano .env # make APP_DEBUG false, APP_ENV production
php artisan storage:link
composer install --optimize-autoloader --no-dev
```
## contribute & support
ما خیلی خوشحال می‌شویم از شما را کمک کنیم و یا شما ما رو کمک کنید، در صورت توسعه سورس حتما از pull request شما اتسقبال می‌کنیم و اگر مشکلی داشتید، حتما آن را برطرف می‌کنیم، فقط کافی است یک موضوع در لینک زیر ایجاد کنید:
```
https://github.com/4xmen/xshop/issues
```
## Screen shots
![1](./media/shopscreenshot1.png)
![2](./media/shopscreenshot2.png)
![3](./media/shopscreenshot3.png)
![4](./media/shopscreenshot4.png)
![5](./media/shopscreenshot5.png)
![6](./media/shopscreenshot6.png)
![6](./media/shopscreenshot7.png)
<div align="center"> توسعه داده شده با عشق! ❤️</div>

@ -5,3 +5,126 @@
#xShop
x-shop is an open source shop developed in laravel, very customizable!
## xshop features
- Product category manager
- product categories tree
- product category sotable
- product category metable
- product category image + thumbnail
- Product manager
- product fields
- name
- base price
- main category
- categories
- sku code
- abstract
- description
- tags
- product quantity + managing store
- product discount
- product multi images + thumbnail
- product metable
- orders & invoice
- customer & clients
- multi address
- can define clients as colleague
- customer control panel
- question and answer
- ticking system
- transport manager
- meta properties
- post manager
- post categories
- gallery manager
- nav menu manager
- slider & carousel manager
- comments manager
- settings
- attachment system
- admins logs
- user & admin mananger
- polling system
- advertise system
- supported pay gateways:
- zarinpal
- zibal
- pay.ir
- saderat bank
- melat bank
- parsian bank
- & etc, like as customzied search and compare products
## License
xShop developed under `GPL-3` license, So don't worry it will be opensource for ever!
[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://opensource.org/licenses/GNU)
[GPL](https://www.gnu.org/licenses/gpl-3.0.en.html)
## Develop guide
### Requirement
- php 8.1
- mysql or mariadb
- composer
### Development config & commands
Create new database and rename `.env.example` to `.env` then update you `.env` configs so run this commands:
```bash
git clone https://github.com/4xmen/xshop.git
cd xshop
composer install
php artisan migrate --seed
php artisan storage:link
php artisan serv
```
now login to admin panel `http://localhost:800/dashboard` default admin email is : `admin@example.com` and default password is: `password`
# Deploy guide
We recommend deploy xshop on VPS, so create databse and run this commands
```bash
cd /home/[yourUsername]/[pathOfYourWebsitePublicHTML]
git clone https://github.com/4xmen/xshop.git . # if this command not work make empty this folder
cp .env.example .env
nano .env # edit your config db, url, etc.
composer install
php artisan migrate
php artisan db:seed --class=UserSeeder
php artisan db:seed --class=SettingSeeder
nano .env # make APP_DEBUG false, APP_ENV production
php artisan storage:link
composer install --optimize-autoloader --no-dev
```
## contribute & support
We are so pleased to your help and help you, If you wanna develop xshop, Congrats or
if you have problem, don't worry create an issue here:
```
https://github.com/4xmen/xshop/issues
```
## Screen shots
![1](./media/shopscreenshot1.png)
![2](./media/shopscreenshot2.png)
![3](./media/shopscreenshot3.png)
![4](./media/shopscreenshot4.png)
![5](./media/shopscreenshot5.png)
![6](./media/shopscreenshot6.png)
![6](./media/shopscreenshot7.png)
<div align="center"> Developed With Love ! ❤️</div>

@ -1,359 +0,0 @@
<?php
use Illuminate\Database\Seeder;
class SettingSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
$s = new \App\Setting();
$s->section = '0seo';
$s->key = 'keywords';
$s->type = 'text';
$s->title = 'seo keyword';
$s->value = 'shop, gold, mah gallery';
$s->save();
$s = new \App\Setting();
$s->section = '0seo';
$s->key = 'desc';
$s->type = 'text';
$s->title = 'seo description';
$s->value = 'Mah gallery best shop for shop gold';
$s->save();
// //
$s = new \App\Setting();
$s->section = '1top-menu';
$s->key = 'price';
$s->type = 'text';
$s->title = 'قیمت طلا';
$s->value = '12000000';
$s->save();
$s = new \App\Setting();
$s->section = '1top-menu';
$s->key = 'tel';
$s->type = 'text';
$s->title = 'تلفن';
$s->value = '+98 21 98765432';
$s->save();
$s = new \App\Setting();
$s->section = '1top-menu';
$s->key = 'whatsup';
$s->type = 'text';
$s->title = 'WhatsApp';
$s->value = '+98936123456';
$s->save();
//
$s = new \App\Setting();
$s->section = '1top-menu';
$s->key = 'whatsup2';
$s->type = 'text';
$s->title = 'WhatsApp2';
$s->value = '+98936123456';
$s->save();
$s = new \App\Setting();
$s->section = '1top-menu';
$s->key = 'pic[left]';
$s->type = 'image';
$s->title = 'عکس سمت راست';
$s->value = null;
$s->save();
$s = new \App\Setting();
$s->section = '1top-menu';
$s->key = 'pic[right]';
$s->type = 'image';
$s->title = 'عکس سمت چپ';
$s->value = null;
$s->save();
$s = new \App\Setting();
$s->section = 'footer';
$s->key = 'footer-sec1';
$s->type = 'category';
$s->title = 'پانویس قسمت اول';
$s->value = 1;
$s->save();
$s = new \App\Setting();
$s->section = 'footer';
$s->key = 'footer-sec2';
$s->type = 'category';
$s->title = 'پانویس قسمت دوم';
$s->value = 1;
$s->save();
$s = new \App\Setting();
$s->section = 'footer';
$s->key = 'footer-sec3';
$s->type = 'editor';
$s->title = 'پانویس قسمت سوم';
$s->value = 'کلیه حقوق برای مَه‌گالری محفوظ است &copy; 2020';
$s->save();
//
$s = new \App\Setting();
$s->section = 'footer';
$s->key = 'footer-copyright';
$s->type = 'text';
$s->title = 'کپی رایت';
$s->value = 'کلیه حقوق برای مَه‌گالری محفوظ است &copy; 2020';
$s->save();
//
//
// $s = new \App\Setting();
// $s->section = '2sec2';
// $s->key = 'sec2-title-1';
// $s->type = 'text';
// $s->title = 'عنوان ۱';
// $s->value = 'درباره دکتر منتظری';
// $s->save();
// $s = new \App\Setting();
// $s->section = '2sec2';
// $s->key = 'sec2-text-1';
// $s->type = 'editor';
// $s->title = 'متن ۱';
// $s->value = 'دکتر روشنک منتظری هدشی؛ در کنکور سراسری سال 1383 در رشته دندانپزشکی دانشگاه تهران پذیرفته شد. ایشان بعد از گذراندن دوره 3 ساله رزیدنتی و دریافت بورد تخصصی کودکان در سال 1393 مشغول به فعالیت خود به عنوان هیات علمی در بخش کودکان و همچنین فعالیت درمانی در شهر تهران شدند.';
// $s->save();
// $s = new \App\Setting();
// $s->section = '2sec2';
// $s->key = 'sec2-title-2';
// $s->type = 'text';
// $s->title = 'عنوان ۲';
// $s->value = 'خدمات بیهوشی کودکان';
// $s->save();
// $s = new \App\Setting();
// $s->section = '2sec2';
// $s->key = 'sec2-text-2';
// $s->type = 'editor';
// $s->title = 'متن ۲';
// $s->value = 'دکتر روشنک منتظری هدشی؛ در کنکور سراسری سال 1383 در رشته دندانپزشکی دانشگاه تهران پذیرفته شد. ایشان بعد از گذراندن دوره 3 ساله رزیدنتی و دریافت بورد تخصصی کودکان در سال 1393 مشغول به فعالیت خود به عنوان هیات علمی در بخش <br > <a href="#" class="btn btn-outline-light float-left">
// بیشتر بخوانید
// </a>';
// $s->save();
// $s = new \App\Setting();
// $s->section = '2sec2';
// $s->key = 'sec2-title-3';
// $s->type = 'text';
// $s->title = 'عنوان ۳';
// $s->value = 'ساعات کاری مطب';
// $s->save();
// $s = new \App\Setting();
// $s->section = '2sec2';
// $s->key = 'sec2-text-3';
// $s->type = 'editor';
// $s->title = 'متن ۳';
// $s->value = '<ul>
// <li>
// <span>
// شنبه
// </span>
// <b>
// 13-17
// </b>
// </li>
// <li>
// <span>
// یکشنبه
// </span>
// <b>
// 13-17
// </b>
// </li>
// <li>
// <span>
// دوشنبه
// </span>
// <b>
// 13-17
// </b>
// </li>
// </ul>';
// $s->save();
//
// $s = new \App\Setting();
// $s->section = '3sec3';
// $s->key = 'sec3-title';
// $s->type = 'text';
// $s->title = ' عنوان بخش دوم';
// $s->value = 'برای شاد کردن دنیا مهمترین چیزِ مورد نیاز هوشمندی است.';
// $s->save();
// $s = new \App\Setting();
// $s->section = '3sec3';
// $s->key = 'sec3-text';
// $s->type = 'longtext';
// $s->title = ' متن بخش دوم';
// $s->value = 'افراد گروه سوم از اهمیت به پایان رساندن آگاه هستند. آنها با تفکر منطقی، طرحی روشن ارائه می‌کنند. آنها نه تنها برای پایان دادن به پروژه‌ی خود در آینده برنامه ریزی می‌کنند، بلکه به تمام نتایج و عواقب اجرای آن برنامه هم می‌اندیشند. این افراد کسانی هستند که هنر به پایان رساندن را می‌دانند.';
// $s->save();
// $s = new \App\Setting();
// $s->section = '3sec3';
// $s->key = 'sec3-category';
// $s->type = 'category';
// $s->title = 'بخش دوم سرفصل';
// $s->value = '8';
// $s->save();
// $s = new \App\Setting();
// $s->section = '4sec';
// $s->key = 'sec4-category';
// $s->type = 'category';
// $s->title = 'بخش سوم سرفصل';
// $s->value = '2';
// $s->save();
// $s = new \App\Setting();
// $s->section = '5sec';
// $s->key = 'sec5-category';
// $s->type = 'category';
// $s->title = 'بخش چهارم سرفصل';
// $s->value = '9';
// $s->save();
// $s = new \App\Setting();
// $s->section = '6sec';
// $s->key = 'sec6-category';
// $s->type = 'category';
// $s->title = 'بخش پنجم سرفصل';
// $s->value = '10';
// $s->save();
//
// $s = new \App\Setting();
// $s->section = '6sec';
// $s->key = 'pic[side]';
// $s->type = 'image';
// $s->title = 'بخش پنجم عکس کنار';
// $s->value = null;
// $s->save();
// $s = new \App\Setting();
// $s->section = '6sec';
// $s->key = 'pic[parallax]';
// $s->type = 'image';
// $s->title = 'عکس پارلاکس';
// $s->value = null;
// $s->save();
//
// $s = new \App\Setting();
// $s->section = '7sec';
// $s->key = 'sec7-category';
// $s->type = 'category';
// $s->title = 'بخش ششم سرفصل';
// $s->value = '8';
// $s->save();
// $s = new \App\Setting();
// $s->section = '8sec';
// $s->key = 'sec8-category';
// $s->type = 'category';
// $s->title = 'بخش آینده سرفصل';
// $s->value = '9';
// $s->save();
//
//
// $s->section = 'footer';
// $s->key = 'footer-copyright';
// $s->type = 'text';
// $s->title = 'کپی رایت';
// $s->value = 'کلیه حقوق برای دکتر منتظری محقوظ است &copy; 2020';
// $s->save();
// $s = new \App\Setting();
// $s->section = 'footer';
// $s->key = 'footer-title-1';
// $s->type = 'text';
// $s->title = 'عنوان 1';
// $s->value = 'درباره دکتر منتظری';
// $s->save();
// $s = new \App\Setting();
// $s->section = 'footer';
// $s->key = 'footer-text-1';
// $s->type = 'editor';
// $s->title = 'متن 1';
// $s->value = 'دکتر روشنک منتظری هدشی؛ در کنکور سراسری سال 1383 در رشته دندانپزشکی دانشگاه تهران پذیرفته شد. ایشان بعد از گذراندن دوره 3 ساله رزیدنتی و دریافت بورد تخصصی کودکان در سال 1393 مشغول به فعالیت خود به عنوان هیات علمی در بخش کودکان و همچنین فعالیت درمانی در شهر تهران شدند.';
// $s->save();
// $s = new \App\Setting();
// $s->section = 'footer';
// $s->key = 'footer-title-2';
// $s->type = 'text';
// $s->title = 'عنوان 2';
// $s->value = 'درباره دکتر منتظری';
// $s->save();
// $s = new \App\Setting();
// $s->section = 'footer';
// $s->key = 'footer-text-2';
// $s->type = 'editor';
// $s->title = 'متن 2';
// $s->value = '<ul class="ulist">
// <li>
// <a href="" class="text-light">تست شماره 1</a>
// </li>
// <li>
// <a href="" class="text-light">تست شماره 2</a>
// </li>
// <li>
// <a href="" class="text-light">تست شماره 3</a>
// </li>
// <li>
// <a href="" class="text-light">تست شماره 4</a>
// </li>
// <li>
// <a href="" class="text-light">تست شماره 5</a>
// </li>
// </ul>';
// $s->save();
// $s = new \App\Setting();
// $s->section = 'footer';
// $s->key = 'footer-title-3';
// $s->type = 'text';
// $s->title = 'عنوان 3';
// $s->value = 'درباره دکتر منتظری';
// $s->save();
//
// $s = new \App\Setting();
// $s->section = 'footer';
// $s->key = 'footer-text-3';
// $s->type = 'editor';
// $s->title = 'متن 3';
// $s->value = '<ul class="ulist">
// <li>
// <a href="" class="text-light">تست شماره 1</a>
// </li>
// <li>
// <a href="" class="text-light">تست شماره 2</a>
// </li>
// <li>
// <a href="" class="text-light">تست شماره 3</a>
// </li>
// <li>
// <a href="" class="text-light">تست شماره 4</a>
// </li>
// <li>
// <a href="" class="text-light">تست شماره 5</a>
// </li>
// </ul>';
// $s->save();
// $s = new \App\Setting();
// $s->section = 'footer';
// $s->key = 'footer-title-4';
// $s->type = 'text';
// $s->title = 'عنوان 4';
// $s->value = 'درباره دکتر منتظری';
// $s->save();
// $s = new \App\Setting();
// $s->section = 'footer';
// $s->key = 'footer-text-4';
// $s->type = 'editor';
// $s->title = 'متن 4';
// $s->value = 'دکتر روشنک منتظری هدشی؛ در کنکور سراسری سال 3383 در رشته دندانپزشکی دانشگاه تهران پذیرفته شد. ایشان بعد از گذراندن دوره 3 ساله رزیدنتی و دریافت بورد تخصصی کودکان در سال 3393 مشغول به فعالیت خود به عنوان هیات علمی در بخش کودکان و همچنین فعالیت درمانی در شهر تهران شدند.';
// $s->save();
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 710 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 27 KiB

@ -1,79 +0,0 @@
<?xml version="1.0" encoding="windows-1252"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 427.1 427.1" style="enable-background:new 0 0 427.1 427.1;" xml:space="preserve">
<g>
<g>
<path d="M93.55,156.5c-31.5,0-57,25.5-57,57s25.5,57,57,57s57-25.5,57-57C150.45,182.1,124.95,156.6,93.55,156.5z M93.55,250.5 c-20.4,0-37-16.5-37-37c0-20.4,16.5-37,37-37c20.4,0,37,16.5,37,37C130.45,233.9,113.95,250.4,93.55,250.5z"/>
</g>
</g>
<g>
<g>
<path d="M380.55,172.5h-203.5c-5.5,0-10,4.5-10,10s4.5,10,10,10h203.5c5.5,0,10-4.5,10-10S386.05,172.5,380.55,172.5z"/>
</g>
</g>
<g>
<g>
<path d="M286.65,234.5h-109.6c-5.5,0-10,4.5-10,10s4.4,10,10,10h109.6c5.5,0,10-4.5,10-10S292.15,234.5,286.65,234.5z"/>
</g>
</g>
<g>
<g>
<path d="M93.55,0c-31.5,0-57,25.5-57,57s25.5,57,57,57s57-25.5,57-57C150.45,25.5,124.95,0,93.55,0z M93.55,93.9 c-20.4,0-37-16.5-37-37s16.5-37,37-37c20.4,0,37,16.5,37,37C130.45,77.4,113.95,93.9,93.55,93.9z"/>
</g>
</g>
<g>
<g>
<path d="M380.55,15.5h-203.5c-5.5,0-10,4.5-10,10s4.5,10,10,10h203.5c5.5,0,10-4.5,10-10S386.05,15.5,380.55,15.5z"/>
</g>
</g>
<g>
<g>
<path d="M286.65,78.5h-109.6c-5.5,0-10,4.5-10,10s4.4,10,10,10h109.6c5.5,0,10-4.5,10-10S292.15,78.5,286.65,78.5z"/>
</g>
</g>
<g>
<g>
<path d="M93.55,313.1c-31.5,0-57,25.5-57,57s25.5,57,57,57s57-25.5,57-57C150.45,338.6,124.95,313.1,93.55,313.1z M93.55,407 c-20.4,0-37-16.5-37-37c0-20.4,16.5-37,37-37c20.4,0,37,16.5,37,37C130.45,390.5,113.95,407,93.55,407z"/>
</g>
</g>
<g>
<g>
<path d="M380.55,328.5h-203.5c-5.5,0-10,4.5-10,10s4.5,10,10,10h203.5c5.5,0,10-4.5,10-10S386.05,328.5,380.55,328.5z"/>
</g>
</g>
<g>
<g>
<path d="M286.65,391.5h-109.6c-5.5,0-10,4.5-10,10s4.5,10,10,10h109.6c5.5,0,10-4.5,10-10S292.15,391.5,286.65,391.5z"/>
</g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

@ -1,2 +1,2 @@
User-agent: *
Disallow:
Disallow: /card-add

@ -72,18 +72,10 @@
<div class="container mb-5">
<div class="row mt-3">
<div class="col-md-6">
<div class="card">
<div class="card-body">
{!! $chartjs->render() !!}
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-body">
{!! $chartjs2->render() !!}
</div>
</div>
</div>
</div>
</div>

@ -1,64 +0,0 @@
@extends('website.layout')
@section('content')
<div id="main-conetent">
<section>
<div class="container overflow-hidden wow bounceInUp" data-wow-delay="1s"
data-wow-duration="2s" >
<div class="owl-single owl-carousel">
@foreach( $sliders as $sld )
<div class="item">
<img src="{{$sld->imgUrl()}}" alt="{{strip_tags($sld->body)}}">
</div>
@endforeach
</div>
</div>
</section>
<br>
<section>
<div class="container">
<div class="row wow bounceInRight" data-wow-delay="1.2s"
data-wow-duration="2s">
<div class="col-md-6 mb-3">
<img src="{{asset('images/left.jpg')}}" alt="">
</div>
<div class="col-md-6 mb-3">
<img src="{{asset('images/right.jpg')}}" alt="">
</div>
</div>
</div>
</section>
<section>
<div class="container">
<div class="index-list">
<div class="row">
@foreach($cats as $cat)
<div class="col-md-4 wow fadeIn" data-wow-delay="1.1s">
<a href="{{route('cat',$cat->slug)}}" class="index-list-item" style="background-image: url('{{$cat->thumbUrl()}}')">
<div>
{{$cat->name}}
<br>
<div class="btn btn-sm btn-gold">
مشاهده
</div>
</div>
</a>
</div>
@endforeach
</div>
</div>
</div>
</section>
@if ($vid != null)
<section id="parallax" style="background-image:url('{{asset('client/img/para.jpg')}}')">
<div class="container text-center">
<h2>
{{$vid->name}}
</h2>
<video src="{{$vid->fileUrl()}}" poster="{{$vid->coverUrl()}}" controls style="width: 100%"></video>
</div>
</section>
@endif
@endsection

@ -1,162 +0,0 @@
<!doctype html>
<html lang="fa">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>
مه گالری
</title>
<meta name=description content="{{\App\Helpers\getSetting('desc')}}">
<meta name=keywords content="{{\App\Helpers\getSetting('keywords')}}">
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="stylesheet" href="{{asset('css/theme.css')}}">
</head>
<body dir="rtl">
<header>
<div id="preloader">
<img src="{{asset('client/img/preloader.gif')}}" alt="">
</div>
<div id="top">
<div class="row">
<div class="col-md-4 ltr">
<i class="fa fa-phone"></i>
{{\App\Helpers\getSetting('tel')}}
</div>
<div class="col-md-4 ltr">
<a href="https://api.whatsapp.com/send/?phone= {{\App\Helpers\getSetting('whatsup')}}&text=%D8%B3%D9%84%D8%A7%D9%85%D8%8C%20%D9%88%D9%82%D8%AA%20%D8%A8%D8%AE%DB%8C%D8%B1%D8%8C%20%D9%85%D9%86%20%D9%82%D8%B5%D8%AF%20%D8%A8%D8%B1%D9%82%D8%B1%D8%A7%D8%B1%DB%8C%20%D8%A7%D8%B1%D8%AA%D8%A8%D8%A7%D8%B7%20%D8%A8%D8%A7%20%D9%85%D9%87%E2%80%8C%DA%AF%D8%A7%D9%84%D8%B1%DB%8C%20%D8%B1%D8%A7%20%D8%AF%D8%A7%D8%B1%D9%85&app_absent=0">
<i class="fab fa-whatsapp"></i>
{{\App\Helpers\getSetting('whatsup')}}
</a>
</div>
<div class="col-md-4">
<i class="fa fa-dollar-sign"></i>
طلای خام (گرم): {{number_format( (int) \App\Helpers\getSetting('price'))}} تومان
</div>
</div>
</div>
<div id="menu">
<div class="item">
<div class="toggle">
<div class="fa fa-bars"></div>
</div>
<a data-toggle="modal" data-target=".bd-example-modal-sm">
<i class="fa fa-search"></i>
</a>
</div>
<div class="item text-center">
<a href="{{route('welcome')}}">
<img src="{{asset('client/img/mahlogo.svg')}}" id="logo" alt="">
</a>
</div>
<div class="item text-right">
<a href="{{route('card.show')}}">
<span class="badge badge-success badge-pill" id="card-count">@if (count(unserialize(session('card',serialize([])))) > 0)
{{count(unserialize(session('card')))}}
@endif</span>
<i class="fa fa-shopping-bag"></i>
<span>
سبد خرید
</span>
</a>
@if (Auth::guard('customer')->check())
<a href="{{route('customer')}}">
<i class="fa fa-user"></i>
<span>
پروفایل
</span>
@else
<a href="{{route('sign')}}">
<i class="fa fa-user"></i>
<span>
ثبت نام یا ورود
</span>
@endif
</a>
</div>
</div>
<nav id="main-nav">
<ul>
<li><a href="/">{{config('app.name')}}</a></li>
{!! App\Helpers\showCats() !!}
{!! \App\Helpers\MenuShowByName('menu') !!}
</ul>
</nav>
<div class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm modal-dialog-centered">
<form action="{{route('search')}}" class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">جستجو در مه‌گالری</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<input type="search" name="q" placeholder="جستجو..." class="form-control" value="">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">انصراف</button>
<button type="submit" class="btn btn-sm btn-warning"> جستجو </button>
</div>
</form>
</div>
</div>
</header>
@yield('content')
<footer class="wow fadeInUp">
<div class="container">
<div class="row">
<div class="col-lg-4 col-6">
<h3>
مه گالری
</h3>
<ul class="border-right-0">
{{-- @foreach(\Xmen\StarterKit\Models\Category::whereId(\App\Helpers\getSetting('footer-sec1'))->first()->posts as $p)--}}
{{-- <li>--}}
{{-- <a href="{{route('n.show',$p->slug)}}">--}}
{{-- {{$p->title}}--}}
{{-- </a>--}}
{{-- </li>--}}
{{-- @endforeach--}}
</ul>
</div>
<div class="col-lg-4 col-6">
<h3>
{{-- {{\Xmen\StarterKit\Models\Category::whereId(\App\Helpers\getSetting('footer-sec2'))->first()->name}}--}}
</h3>
<ul>
{{-- @foreach(\Xmen\StarterKit\Models\Category::whereId(\App\Helpers\getSetting('footer-sec2'))->first()->posts as $p)--}}
{{-- <li>--}}
{{-- <a href="{{route('n.show',$p->slug)}}">--}}
{{-- {{$p->title}}--}}
{{-- </a>--}}
{{-- </li>--}}
{{-- @endforeach--}}
</ul>
</div>
<div class="col-lg-4 col-12 text-center">
<div class="p-3"></div>
{!! \App\Helpers\getSetting('footer-sec3') !!}
</div>
<div class="col-lg-12">
<hr>
<div class="p-4 text-center">
{{\App\Helpers\getSetting('footer-copyright')}}
</div>
</div>
</div>
</div>
</footer>
<a id="whatsapp" target="_blank"
href="https://api.whatsapp.com/send/?phone= {{\App\Helpers\getSetting('whatsup2')}}&text=%D8%B3%D9%84%D8%A7%D9%85%D8%8C%20%D9%88%D9%82%D8%AA%20%D8%A8%D8%AE%DB%8C%D8%B1%D8%8C%20%D9%85%D9%86%20%D9%85%DB%8C%E2%80%8C%D8%AE%D9%88%D8%A7%D9%87%D9%85%20%D9%82%D8%B5%D8%AF%20%D8%A8%D8%B1%D9%82%D8%B1%D8%A7%D8%B1%DB%8C%20%D8%A7%D8%B1%D8%AA%D8%A8%D8%A7%D8%B7%20%D8%A8%D8%A7%20%D9%85%D9%87%E2%80%8C%DA%AF%D8%A7%D9%84%D8%B1%DB%8C%20%D8%B1%D8%A7%20%D8%AF%D8%A7%D8%B1%D9%85&app_absent=0">
<i class="fab fa-whatsapp"></i>
</a>
<input type="hidden" id="card-url" value="{{route('card.add','')}}"/>
<script src="{{asset('client/js/wow.min.js')}}"></script>
<script src="{{asset('js/theme.js')}}" defer></script>
</body>
</html>
Loading…
Cancel
Save