Skip to content

Commit

Permalink
translation
Browse files Browse the repository at this point in the history
  • Loading branch information
irshadali21 committed Jan 11, 2023
1 parent 278cbab commit c71d2d9
Show file tree
Hide file tree
Showing 29 changed files with 314 additions and 195 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/PermissionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function index()
activity('permission')
->causedBy(Auth::user())
->log('view');
$title = 'Manage Permissions';
$title = __('lang.managePermission');
$permissions = Permission::paginate(setting('record_per_page', 15));
return view('permissions.index', compact('permissions','title'));
}
Expand All @@ -41,7 +41,7 @@ public function create()
activity('permission')
->causedBy(Auth::user())
->log('create');
$title = 'Create Permission';
$title = __('lang.Create new permissions');
return view('permissions.create', compact('title'));
}

Expand Down
12 changes: 6 additions & 6 deletions app/Http/Controllers/ReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function filesDownload(Request $request)

$headings = [
__('lang.VAT Number'),
__('lang.Company Name'),
__('lang.CompanyNamedownload'),
__('lang.Phone Number'),
__('lang.Customer Email'),
__('lang.Type of Benefits'),
Expand All @@ -152,7 +152,7 @@ public function filesDownload(Request $request)
__('lang.Certification Issue Date'),
__('lang.DATE PAYMENT'),
__('lang.Fee'),
__('lang.Advisor Name'),
__('lang.AdvisorNamedownload'),
__('lang.Operation Email'),
];

Expand Down Expand Up @@ -327,10 +327,10 @@ public function firmsDownload(Request $request)
return redirect()->back();
}
$headings = [
__('lang.Advisor Name'),
__('lang.Company Name'),
__('lang.AdvisorNamedownload'),
__('lang.CompanyNamedownload'),
__('lang.VAT Number'),
__('lang.Type'),
__('lang.Typedownlaod'),
__('lang.Province'),
__('lang.Category'),
__('lang.Phone Number'),
Expand Down Expand Up @@ -477,7 +477,7 @@ public function valinaDownload(Request $request)

$headings = [
__('lang.VAT Number'),
__('lang.Company Name'),
__('lang.CompanyNamedownload'),
__('lang.DATE'),
__('lang.Cluster'),
];
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/RoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function index()
activity('role')
->causedBy(Auth::user())
->log('view');
$title = 'Manage Roles';
$title = __('lang.Manage Roles');
$roles = Role::paginate(setting('record_per_page', 15));
return view('roles.index', compact('roles','title'));
}
Expand All @@ -42,7 +42,7 @@ public function create()
activity('role')
->causedBy(Auth::user())
->log('create');
$title = 'Create role';
$title = __('lang.Create new role');
$permissions = Permission::pluck('name', 'id');
return view('roles.create', compact('permissions','title'));
}
Expand Down Expand Up @@ -92,7 +92,7 @@ public function edit(Role $role)
activity('role')
->causedBy(Auth::user())
->log('Edit');
$title = 'Edit role';
$title = __('lang.Edit role details');
$permissions = Permission::pluck('name', 'id');
return view('roles.edit', compact('permissions', 'role', 'title'));
}
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/SettingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function index() {
activity('settings')
->causedBy(Auth::user())
->log('view');
$title = 'Settings';
$title = __('lang.Settings');
$roles = Role::pluck('name', 'id');
return view('settings.edit', compact('roles', 'title'));
}
Expand All @@ -48,7 +48,7 @@ public function update(Request $request) {

}
public function activity(Request $request){
$title= 'Activity Logs';
$title= __('lang.activityLog');
activity('activity')
->causedBy(Auth::user())
->log('view');
Expand Down
8 changes: 4 additions & 4 deletions app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function index(Request $request)
$users = User::where('created_by', auth()->user()->id)->paginate(setting('record_per_page', 15));
}
}
$title = 'Manage Users';
$title = __('lang.manageUsers');
return view('users.index', compact('users', 'title'));
}

Expand All @@ -75,7 +75,7 @@ public function create()
$roles = Role::whereNotIn('name', ['super-admin', 'coordinator'])->pluck('name', 'id');
// dd('asd');
}
$title = 'Create user';
$title = __('lang.Create user');
return view('users.create', compact('roles', 'title', 'code'));
}

Expand Down Expand Up @@ -145,7 +145,7 @@ public function show(User $user)
*/
public function edit(User $user)
{
$title = "User Details";
$title = __('lang.Edit user details');
if (Auth::user()->hasrole('super-admin')) {
$roles = Role::pluck('name', 'id');
} else if (Auth::user()->hasrole('coordinator')) {
Expand Down Expand Up @@ -230,7 +230,7 @@ public function destroy(User $user)

public function profile(User $user)
{
$title = 'Edit Profile';
$title = __('lang.Edit profile');
$user = $user->where('id', auth()->user()->id)->firstorFail();
if (Auth::user()->hasrole('super-admin')) {
$roles = Role::pluck('name', 'id');
Expand Down
79 changes: 77 additions & 2 deletions resources/lang/en/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,19 @@
'velina' => 'Velina ',
'velina_cluster' => 'Velina Clusters ',
'firms' => 'Firms ',
'Firm' => 'Firm',
'manage_firms' => 'Manage Firms ',
'upload_firms' => 'Upload Firms ',
'reports' => 'Reports ',
'basedOnFile' => 'Based on Files ',
'SelectCompany' => 'Select Company',
'Select Benefits' => 'Select Benefits',
'Select Advisor' => 'Select Advisor',
'Select ateco code' => 'Select ateco code',
'Select sector' => 'Select sector',
'Select province' => 'Select province',
'Select valina' => 'Select valina',

'basedOnFirms' => 'Based on Frims ',
'basedOnValina' => 'Based on Valina ',
'basedOnValinaReceived' => 'Based on Valina recevied ',
Expand Down Expand Up @@ -99,7 +108,7 @@
'Certificate Not Created' => 'Certificate Not Created',
'Not Paid' => 'Not Paid',
'Paid' => 'Paid',
'DATE PAYMENT' => 'DATE PAYMENT',
'DATE PAYMENT' => 'Date Payment',
'Assignment Option' => 'Assignment Option',
'Email to Client' => 'Email to Client',
'Download for Client' => 'Download for Client',
Expand Down Expand Up @@ -136,6 +145,9 @@
'SEND DATE' => 'SEND DATE',
'CERTIFI:DATE' => 'CERTIFI:DATE',
'certified and unpaid' => 'certified and unpaid',
'AdvisorNamedownload' => 'Advisor',
'CompanyNamedownload' => 'Company',
'Typedownlaod' => 'Type',

//firms translation
'Type' => 'Type',
Expand All @@ -157,7 +169,6 @@
'Generate new Report for Valina' => 'Generate new Report for Valina',
'lavelina' => 'lavelina',
'Select valina ...' => 'Select valina ...',

'You have' => 'You have',
'New Message' => 'New Message',
'New Messages' => 'New Messages',
Expand All @@ -174,4 +185,68 @@
'Send To all' => 'Send To all',


// user profile
'Edit profile' => 'Edit profile',
'profileName' => 'Name',
'Advisor Stamp/Signature' => 'Advisor Stamp/Signature',
'Choose Photo' => 'Choose Photo',
'Office Address' => 'Office Address',
'REGISTRATION NUMBER IN THE REGISTER OF ACCOUNTANTS' => 'REGISTRATION NUMBER IN THE REGISTER OF ACCOUNTANTS',
'CITY OF THE REGISTER OF ACCOUNTANTS' => 'CITY OF THE REGISTER OF ACCOUNTANTS',
'REGISTRATION NUMBER IN THE REGISTER OF AUDITORS' => 'REGISTRATION NUMBER IN THE REGISTER OF AUDITORS',
'EMAIL PEC' => 'EMAIL PEC',
'OFFICE NAME' => 'OFFICE NAME',
'INSURANCE POLICY NUMBER' => 'INSURANCE POLICY NUMBER',
'INSURANCE POLICY COMPANY NAME' => 'INSURANCE POLICY COMPANY NAME',
'Login information' => 'Login information',
'Select role' => 'Select role',
'Confirm password' => 'Confirm password',
'Submit' => 'Submit',
'Create user' => 'Create user',
'All user' => 'All user',
'Manage User' => 'Manage User',
'Create new user' => 'Create new user',
'All Users' => 'All Users',
'Search users' => 'Search users',
'Verified At' => 'Verified At',
'Photo' => 'Photo',
'Api calls' => 'Api calls',
'Action' => 'Action',
'View and edit user details' => 'View and edit user details',
'Edit user details' => 'Edit user details',
'Delete user' => 'Delete user',
'Settings' => 'Settings',
'General Settings' => 'General Settings',
'Company email' => 'Company Email',
'Company phone' => 'Company phone',
'Company logo' => 'Company logo',
'Choose logo' => 'Choose logo',
'Display setting' => 'Display setting',
'Record per page' => 'Record per page',
'Currency Symbol' => 'Currency Symbol',
'Other Settings' => 'Other Settings',
'User Registeration Admin Notification Email' => 'User Registeration Admin Notification Email',
'Activate' => 'Activate',
'Select default register role' => 'Select default register role',
'Maximum invaild login attempts' => 'Maximum invaild login attempts',
'Lockout delay (minutes)' => 'Lockout delay (minutes)',
'Manage Permissions' => 'Manage Permissions',
'Create new permissions' => 'Create new permissions',
'All permissions' => 'All permissions',
'PermissionName' => 'Name',
'Manage Roles' => 'Manage Roles',
'Create new role' => 'Create new role',
'All Roles' => 'All Roles',
'RoleName' => 'Name',
'Edit role details' => 'Edit role details',
'Delete role' => 'Delete role',
'Activity logs' => 'Activity logs',
'All activity' => 'All activity',
'Log Name' => 'Log Name',
'Description' => 'Description',
'Causer' => 'Causer',
'By Admin' => 'By Admin',
'By' => 'By',
'Created at' => 'Created at',

];
Loading

0 comments on commit c71d2d9

Please sign in to comment.