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_1if 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.).
Go to Users section from the sidebar menu.
Click the Add User button to open the form.
Enter name, email, phone, CNIC, and assign a role. Select status via radio buttons.
Click "Choose Photo" in the sidebar. Max 2MB.
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)۔ تصویر نہ ہونے پر ڈیفالٹ اوتار دکھائی دیتا ہے۔
سائڈبار سے Users سیکشن کھولیں۔
نیا صارف فارم کھولیں۔
نام، ای میل، فون، CNIC درج کریں، کردار منتخب کریں، اور ریڈیو بٹن سے اسٹیٹس چنیں۔
سائڈبار میں "Choose Photo" پر کلک کریں۔ زیادہ سے زیادہ 2MB۔
کم از کم 8 حروف، حروف اور اعداد لازمی۔ "Generate Random Password" بٹن بھی استعمال کر سکتے ہیں۔