This file contains hidden or 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
| <x-guest-layout> | |
| <header class="w-full py-4 bg-red-600 mb-20"> | |
| <div class="max-w-7xl mx-auto flex justify-between"> | |
| <h2 class="text-white text-xl font-bold">{{$restaurant?->restaurant}}</h2> | |
| <p> | |
| <span class="text-white font-bold">{{$restaurant?->phone}} / {{$restaurant?->phone}} </span> | |
| </p> | |
| </div> | |
| </header> |
This file contains hidden or 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\Http\Livewire\Tenants\RestaurantMenu; | |
| use App\Models\Tenant\Menu; | |
| use Livewire\Component; | |
| class Delete extends Component | |
| { | |
| public $menu; |
This file contains hidden or 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\Http\Livewire\Tenants\RestaurantMenu; | |
| use App\Models\Tenant\Restaurant; | |
| use App\Models\Tenant\Menu; | |
| use Livewire\Component; | |
| use Livewire\WithFileUploads; | |
| class Item extends Component |
This file contains hidden or 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\Http\Livewire\Tenants\RestaurantMenu; | |
| use App\Models\Tenant\Menu; | |
| use Livewire\Component; | |
| class Index extends Component | |
| { | |
| protected $listeners = ['menuItemUpdated' => '$refresh', 'menuItemDeleted' => '$refresh']; |
This file contains hidden or 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\Http\Livewire\Tenants; | |
| use Livewire\Component; | |
| use App\Models\Tenant\Restaurant as RestaurantModel; | |
| class Restaurant extends Component | |
| { | |
| public ?RestaurantModel $restaurant; |
This file contains hidden or 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
| -- MySQL Script generated by MySQL Workbench | |
| -- Tue Aug 9 01:29:27 2022 | |
| -- Model: New Model Version: 1.0 | |
| -- MySQL Workbench Forward Engineering | |
| -- ----------------------------------------------------- | |
| -- Schema controle_estoque | |
| -- ----------------------------------------------------- | |
| -- ----------------------------------------------------- |
This file contains hidden or 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 setShippingValueAttribute($prop) | |
| { | |
| $this->attributes['shipping_value'] = $prop * 100; | |
| } | |
| public function getShippingValueAttribute() | |
| { | |
| return $this->attributes['shipping_value'] / 100; |
This file contains hidden or 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\Http\Controllers\Front; | |
| use App\Http\Controllers\Controller; | |
| use App\Models\Store; | |
| use Illuminate\Http\Request; | |
| class MyOrdersController extends Controller | |
| { |
This file contains hidden or 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 | |
| class CartController extends Controller | |
| { | |
| //... | |
| public function shipping(Request $request) | |
| { | |
| session()->put('shipping_value', $request->shipping_value); | |
| return response()->json([], 201); |
This file contains hidden or 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\Models; | |
| use App\Traits\BelongsTenantScope; | |
| use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| use Illuminate\Database\Eloquent\Model; | |
| class ShippingOption extends Model | |
| { |