diff --git a/database/migrations/2025_07_14_162409_create_product_vps_os_table.php b/database/migrations/2025_07_14_162409_create_product_vps_os_table.php index 8bc5240..ac15bba 100644 --- a/database/migrations/2025_07_14_162409_create_product_vps_os_table.php +++ b/database/migrations/2025_07_14_162409_create_product_vps_os_table.php @@ -17,7 +17,7 @@ return new class extends Migration $table->integer('product_type')->nullable(); $table->unsignedBigInteger('os_id')->index(); - $table->foreign('product_id')->references('id')->on('vps')->onDelete('cascade'); + $table->foreign('product_id')->references('id')->on('products')->onDelete('cascade'); $table->foreign('os_id')->references('id')->on('os')->onDelete('cascade'); $table->timestamps(); }); diff --git a/database/migrations/2026_02_19_000000_add_uuid_to_transactions_table.php b/database/migrations/2026_02_19_000000_add_uuid_to_transactions_table.php deleted file mode 100644 index eec5b4d..0000000 --- a/database/migrations/2026_02_19_000000_add_uuid_to_transactions_table.php +++ /dev/null @@ -1,22 +0,0 @@ -uuid('uuid')->unique()->nullable()->after('id'); - $table->string('public_code')->unique()->nullable()->after('uuid'); - }); - } - - public function down() - { - Schema::table('transactions', function (Blueprint $table) { - $table->dropColumn(['uuid', 'public_code']); - }); - } -}; diff --git a/resources/views/administrator/pages/customer/add.blade.php b/resources/views/administrator/pages/customer/add.blade.php index 00a4a20..d1db911 100644 --- a/resources/views/administrator/pages/customer/add.blade.php +++ b/resources/views/administrator/pages/customer/add.blade.php @@ -1,115 +1,152 @@ -@extends("administrator.layout.master") -@section("content") +@extends('administrator.layout.master') +@push('plugin-styles') + @foreach (config('assets.datatable.css') as $datatable) + + @endforeach +@endpush + +@section('breadcrumb') + @php + $breadcrumbItems = [ + ['label' => 'Customer'], + ['label' => 'Customer Management', 'url' => route('customer.index')], + ['label' => 'Add Customer', 'active' => true], + ]; + @endphp + +@endsection + +@section('content') @if(auth()->guard('admins')->user()->can("add customer")) -
-
- @csrf -
-
-
- {{--Fullname--}} -
- -
- -
-
- {{--Company--}} -
- -
- -
-
- {{--Email--}} -
- -
- -
-
- {{--Phone--}} -
- -
- -
-
- {{--Password--}} -
- -
- -
-
+ + @csrf +
+
+
+
+
Basic Information
-
- {{--Address--}} -
- -
- +
+
+
Personal Information
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
- {{--City--}} -
- -
- + +
+
Address Information
+
+
+
+ + +
+
-
- {{--State--}} -
- -
- +
+
+
+ + +
+
+
+
+ + +
+
-
- {{--Postcode--}} -
- -
- -
-
- {{--Country--}} -
- -
- -
-
- {{--Password--}} -
- -
- - Send Client Marketing Emails +
+
+
+ + +
+
+
+
+ + +
+
- - -
+
+
+
+
Settings
+
+
+
+
+ + +
+ Send client marketing emails +
+
+
+
+
+ + + Cancel + Create Customer + + @else
-
Access Denied - You are not assigned to any Customer - management department
+
Access Denied - You are not assigned to any Customer management department
@endif @endsection diff --git a/resources/views/administrator/pages/customer/edit.blade.php b/resources/views/administrator/pages/customer/edit.blade.php index 7277699..213187a 100644 --- a/resources/views/administrator/pages/customer/edit.blade.php +++ b/resources/views/administrator/pages/customer/edit.blade.php @@ -1,116 +1,153 @@ -@extends("administrator.layout.master") -@section("content") +@extends('administrator.layout.master') +@push('plugin-styles') + @foreach (config('assets.datatable.css') as $datatable) + + @endforeach +@endpush + +@section('breadcrumb') + @php + $breadcrumbItems = [ + ['label' => 'Customer'], + ['label' => 'Customer Management', 'url' => route('customer.index')], + ['label' => 'Edit Customer', 'active' => true], + ]; + @endphp + +@endsection + +@section('content') @if(auth()->guard('admins')->user()->can("edit customer")) -
-
- @csrf - @method('PUT') -
-
-
- {{--Fullname--}} -
- -
- -
-
- {{--Company--}} -
- -
- -
-
- {{--Email--}} -
- -
- -
-
- {{--Phone--}} -
- -
- -
-
- {{--Password--}} -
- -
- -
-
+ + @csrf + @method('PUT') +
+
+
+
+
Basic Information
-
- {{--Address--}} -
- -
- +
+
+
Personal Information
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
- {{--City--}} -
- -
- + +
+
Address Information
+
+
+
+ + +
+
-
- {{--State--}} -
- -
- +
+
+
+ + +
+
+
+
+ + +
+
-
- {{--Postcode--}} -
- -
- -
-
- {{--Country--}} -
- -
- -
-
- {{--Marketing Emails--}} -
- -
- email_marketing) == 1)> - Send Client Marketing Emails +
+
+
+ + +
+
+
+
+ + +
+
- - -
+
+
+
+
Settings
+
+
+
+
+ email_marketing) == 1 ? 'checked' : '' }}> + +
+ Send client marketing emails +
+
+
+
+
+ + + Cancel + Update Customer + + @else
-
Access Denied - You are not assigned to any Customer - management department
+
Access Denied - You are not assigned to any Customer management department
@endif @endsection diff --git a/resources/views/administrator/pages/product/create.blade.php b/resources/views/administrator/pages/product/create.blade.php index 2a47b4d..dbb0a1d 100644 --- a/resources/views/administrator/pages/product/create.blade.php +++ b/resources/views/administrator/pages/product/create.blade.php @@ -221,16 +221,21 @@
{{-- Product Type --}}
- - value ? 'checked' : '' }}> + +
+
@endforeach - +
{{-- Operating System (for VPS) --}}
@@ -289,14 +294,11 @@ {{-- Status --}}
- +
+ + +
@@ -350,13 +352,16 @@ @endforeach