обновлена страница с приглашениями
This commit is contained in:
parent
197129008e
commit
9e6a6c8fde
@ -1,26 +1,41 @@
|
||||
@php($title = 'Приглашения агентов')
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="d-flex mb-3 sticky-top bg-light rounded-3">
|
||||
<div class="p-2 w-100"></div>
|
||||
<div class="p-2 flex-shrink-1">
|
||||
<form class="" method="post" action="{{ route('company.invites.create', ['company' => 1]) }}">
|
||||
@csrf
|
||||
<input class="btn btn-primary" type="submit" value="Создать приглашение" />
|
||||
</form>
|
||||
@if($invites->count())
|
||||
<div class="d-flex mb-3 sticky-top bg-light rounded-3">
|
||||
<div class="p-2 w-100"></div>
|
||||
<div class="p-2 flex-shrink-1">
|
||||
<form class="" method="post" action="{{ route('company.invites.create', ['company' => $company]) }}">
|
||||
@csrf
|
||||
<input class="btn btn-primary" type="submit" value="Создать приглашение" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<h5>Действующие приглашения для<br><b>{{ $company->name }}</b></h5>
|
||||
<div class="row g-2 w-100">
|
||||
<div class="row g-2 w-100 mt-2">
|
||||
@if(!$invites->count())
|
||||
<div class="fs-5 bg-light p-0 m-0 border border-1 rounded-3">
|
||||
<div class="text-center mt-5">Нет активных ссылок-приглашений</div>
|
||||
<div class="mt-1 mb-5">
|
||||
<form class="text-center" method="post" action="{{ route('company.invites.create', ['company' => $company]) }}">
|
||||
@csrf
|
||||
<input class="btn btn-primary" type="submit" value="Создать приглашение" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@foreach ($invites as $invite)
|
||||
<div class="d-flex flex-row w-100 gap-3 bg-light rounded-3 p-2 align-items-center">
|
||||
<div class="col flex-fill">
|
||||
<div class="input-group">
|
||||
<input disabled id="invite_{{ $invite->hash }}" value="{{ route('company.invite.open', ['hash' => $invite->hash]) }}" type="text"
|
||||
<input disabled id="invite_{{ $invite->hash }}"
|
||||
value="{{ route('company.invite.open', ['hash' => $invite->hash]) }}" type="text"
|
||||
class="form-control" placeholder="Recipient’s username" aria-label="Recipient’s username"
|
||||
aria-describedby="basic-addon2">
|
||||
<button data-target="invite_{{ $invite->hash }}" class="copy-invite-btn btn btn-secondary border-secondry" type="button" id="button-addon2"><i
|
||||
<button data-target="invite_{{ $invite->hash }}"
|
||||
class="copy-invite-btn btn btn-secondary border-secondry" type="button" id="button-addon2"><i
|
||||
class="bi bi-clipboard"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user