This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Faça o calculo do total destes produtos que estão no carrinho | |
const cart = [ | |
{ | |
name: 'Pizza de calebreza', | |
amount: 10, | |
qty: 2, | |
addons: [ | |
{ | |
'name': 'Extra calabreza', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<table | |
class="printer-ticket" | |
> | |
<thead> | |
<tr> | |
<th | |
class="title" | |
colspan="3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function duplicate(Product $product) | |
{ | |
$this->authorize('duplicateProduct', $product); | |
$newProduct = $product->replicate(); | |
$newProduct->name = $product->name . " [Cópia]"; | |
$newProduct->save(); | |
$product->load('variations.items'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<template v-if="initQrcode"> | |
<TWAlert | |
v-if="response.variant === 'danger'" | |
:variant="response.variant" | |
dismissible | |
> | |
<span v-html="response.message" /> | |
</TWAlert> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div | |
id="exampleModal" | |
ref="modal" | |
class="modal fade" | |
:class="{ show: active, 'd-block': active }" | |
data-bs-backdrop="static" | |
data-bs-keyboard="false" | |
tabindex="-1" | |
aria-hidden="true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<ValidationObserver | |
ref="formBusinesPix" | |
tag="form" | |
@submit.stop.prevent="save()" | |
> | |
<div class="grid gap-10"> | |
<PaymentPixForm | |
ref="businessPixForm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<ValidationObserver ref="form"> | |
<form> | |
<TwCard | |
shadow | |
rounded | |
no-body | |
elevated="lg" | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\V1\User\Requests; | |
use Illuminate\Foundation\Http\FormRequest; | |
use App\V1\User\Rules\belongstate; | |
class UserUpdateRequest extends FormRequest | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Acme\Services; | |
use App\Acme\Models\Invoice; | |
use App\Acme\Models\InvoiceItem; | |
use App\Acme\Models\Product; | |
use App\Acme\Models\User; | |
use App\Acme\Resources\InvoiceResource; | |
use App\Acme\Resources\UserResource; |
NewerOlder