Card + Products
This commit is contained in:
parent
5ff57a21a7
commit
c129a44383
38 changed files with 4489 additions and 1789 deletions
546
_ide_helper.php
546
_ide_helper.php
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
/**
|
||||
* A helper file for Laravel 5, to provide autocomplete information to your IDE
|
||||
* Generated for Laravel 5.6.39 on 2018-11-14 17:57:01.
|
||||
* Generated for Laravel 5.6.39 on 2018-11-22 15:17:35.
|
||||
*
|
||||
* This file should not be included in your code, only analyzed by your IDE!
|
||||
*
|
||||
|
|
@ -17404,6 +17404,546 @@ namespace Yajra\DataTables\Facades {
|
|||
|
||||
}
|
||||
|
||||
namespace App\Services\Facade {
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
class Yard {
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param $shipping
|
||||
* @static
|
||||
*/
|
||||
public static function setShipping($shipping)
|
||||
{
|
||||
return \App\Services\Yard::setShipping($shipping);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param null $decimals
|
||||
* @param null $decimalPoint
|
||||
* @param null $thousandSeperator
|
||||
* @return string
|
||||
* @static
|
||||
*/
|
||||
public static function shipping($decimals = null, $decimalPoint = null, $thousandSeperator = null)
|
||||
{
|
||||
return \App\Services\Yard::shipping($decimals, $decimalPoint, $thousandSeperator);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @static
|
||||
*/
|
||||
public static function totalWithShipping($decimals = null, $decimalPoint = null, $thousandSeperator = null)
|
||||
{
|
||||
return \App\Services\Yard::totalWithShipping($decimals, $decimalPoint, $thousandSeperator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the total tax of the items in the cart.
|
||||
*
|
||||
* @param int $decimals
|
||||
* @param string $decimalPoint
|
||||
* @param string $thousandSeperator
|
||||
* @return float
|
||||
* @static
|
||||
*/
|
||||
public static function taxWithShipping($decimals = null, $decimalPoint = null, $thousandSeperator = null)
|
||||
{
|
||||
return \App\Services\Yard::taxWithShipping($decimals, $decimalPoint, $thousandSeperator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the subtotal (total - tax) of the items in the cart.
|
||||
*
|
||||
* @param int $decimals
|
||||
* @param string $decimalPoint
|
||||
* @param string $thousandSeperator
|
||||
* @return float
|
||||
* @static
|
||||
*/
|
||||
public static function subtotalWithShipping($decimals = null, $decimalPoint = null, $thousandSeperator = null)
|
||||
{
|
||||
return \App\Services\Yard::subtotalWithShipping($decimals, $decimalPoint, $thousandSeperator);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @static
|
||||
*/
|
||||
public static function cardCalcSubTotal($price)
|
||||
{
|
||||
return \App\Services\Yard::cardCalcSubTotal($price);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the current cart instance.
|
||||
*
|
||||
* @param string|null $instance
|
||||
* @return \Gloudemans\Shoppingcart\Cart
|
||||
* @static
|
||||
*/
|
||||
public static function instance($instance = null)
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
return \App\Services\Yard::instance($instance);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current cart instance.
|
||||
*
|
||||
* @return string
|
||||
* @static
|
||||
*/
|
||||
public static function currentInstance()
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
return \App\Services\Yard::currentInstance();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an item to the cart.
|
||||
*
|
||||
* @param mixed $id
|
||||
* @param mixed $name
|
||||
* @param int|float $qty
|
||||
* @param float $price
|
||||
* @param array $options
|
||||
* @return \Gloudemans\Shoppingcart\CartItem
|
||||
* @static
|
||||
*/
|
||||
public static function add($id, $name = null, $qty = null, $price = null, $options = array())
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
return \App\Services\Yard::add($id, $name, $qty, $price, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the cart item with the given rowId.
|
||||
*
|
||||
* @param string $rowId
|
||||
* @param mixed $qty
|
||||
* @return \Gloudemans\Shoppingcart\CartItem
|
||||
* @static
|
||||
*/
|
||||
public static function update($rowId, $qty)
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
return \App\Services\Yard::update($rowId, $qty);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the cart item with the given rowId from the cart.
|
||||
*
|
||||
* @param string $rowId
|
||||
* @return void
|
||||
* @static
|
||||
*/
|
||||
public static function remove($rowId)
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
\App\Services\Yard::remove($rowId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a cart item from the cart by its rowId.
|
||||
*
|
||||
* @param string $rowId
|
||||
* @return \Gloudemans\Shoppingcart\CartItem
|
||||
* @static
|
||||
*/
|
||||
public static function get($rowId)
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
return \App\Services\Yard::get($rowId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy the current cart instance.
|
||||
*
|
||||
* @return void
|
||||
* @static
|
||||
*/
|
||||
public static function destroy()
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
\App\Services\Yard::destroy();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the content of the cart.
|
||||
*
|
||||
* @return \Illuminate\Support\Collection
|
||||
* @static
|
||||
*/
|
||||
public static function content()
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
return \App\Services\Yard::content();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the number of items in the cart.
|
||||
*
|
||||
* @return int|float
|
||||
* @static
|
||||
*/
|
||||
public static function count()
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
return \App\Services\Yard::count();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the total price of the items in the cart.
|
||||
*
|
||||
* @param int $decimals
|
||||
* @param string $decimalPoint
|
||||
* @param string $thousandSeperator
|
||||
* @return string
|
||||
* @static
|
||||
*/
|
||||
public static function total($decimals = null, $decimalPoint = null, $thousandSeperator = null)
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
return \App\Services\Yard::total($decimals, $decimalPoint, $thousandSeperator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the total tax of the items in the cart.
|
||||
*
|
||||
* @param int $decimals
|
||||
* @param string $decimalPoint
|
||||
* @param string $thousandSeperator
|
||||
* @return float
|
||||
* @static
|
||||
*/
|
||||
public static function tax($decimals = null, $decimalPoint = null, $thousandSeperator = null)
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
return \App\Services\Yard::tax($decimals, $decimalPoint, $thousandSeperator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the subtotal (total - tax) of the items in the cart.
|
||||
*
|
||||
* @param int $decimals
|
||||
* @param string $decimalPoint
|
||||
* @param string $thousandSeperator
|
||||
* @return float
|
||||
* @static
|
||||
*/
|
||||
public static function subtotal($decimals = null, $decimalPoint = null, $thousandSeperator = null)
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
return \App\Services\Yard::subtotal($decimals, $decimalPoint, $thousandSeperator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Search the cart content for a cart item matching the given search closure.
|
||||
*
|
||||
* @param \Closure $search
|
||||
* @return \Illuminate\Support\Collection
|
||||
* @static
|
||||
*/
|
||||
public static function search($search)
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
return \App\Services\Yard::search($search);
|
||||
}
|
||||
|
||||
/**
|
||||
* Associate the cart item with the given rowId with the given model.
|
||||
*
|
||||
* @param string $rowId
|
||||
* @param mixed $model
|
||||
* @return void
|
||||
* @static
|
||||
*/
|
||||
public static function associate($rowId, $model)
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
\App\Services\Yard::associate($rowId, $model);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the tax rate for the cart item with the given rowId.
|
||||
*
|
||||
* @param string $rowId
|
||||
* @param int|float $taxRate
|
||||
* @return void
|
||||
* @static
|
||||
*/
|
||||
public static function setTax($rowId, $taxRate)
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
\App\Services\Yard::setTax($rowId, $taxRate);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store an the current instance of the cart.
|
||||
*
|
||||
* @param mixed $identifier
|
||||
* @return void
|
||||
* @static
|
||||
*/
|
||||
public static function store($identifier)
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
\App\Services\Yard::store($identifier);
|
||||
}
|
||||
|
||||
/**
|
||||
* Restore the cart with the given identifier.
|
||||
*
|
||||
* @param mixed $identifier
|
||||
* @return void
|
||||
* @static
|
||||
*/
|
||||
public static function restore($identifier)
|
||||
{
|
||||
//Method inherited from \Gloudemans\Shoppingcart\Cart
|
||||
\App\Services\Yard::restore($identifier);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
namespace Gloudemans\Shoppingcart\Facades {
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
class Cart {
|
||||
|
||||
/**
|
||||
* Set the current cart instance.
|
||||
*
|
||||
* @param string|null $instance
|
||||
* @return \Gloudemans\Shoppingcart\Cart
|
||||
* @static
|
||||
*/
|
||||
public static function instance($instance = null)
|
||||
{
|
||||
return \Gloudemans\Shoppingcart\Cart::instance($instance);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current cart instance.
|
||||
*
|
||||
* @return string
|
||||
* @static
|
||||
*/
|
||||
public static function currentInstance()
|
||||
{
|
||||
return \Gloudemans\Shoppingcart\Cart::currentInstance();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an item to the cart.
|
||||
*
|
||||
* @param mixed $id
|
||||
* @param mixed $name
|
||||
* @param int|float $qty
|
||||
* @param float $price
|
||||
* @param array $options
|
||||
* @return \Gloudemans\Shoppingcart\CartItem
|
||||
* @static
|
||||
*/
|
||||
public static function add($id, $name = null, $qty = null, $price = null, $options = array())
|
||||
{
|
||||
return \Gloudemans\Shoppingcart\Cart::add($id, $name, $qty, $price, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the cart item with the given rowId.
|
||||
*
|
||||
* @param string $rowId
|
||||
* @param mixed $qty
|
||||
* @return \Gloudemans\Shoppingcart\CartItem
|
||||
* @static
|
||||
*/
|
||||
public static function update($rowId, $qty)
|
||||
{
|
||||
return \Gloudemans\Shoppingcart\Cart::update($rowId, $qty);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the cart item with the given rowId from the cart.
|
||||
*
|
||||
* @param string $rowId
|
||||
* @return void
|
||||
* @static
|
||||
*/
|
||||
public static function remove($rowId)
|
||||
{
|
||||
\Gloudemans\Shoppingcart\Cart::remove($rowId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a cart item from the cart by its rowId.
|
||||
*
|
||||
* @param string $rowId
|
||||
* @return \Gloudemans\Shoppingcart\CartItem
|
||||
* @static
|
||||
*/
|
||||
public static function get($rowId)
|
||||
{
|
||||
return \Gloudemans\Shoppingcart\Cart::get($rowId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy the current cart instance.
|
||||
*
|
||||
* @return void
|
||||
* @static
|
||||
*/
|
||||
public static function destroy()
|
||||
{
|
||||
\Gloudemans\Shoppingcart\Cart::destroy();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the content of the cart.
|
||||
*
|
||||
* @return \Illuminate\Support\Collection
|
||||
* @static
|
||||
*/
|
||||
public static function content()
|
||||
{
|
||||
return \Gloudemans\Shoppingcart\Cart::content();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the number of items in the cart.
|
||||
*
|
||||
* @return int|float
|
||||
* @static
|
||||
*/
|
||||
public static function count()
|
||||
{
|
||||
return \Gloudemans\Shoppingcart\Cart::count();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the total price of the items in the cart.
|
||||
*
|
||||
* @param int $decimals
|
||||
* @param string $decimalPoint
|
||||
* @param string $thousandSeperator
|
||||
* @return string
|
||||
* @static
|
||||
*/
|
||||
public static function total($decimals = null, $decimalPoint = null, $thousandSeperator = null)
|
||||
{
|
||||
return \Gloudemans\Shoppingcart\Cart::total($decimals, $decimalPoint, $thousandSeperator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the total tax of the items in the cart.
|
||||
*
|
||||
* @param int $decimals
|
||||
* @param string $decimalPoint
|
||||
* @param string $thousandSeperator
|
||||
* @return float
|
||||
* @static
|
||||
*/
|
||||
public static function tax($decimals = null, $decimalPoint = null, $thousandSeperator = null)
|
||||
{
|
||||
return \Gloudemans\Shoppingcart\Cart::tax($decimals, $decimalPoint, $thousandSeperator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the subtotal (total - tax) of the items in the cart.
|
||||
*
|
||||
* @param int $decimals
|
||||
* @param string $decimalPoint
|
||||
* @param string $thousandSeperator
|
||||
* @return float
|
||||
* @static
|
||||
*/
|
||||
public static function subtotal($decimals = null, $decimalPoint = null, $thousandSeperator = null)
|
||||
{
|
||||
return \Gloudemans\Shoppingcart\Cart::subtotal($decimals, $decimalPoint, $thousandSeperator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Search the cart content for a cart item matching the given search closure.
|
||||
*
|
||||
* @param \Closure $search
|
||||
* @return \Illuminate\Support\Collection
|
||||
* @static
|
||||
*/
|
||||
public static function search($search)
|
||||
{
|
||||
return \Gloudemans\Shoppingcart\Cart::search($search);
|
||||
}
|
||||
|
||||
/**
|
||||
* Associate the cart item with the given rowId with the given model.
|
||||
*
|
||||
* @param string $rowId
|
||||
* @param mixed $model
|
||||
* @return void
|
||||
* @static
|
||||
*/
|
||||
public static function associate($rowId, $model)
|
||||
{
|
||||
\Gloudemans\Shoppingcart\Cart::associate($rowId, $model);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the tax rate for the cart item with the given rowId.
|
||||
*
|
||||
* @param string $rowId
|
||||
* @param int|float $taxRate
|
||||
* @return void
|
||||
* @static
|
||||
*/
|
||||
public static function setTax($rowId, $taxRate)
|
||||
{
|
||||
\Gloudemans\Shoppingcart\Cart::setTax($rowId, $taxRate);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store an the current instance of the cart.
|
||||
*
|
||||
* @param mixed $identifier
|
||||
* @return void
|
||||
* @static
|
||||
*/
|
||||
public static function store($identifier)
|
||||
{
|
||||
\Gloudemans\Shoppingcart\Cart::store($identifier);
|
||||
}
|
||||
|
||||
/**
|
||||
* Restore the cart with the given identifier.
|
||||
*
|
||||
* @param mixed $identifier
|
||||
* @return void
|
||||
* @static
|
||||
*/
|
||||
public static function restore($identifier)
|
||||
{
|
||||
\Gloudemans\Shoppingcart\Cart::restore($identifier);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
namespace Laracasts\Flash {
|
||||
|
||||
/**
|
||||
|
|
@ -19876,6 +20416,10 @@ namespace {
|
|||
|
||||
class DataTables extends \Yajra\DataTables\Facades\DataTables {}
|
||||
|
||||
class Yard extends \App\Services\Facade\Yard {}
|
||||
|
||||
class Cart extends \Gloudemans\Shoppingcart\Facades\Cart {}
|
||||
|
||||
class Flash extends \Laracasts\Flash\Flash {}
|
||||
|
||||
class Html extends \Collective\Html\HtmlFacade {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue