<?php
$permissionL = null;
if (!empty($project_info->permission)) {
	$permissionL = $project_info->permission;
}
?>
<form id="form_validation"
	action="<?php echo base_url() ?>admin/projects/update_member/<?php if (!empty($project_info->project_id)) echo $project_info->project_id; ?>"
	method="post" class="space-y-4" data-project-member-form="1">

	<?= form_permission_modern($assign_user, $permissionL, lang('assined_to'), true); ?>

	<div class="flex justify-end gap-2 pt-2 border-t border-slate-200 dark:border-slate-700">
		<button type="button" data-modal-close
			class="rounded-lg border border-slate-200 bg-white px-4 py-2 text-sm font-medium text-slate-700 shadow-sm transition-colors hover:bg-slate-50 hover:text-slate-900 focus:outline-none focus:ring-2 focus:ring-slate-500/10 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-300 dark:hover:bg-gray-700 dark:hover:text-white">
			<?= lang('close') ?>
		</button>
		<button type="submit" class="rounded-lg bg-primary px-4 py-2 text-sm font-medium text-white shadow hover:bg-primary/90 transition"><?= lang('update') ?></button>
	</div>
</form>
