refactor: mengelompokan datatable dan form ke folder sesuai seperti livewire nya dan mnyesuaikan dengan perubahannya
This commit is contained in:
parent
e1b96b2e2f
commit
ed7ffd0d41
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Datatable;
|
||||
namespace App\Livewire\Datatable\Studio\Catalog;
|
||||
|
||||
use App\Models\Bottle;
|
||||
use App\Traits\Datatable\WithConfiguration;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Datatable;
|
||||
namespace App\Livewire\Datatable\Studio\Catalog;
|
||||
|
||||
use App\Models\Brand;
|
||||
use App\Traits\Datatable\WithConfiguration;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Datatable;
|
||||
namespace App\Livewire\Datatable\Studio\Catalog;
|
||||
|
||||
use App\Models\Category;
|
||||
use App\Traits\Datatable\WithConfiguration;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Datatable;
|
||||
namespace App\Livewire\Datatable\Studio\Catalog;
|
||||
|
||||
use App\Models\Perfume;
|
||||
use App\Traits\Datatable\WithAppendColumn;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Datatable;
|
||||
namespace App\Livewire\Datatable\Studio\Catalog;
|
||||
|
||||
use App\Models\Product;
|
||||
use App\Traits\Datatable\WithAppendColumn;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Datatable;
|
||||
namespace App\Livewire\Datatable\Studio\Finance;
|
||||
|
||||
use App\Models\Expense;
|
||||
use App\Traits\Datatable\WithConfiguration;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Datatable;
|
||||
namespace App\Livewire\Datatable\Studio\Loyalty;
|
||||
|
||||
use App\Models\Customer;
|
||||
use App\Traits\Datatable\WithAppendColumn;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Datatable;
|
||||
namespace App\Livewire\Datatable\Studio\Loyalty;
|
||||
|
||||
use App\Models\Tier;
|
||||
use App\Traits\Datatable\WithAppendColumn;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Datatable;
|
||||
namespace App\Livewire\Datatable\Studio\Loyalty;
|
||||
|
||||
use App\Models\Voucher;
|
||||
use App\Traits\Datatable\WithAppendColumn;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Datatable;
|
||||
namespace App\Livewire\Datatable\Studio\Master;
|
||||
|
||||
use App\Enums\Day;
|
||||
use App\Enums\OutletStatus;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Datatable;
|
||||
namespace App\Livewire\Datatable\Studio\Master;
|
||||
|
||||
use App\Enums\UserStatus;
|
||||
use App\Models\Employee;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Auth;
|
||||
|
||||
use App\Enums\Gender;
|
||||
use App\Enums\UserStatus;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Catalog;
|
||||
|
||||
use App\Models\Bottle;
|
||||
use App\Rules\UnsignedInteger;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Catalog;
|
||||
|
||||
use App\Models\Brand;
|
||||
use App\Traits\WithMediaHandler;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Catalog;
|
||||
|
||||
use App\Models\Category;
|
||||
use Illuminate\Validation\Rule;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Catalog;
|
||||
|
||||
use App\Enums\Concentration;
|
||||
use App\Models\Perfume;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Catalog;
|
||||
|
||||
use App\Models\Product;
|
||||
use App\Rules\UnsignedInteger;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Finance;
|
||||
|
||||
use App\Models\Expense;
|
||||
use App\Rules\UnsignedInteger;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Loyalty;
|
||||
|
||||
use App\Enums\Gender;
|
||||
use App\Models\Customer;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Loyalty;
|
||||
|
||||
use App\Models\Tier;
|
||||
use Livewire\Form;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Loyalty;
|
||||
|
||||
use App\Enums\IsActive;
|
||||
use App\Enums\VoucherType;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Master;
|
||||
|
||||
use App\Enums\Day;
|
||||
use App\Enums\OutletStatus;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Master;
|
||||
|
||||
use App\Enums\Gender;
|
||||
use App\Enums\UserStatus;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Setting;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Traits\WithMediaHandler;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Setting;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Traits\WithMediaHandler;
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
namespace App\Livewire\Forms\Studio\Setting;
|
||||
|
||||
use App\Enums\Gender;
|
||||
use App\Models\Employee;
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Catalog\Bottle;
|
||||
|
||||
use App\Livewire\Forms\BottleForm;
|
||||
use App\Livewire\Forms\Studio\Catalog\BottleForm;
|
||||
use App\Models\Outlet;
|
||||
use App\Traits\WithOutletSelector;
|
||||
use App\Traits\WithUpdatedData;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Catalog\Bottle;
|
||||
|
||||
use App\Livewire\Forms\BottleForm;
|
||||
use App\Livewire\Forms\Studio\Catalog\BottleForm;
|
||||
use App\Models\Bottle;
|
||||
use App\Models\Outlet;
|
||||
use App\Traits\WithOutletSelector;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Catalog;
|
||||
|
||||
use App\Livewire\Forms\BrandForm;
|
||||
use App\Livewire\Forms\Studio\Catalog\BrandForm;
|
||||
use App\Models\Brand as BrandModel;
|
||||
use App\Traits\WithCloseModal;
|
||||
use App\Traits\WithConfirmation;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Catalog;
|
||||
|
||||
use App\Livewire\Forms\CategoryForm;
|
||||
use App\Livewire\Forms\Studio\Catalog\CategoryForm;
|
||||
use App\Models\Category as CategoryModel;
|
||||
use App\Traits\WithCloseModal;
|
||||
use App\Traits\WithConfirmation;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Catalog\Perfume;
|
||||
|
||||
use App\Livewire\Forms\PerfumeForm;
|
||||
use App\Livewire\Forms\Studio\Catalog\PerfumeForm;
|
||||
use App\Models\Brand;
|
||||
use App\Models\Category;
|
||||
use App\Models\Outlet;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Catalog\Perfume;
|
||||
|
||||
use App\Livewire\Forms\PerfumeForm;
|
||||
use App\Livewire\Forms\Studio\Catalog\PerfumeForm;
|
||||
use App\Models\Brand;
|
||||
use App\Models\Category;
|
||||
use App\Models\Outlet;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Catalog\Product;
|
||||
|
||||
use App\Livewire\Forms\ProductForm;
|
||||
use App\Livewire\Forms\Studio\Catalog\ProductForm;
|
||||
use App\Models\Outlet;
|
||||
use App\Traits\WithOutletSelector;
|
||||
use App\Traits\WithUpdatedData;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Catalog\Product;
|
||||
|
||||
use App\Livewire\Forms\ProductForm;
|
||||
use App\Livewire\Forms\Studio\Catalog\ProductForm;
|
||||
use App\Models\Outlet;
|
||||
use App\Models\Product;
|
||||
use App\Traits\WithOutletSelector;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Finance;
|
||||
|
||||
use App\Livewire\Forms\ExpenseForm;
|
||||
use App\Livewire\Forms\Studio\Finance\ExpenseForm;
|
||||
use App\Models\Expense as ExpenseModel;
|
||||
use App\Traits\WithCloseModal;
|
||||
use App\Traits\WithConfirmation;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Loyalty;
|
||||
|
||||
use App\Livewire\Forms\CustomerForm;
|
||||
use App\Livewire\Forms\Studio\Loyalty\CustomerForm;
|
||||
use App\Models\Customer as CustomerModel;
|
||||
use App\Traits\WithCloseModal;
|
||||
use App\Traits\WithConfirmation;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Loyalty;
|
||||
|
||||
use App\Livewire\Forms\TierForm;
|
||||
use App\Livewire\Forms\Studio\Loyalty\TierForm;
|
||||
use App\Models\Tier as TierModel;
|
||||
use App\Traits\WithCloseModal;
|
||||
use App\Traits\WithConfirmation;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Loyalty\Voucher;
|
||||
|
||||
use App\Livewire\Forms\VoucherForm;
|
||||
use App\Livewire\Forms\Studio\Loyalty\VoucherForm;
|
||||
use App\Models\Outlet;
|
||||
use App\Traits\WithOutletSelector;
|
||||
use App\Traits\WithUpdatedData;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Loyalty\Voucher;
|
||||
|
||||
use App\Livewire\Forms\VoucherForm;
|
||||
use App\Livewire\Forms\Studio\Loyalty\VoucherForm;
|
||||
use App\Models\Outlet;
|
||||
use App\Models\Voucher;
|
||||
use App\Traits\WithOutletSelector;
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
namespace App\Livewire\Studio\Master\Outlet;
|
||||
|
||||
use App\Enums\Day;
|
||||
use App\Livewire\Forms\OutletForm;
|
||||
use App\Livewire\Forms\Studio\Master\OutletForm;
|
||||
use App\Traits\Outlet\WithFacilityHandler;
|
||||
use App\Traits\WithUpdatedData;
|
||||
use Flux\Flux;
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
namespace App\Livewire\Studio\Master\Outlet;
|
||||
|
||||
use App\Enums\Day;
|
||||
use App\Livewire\Forms\OutletForm;
|
||||
use App\Livewire\Forms\Studio\Master\OutletForm;
|
||||
use App\Models\Outlet;
|
||||
use App\Traits\Outlet\WithFacilityHandler;
|
||||
use App\Traits\WithUpdatedData;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Master\User;
|
||||
|
||||
use App\Livewire\Forms\UserForm;
|
||||
use App\Livewire\Forms\Studio\Master\UserForm;
|
||||
use App\Traits\WithUpdatedData;
|
||||
use Flux\Flux;
|
||||
use Livewire\Attributes\Title;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Master\User;
|
||||
|
||||
use App\Livewire\Forms\UserForm;
|
||||
use App\Livewire\Forms\Studio\Master\UserForm;
|
||||
use App\Models\User;
|
||||
use App\Traits\WithUpdatedData;
|
||||
use Flux\Flux;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Setting;
|
||||
|
||||
use App\Livewire\Forms\AccountForm;
|
||||
use App\Livewire\Forms\Studio\Setting\AccountForm;
|
||||
use App\Models\User;
|
||||
use App\Traits\WithUpdatedData;
|
||||
use Flux\Flux;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Setting;
|
||||
|
||||
use App\Livewire\Forms\PasswordForm;
|
||||
use App\Livewire\Forms\Studio\Setting\PasswordForm;
|
||||
use App\Models\User;
|
||||
use App\Traits\WithUpdatedData;
|
||||
use Flux\Flux;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Studio\Setting;
|
||||
|
||||
use App\Livewire\Forms\ProfileForm;
|
||||
use App\Livewire\Forms\Studio\Setting\ProfileForm;
|
||||
use App\Models\Employee;
|
||||
use App\Traits\WithUpdatedData;
|
||||
use Flux\Flux;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Traits\Outlet;
|
||||
|
||||
use App\Livewire\Forms\OutletForm;
|
||||
use App\Livewire\Forms\Studio\Master\OutletForm;
|
||||
|
||||
trait WithFacilityHandler
|
||||
{
|
||||
|
||||
@ -12,7 +12,7 @@ class="text-sm">
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<livewire:datatable.bottles-table />
|
||||
<livewire:datatable.studio.catalog.bottles-table />
|
||||
</div>
|
||||
|
||||
@include('components.confirmation.delete')
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<livewire:datatable.brands-table />
|
||||
<livewire:datatable.studio.catalog.brands-table />
|
||||
</div>
|
||||
|
||||
@include('components.confirmation.delete')
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<livewire:datatable.categories-table />
|
||||
<livewire:datatable.studio.catalog.categories-table />
|
||||
</div>
|
||||
|
||||
@include('components.confirmation.delete')
|
||||
|
||||
@ -12,7 +12,7 @@ class="text-sm">
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<livewire:datatable.perfumes-table />
|
||||
<livewire:datatable.studio.catalog.perfumes-table />
|
||||
</div>
|
||||
|
||||
@include('components.confirmation.delete')
|
||||
|
||||
@ -12,7 +12,7 @@ class="text-sm">
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<livewire:datatable.products-table />
|
||||
<livewire:datatable.studio.catalog.products-table />
|
||||
</div>
|
||||
|
||||
@include('components.confirmation.delete')
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<livewire:datatable.expenses-table />
|
||||
<livewire:datatable.studio.finance.expenses-table />
|
||||
</div>
|
||||
|
||||
@include('components.confirmation.delete')
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<livewire:datatable.customers-table />
|
||||
<livewire:datatable.studio.loyalty.customers-table />
|
||||
</div>
|
||||
|
||||
@include('components.confirmation.delete')
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<livewire:datatable.tiers-table />
|
||||
<livewire:datatable.studio.loyalty.tiers-table />
|
||||
</div>
|
||||
|
||||
@include('components.confirmation.delete')
|
||||
|
||||
@ -12,7 +12,7 @@ class="text-sm">
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<livewire:datatable.vouchers-table />
|
||||
<livewire:datatable.studio.loyalty.vouchers-table />
|
||||
</div>
|
||||
|
||||
@include('components.confirmation.delete')
|
||||
|
||||
@ -12,7 +12,7 @@ class="text-sm">
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<livewire:datatable.outlets-table />
|
||||
<livewire:datatable.studio.master.outlets-table />
|
||||
</div>
|
||||
|
||||
@include('components.confirmation.delete')
|
||||
|
||||
@ -12,7 +12,7 @@ class="text-sm">
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<livewire:datatable.users-table />
|
||||
<livewire:datatable.studio.master.users-table />
|
||||
</div>
|
||||
|
||||
@include('components.confirmation.delete')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user