Index: app/Http/Controllers/ClientController.php
===================================================================
--- app/Http/Controllers/ClientController.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
+++ app/Http/Controllers/ClientController.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
@@ -0,0 +1,65 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use App\Models\Client;
+use Illuminate\Http\Request;
+
+class ClientController extends Controller
+{
+    /**
+     * Display a listing of the resource.
+     */
+    public function index()
+    {
+        //
+    }
+
+    /**
+     * Show the form for creating a new resource.
+     */
+    public function create()
+    {
+        //
+    }
+
+    /**
+     * Store a newly created resource in storage.
+     */
+    public function store(Request $request)
+    {
+        //
+    }
+
+    /**
+     * Display the specified resource.
+     */
+    public function show(Client $company)
+    {
+        //
+    }
+
+    /**
+     * Show the form for editing the specified resource.
+     */
+    public function edit(Client $company)
+    {
+        //
+    }
+
+    /**
+     * Update the specified resource in storage.
+     */
+    public function update(Request $request, Client $company)
+    {
+        //
+    }
+
+    /**
+     * Remove the specified resource from storage.
+     */
+    public function destroy(Client $company)
+    {
+        //
+    }
+}
Index: p/Models/Buyer.php
===================================================================
--- app/Models/Buyer.php	(revision 590af3bde1b74fea31b5ae1eeb961289e81c5a46)
+++ 	(revision )
@@ -1,27 +1,0 @@
-<?php
-
-namespace App\Models;
-
-use Illuminate\Database\Eloquent\Concerns\HasUuids;
-use Illuminate\Database\Eloquent\Factories\HasFactory;
-use Illuminate\Database\Eloquent\Model;
-use Illuminate\Database\Eloquent\Relations\HasMany;
-
-class Buyer extends Model
-{
-    use HasFactory, HasUuids;
-    protected $primaryKey = 'id';
-    public $incrementing = false;
-    protected $keyType = 'string';
-    protected $fillable = [
-        'company_name',
-        'billing_address',
-        'country',
-        'registration_number',
-        'tax_id'
-    ];
-
-    public function orders(): HasMany {
-        return $this->hasMany(Order::class, 'buyer_id');
-    }
-}
Index: app/Models/Client.php
===================================================================
--- app/Models/Client.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
+++ app/Models/Client.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
@@ -0,0 +1,40 @@
+<?php
+
+namespace App\Models;
+
+use Illuminate\Database\Eloquent\Concerns\HasUuids;
+use Illuminate\Database\Eloquent\Factories\HasFactory;
+use Illuminate\Database\Eloquent\Model;
+use Illuminate\Database\Eloquent\Relations\HasMany;
+
+class Client extends Model
+{
+    use HasFactory, HasUuids;
+
+    protected $primaryKey = 'id';
+    public $incrementing = false;
+    protected $keyType = 'string';
+
+    protected $fillable = [
+        'client_name',
+        'country',
+        'registration_number',
+        'tax_id',
+        'contact_person',
+        'phone_number',
+        'billing_address',
+        'shipping_address',
+    ];
+
+    // Orders where this company is the buyer
+    public function buyerOrders(): HasMany
+    {
+        return $this->hasMany(Order::class, 'buyer_id');
+    }
+
+    // Orders where this company is the receiver
+    public function receiverOrders(): HasMany
+    {
+        return $this->hasMany(Order::class, 'receiver_id');
+    }
+}
Index: app/Models/Order.php
===================================================================
--- app/Models/Order.php	(revision 590af3bde1b74fea31b5ae1eeb961289e81c5a46)
+++ app/Models/Order.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
@@ -7,5 +7,4 @@
 use Illuminate\Database\Eloquent\Model;
 use Illuminate\Database\Eloquent\Relations\BelongsTo;
-use Illuminate\Database\Eloquent\Relations\BelongsToMany;
 
 class Order extends Model
@@ -23,24 +22,17 @@
         'buyer_id',
         'receiver_id',
-        'payment_id',
-        'transport_id'
+        'transport_id',
     ];
-
-    public function products(): BelongsToMany
-    {
-        return $this->belongsToMany(Product::class, 'order_products')
-            ->withPivot(['quantity', 'price_per_unit', 'total_price'])
-            ->withTimestamps();
-    }
 
     public function buyer(): BelongsTo
     {
-        return $this->belongsTo(Buyer::class);
+        return $this->belongsTo(Client::class, 'buyer_id');
     }
 
     public function receiver(): BelongsTo
     {
-        return $this->belongsTo(Receiver::class);
+        return $this->belongsTo(Client::class, 'receiver_id');
     }
+
 
     public function payment(): BelongsTo
@@ -59,5 +51,5 @@
     }
 
-    // Helper to calculate total amount
+    // Helper to calculate the total amount
     public function getTotalAmountAttribute(): float
     {
Index: p/Models/Receiver.php
===================================================================
--- app/Models/Receiver.php	(revision 590af3bde1b74fea31b5ae1eeb961289e81c5a46)
+++ 	(revision )
@@ -1,27 +1,0 @@
-<?php
-
-namespace App\Models;
-
-use Illuminate\Database\Eloquent\Concerns\HasUuids;
-use Illuminate\Database\Eloquent\Factories\HasFactory;
-use Illuminate\Database\Eloquent\Model;
-use Illuminate\Database\Eloquent\Relations\HasMany;
-
-class Receiver extends Model
-{
-    use HasFactory, HasUuids;
-    protected $primaryKey = 'id';
-    public $incrementing = false;
-    protected $keyType = 'string';
-    protected $fillable = [
-        'company_name',
-        'contact_person',
-        'country',
-        'phone_number',
-        'shipping_address'
-    ];
-
-    public function orders(): HasMany {
-        return $this->hasMany(Order::class, 'receiver_id');
-    }
-}
Index: tabase/factories/BuyerFactory.php
===================================================================
--- database/factories/BuyerFactory.php	(revision 590af3bde1b74fea31b5ae1eeb961289e81c5a46)
+++ 	(revision )
@@ -1,24 +1,0 @@
-<?php
-
-namespace Database\Factories;
-
-use App\Models\Buyer;
-use Illuminate\Database\Eloquent\Factories\Factory;
-
-/**
- * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Buyer>
- */
-class BuyerFactory extends Factory
-{
-    protected $model = Buyer::class;
-    public function definition(): array
-    {
-        return [
-            'company_name' => $this->faker->company(),
-            'billing_address' => $this->faker->address(),
-            'country' => $this->faker->country(),
-            'registration_number' => $this->faker->regexify('[A-Z]{2}[0-9]{8}'),
-            'tax_id' => $this->faker->regexify('TAX[0-9]{10}')
-        ];
-    }
-}
Index: database/factories/ClientFactory.php
===================================================================
--- database/factories/ClientFactory.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
+++ database/factories/ClientFactory.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
@@ -0,0 +1,28 @@
+<?php
+
+namespace Database\Factories;
+
+use App\Models\Client;
+use Illuminate\Database\Eloquent\Factories\Factory;
+
+/**
+ * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Client>
+ */
+class ClientFactory extends Factory
+{
+    protected $model = Client::class;
+
+    public function definition(): array
+    {
+        return [
+            'client_name' => $this->faker->company(),
+            'country' => $this->faker->country(),
+            'registration_number' => $this->faker->regexify('[A-Z]{2}[0-9]{8}'),
+            'tax_id' => $this->faker->regexify('TAX[0-9]{10}'),
+            'contact_person' => $this->faker->name(),
+            'phone_number' => $this->faker->phoneNumber(),
+            'billing_address' => $this->faker->address(),
+            'shipping_address' => $this->faker->address(),
+        ];
+    }
+}
Index: database/factories/OrderFactory.php
===================================================================
--- database/factories/OrderFactory.php	(revision 590af3bde1b74fea31b5ae1eeb961289e81c5a46)
+++ database/factories/OrderFactory.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
@@ -3,7 +3,6 @@
 namespace Database\Factories;
 
-use App\Models\Buyer;
-use App\Models\Receiver;
 use App\Models\Order;
+use App\Models\Client;
 use App\Models\Transport;
 use Illuminate\Database\Eloquent\Factories\Factory;
@@ -14,22 +13,19 @@
 class OrderFactory extends Factory
 {
-    /**
-     * Define the model's default state.
-     *
-     * @return array<string, mixed>
-     */
     protected $model = Order::class;
+
     public function definition(): array
     {
         $statuses = ['pending', 'processing', 'shipped', 'delivered'];
         $date = $this->faker->dateTimeBetween('-30 days', 'now');
-        $estimatedDelivary = $this->faker->dateTimeBetween($date, '+30 days');
+        $estimatedDelivery = $this->faker->dateTimeBetween($date, '+30 days');
+
         return [
-            'buyer_id' => Buyer::factory(),
-            'receiver_id' => Receiver::factory(),
+            'buyer_id' => Client::factory(),
+            'receiver_id' => Client::factory(),
             'transport_id' => Transport::factory(),
             'date' => $date,
             'status' => $this->faker->randomElement($statuses),
-            'estimated_delivery_date' => $estimatedDelivary,
+            'estimated_delivery_date' => $estimatedDelivery,
         ];
     }
@@ -41,4 +37,5 @@
         ]);
     }
+
     public function delivered(): static
     {
Index: tabase/factories/ReceiverFactory.php
===================================================================
--- database/factories/ReceiverFactory.php	(revision 590af3bde1b74fea31b5ae1eeb961289e81c5a46)
+++ 	(revision )
@@ -1,24 +1,0 @@
-<?php
-
-namespace Database\Factories;
-
-use App\Models\Receiver;
-use Illuminate\Database\Eloquent\Factories\Factory;
-
-/**
- * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Receiver>
- */
-class ReceiverFactory extends Factory
-{
-    protected $model = Receiver::class;
-    public function definition(): array
-    {
-        return [
-            'company_name' => $this->faker->company() . ' Distributors',
-            'contact_person' => $this->faker->name(),
-            'country' => $this->faker->country(),
-            'phone_number' => $this->faker->phoneNumber(),
-            'shipping_address' => $this->faker->address(),
-        ];
-    }
-}
Index: database/migrations/2025_03_13_184433_create_buyers_table.php
===================================================================
--- database/migrations/2025_03_13_184433_create_buyers_table.php	(revision 590af3bde1b74fea31b5ae1eeb961289e81c5a46)
+++ database/migrations/2025_03_13_184433_create_buyers_table.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
@@ -15,5 +15,5 @@
             $table->uuid('id')->primary();
 
-            $table->string('company_name');
+            $table->string('client_name');
             $table->string('billing_address');
             $table->string('country');
Index: database/migrations/2025_03_13_192448_create_receivers_table.php
===================================================================
--- database/migrations/2025_03_13_192448_create_receivers_table.php	(revision 590af3bde1b74fea31b5ae1eeb961289e81c5a46)
+++ database/migrations/2025_03_13_192448_create_receivers_table.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
@@ -14,5 +14,5 @@
         Schema::create('receivers', function (Blueprint $table) {
             $table->uuid('id')->primary();
-            $table->string('company_name');
+            $table->string('client_name');
             $table->string('contact_person');
             $table->string('country');
Index: database/migrations/2025_08_08_131914_create_clients_table.php
===================================================================
--- database/migrations/2025_08_08_131914_create_clients_table.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
+++ database/migrations/2025_08_08_131914_create_clients_table.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
@@ -0,0 +1,29 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+    public function up(): void
+    {
+        Schema::create('clients', function (Blueprint $table) {
+            $table->uuid('id')->primary();
+            $table->string('client_name');
+            $table->string('country')->nullable();
+            $table->string('registration_number')->nullable()->index();
+            $table->string('tax_id')->nullable()->index();
+            $table->string('contact_person')->nullable();
+            $table->string('phone_number')->nullable();
+            $table->text('billing_address')->nullable();
+            $table->text('shipping_address')->nullable();
+            $table->timestamps();
+        });
+    }
+
+    public function down(): void
+    {
+        Schema::dropIfExists('clients');
+    }
+};
Index: database/seeders/ClientSeeder.php
===================================================================
--- database/seeders/ClientSeeder.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
+++ database/seeders/ClientSeeder.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
@@ -0,0 +1,43 @@
+<?php
+
+namespace Database\Seeders;
+
+use Illuminate\Database\Seeder;
+use App\Models\Client;
+use Illuminate\Support\Str;
+
+class ClientSeeder extends Seeder
+{
+    public function run(): void
+    {
+        $clients = [
+            [
+                'id' => (string) Str::uuid(),
+                'client_name' => 'Acme Corp',
+                'country' => 'USA',
+                'registration_number' => '123456789',
+                'tax_id' => 'TAX123456',
+                'contact_person' => 'John Doe',
+                'phone_number' => '+1-555-1234',
+                'billing_address' => '123 Acme St, New York, NY',
+                'shipping_address' => '456 Acme Warehouse, New York, NY',
+            ],
+            [
+                'id' => (string) Str::uuid(),
+                'client_name' => 'Globex Ltd',
+                'country' => 'UK',
+                'registration_number' => '987654321',
+                'tax_id' => 'TAX987654',
+                'contact_person' => 'Jane Smith',
+                'phone_number' => '+44-20-1234-5678',
+                'billing_address' => '789 Globex Rd, London',
+                'shipping_address' => '101 Globex Distribution, London',
+            ],
+            // Add more clients as needed
+        ];
+
+        foreach ($clients as $company) {
+            Client::create($company);
+        }
+    }
+}
Index: database/seeders/DatabaseSeeder.php
===================================================================
--- database/seeders/DatabaseSeeder.php	(revision 590af3bde1b74fea31b5ae1eeb961289e81c5a46)
+++ database/seeders/DatabaseSeeder.php	(revision a30e379b0f8e1753e754eeaf5d06fe13f5a2e7cb)
@@ -28,10 +28,10 @@
         ]);
 
-        Buyer::factory(10)->create();
+        //Buyer::factory(10)->create();
         Order::factory(10)->create();
         Payment::factory(10)->create();
         Product::factory(10)->create();
         Producer::factory(10)->create();
-        Receiver::factory(10)->create();
+        //Receiver::factory(10)->create();
         Transport::factory(10)->create();
     }
