Adding Users

صارف شامل کریں

Adding Users

Add new staff members to your business via Users → Add User (users.create route).

Required Fields

  • Full Name — used to auto-generate a unique username (e.g. john_doe, john_doe_1 if taken)
  • Email — must be unique across all users
  • Password — minimum 8 characters, must contain letters and numbers
  • Business Assignment — required; determines data scope

Status Field

Status is set via radio buttons (not a dropdown): Active (default), Inactive, or Suspended.

Photo Upload

Profile photo is optional (max 2MB, JPG/PNG). A default avatar is shown when no photo is uploaded. The photo field is in the sidebar but linked to the main form via form="createUserForm".

Username Auto-Generation

The username column is NOT NULL. The controller (UserController@store) automatically generates a slug from the name field. If the slug is taken, a counter suffix is added (_1, _2, etc.).

1 Navigate to Users

Go to Users section from the sidebar menu.

2 Click "Add User"

Click the Add User button to open the form.

3 Fill User Details

Enter name, email, phone, CNIC, and assign a role. Select status via radio buttons.

4 Upload Profile Photo (Optional)

Click "Choose Photo" in the sidebar. Max 2MB.

5 Set Password

Password must be at least 8 characters with letters and numbers. Use the "Generate Random Password" button if needed.

صارف شامل کریں

اپنے کاروبار میں نئے عملے کو شامل کریں (Users → Add User

ضروری فیلڈز

  • پورا نام — نام سے خود بخود منفرد username بنایا جاتا ہے (مثلاً ali_raza، اگر لیا گیا ہو تو ali_raza_1)
  • ای میل — تمام صارفین میں منفرد ہونا چاہیے
  • پاس ورڈ — کم از کم 8 حروف، حروف اور اعداد دونوں شامل ہوں
  • کاروبار — لازمی؛ ڈیٹا تک رسائی کا دائرہ متعین کرتا ہے

اسٹیٹس فیلڈ

اسٹیٹس ریڈیو بٹن سے منتخب کریں (ڈراپ ڈاؤن نہیں): Active (پہلے سے منتخب)، Inactive، یا Suspended۔

تصویر اپ لوڈ

پروفائل تصویر اختیاری ہے (زیادہ سے زیادہ 2MB، JPG/PNG)۔ تصویر نہ ہونے پر ڈیفالٹ اوتار دکھائی دیتا ہے۔

1Users سیکشن پر جائیں

سائڈبار سے Users سیکشن کھولیں۔

2"Add User" پر کلک کریں

نیا صارف فارم کھولیں۔

3تفصیلات بھریں

نام، ای میل، فون، CNIC درج کریں، کردار منتخب کریں، اور ریڈیو بٹن سے اسٹیٹس چنیں۔

4تصویر اپ لوڈ کریں (اختیاری)

سائڈبار میں "Choose Photo" پر کلک کریں۔ زیادہ سے زیادہ 2MB۔

5پاس ورڈ مقرر کریں

کم از کم 8 حروف، حروف اور اعداد لازمی۔ "Generate Random Password" بٹن بھی استعمال کر سکتے ہیں۔