Google2Fa ready to upload
This commit is contained in:
parent
e3495be8b8
commit
73e38a006e
127 changed files with 2637 additions and 589 deletions
|
|
@ -22,7 +22,7 @@ class LeadController extends Controller
|
|||
|
||||
public function __construct(LeadRepository $leadRepo, CustomerRepository $custRepo)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
$this->middleware(['admin', '2fa']);
|
||||
$this->leadRepo = $leadRepo;
|
||||
$this->custRepo = $custRepo;
|
||||
|
||||
|
|
@ -238,6 +238,8 @@ class LeadController extends Controller
|
|||
|
||||
if($lead->lead_mails->count()){
|
||||
$lead_mail = $lead->lead_mails_sent_at->last();
|
||||
$badge = $lead_mail->is_answer ? 'badge-default' : 'badge-secondary';
|
||||
$badge = !$lead_mail->send ? $badge : 'badge-success';
|
||||
return '<a data-order="'.$lead_mail->getSentAtRaw().'" href="#" data-toggle="modal"
|
||||
data-target="#modals-load-content"
|
||||
data-id="show-mail"
|
||||
|
|
@ -248,7 +250,9 @@ class LeadController extends Controller
|
|||
data-action="show-lead-mail"
|
||||
data-redirect="back"
|
||||
data-route="'.route('lead_mail_modal_load').'">
|
||||
<span class="badge '.($lead_mail->is_answer ? 'badge-default' : 'badge-secondary').'">'.$lead_mail->sent_at.'</span>
|
||||
<span class="badge '.$badge.'">'
|
||||
.($lead_mail->send ? '<i class="fa fa-check-circle"></i>' : '<i class="fa fa-times-circle"></i>').' '
|
||||
.$lead_mail->sent_at.'</span>
|
||||
</a>';
|
||||
}
|
||||
return '<span data-order="">-</span>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue