mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-04-18 05:08:27 +00:00
49 lines
No EOL
1.7 KiB
PHP
49 lines
No EOL
1.7 KiB
PHP
<h3>
|
|
{{ __('Voicemails') }}
|
|
</h3>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>{{ __('Created') }}</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@if ($account->uploadedVoicemails->isEmpty())
|
|
<tr class="empty">
|
|
<td colspan="2">{{ __('Empty') }}</td>
|
|
</tr>
|
|
@endif
|
|
@foreach ($account->uploadedVoicemails as $voicemail)
|
|
<tr>
|
|
<td>
|
|
{{ $voicemail->created_at }}
|
|
@if ($voicemail->url)
|
|
<a style="margin-left: 1rem;" href="{{ $voicemail->download_url }}" download>
|
|
<i class="ph ph-download"></i>
|
|
</a>
|
|
@endif
|
|
@if ($voicemail->sip_from)
|
|
<br/>
|
|
<small>{{ $voicemail->sip_from }}</small>
|
|
@endif
|
|
</td>
|
|
<td>
|
|
@if ($voicemail->url)
|
|
<audio class="oppose" controls src="{{ $voicemail->url }}"></audio>
|
|
<a type="button"
|
|
class="oppose btn tertiary"
|
|
@if ($admin)
|
|
href="{{ route('admin.account.file.delete', [$account, $voicemail->id]) }}"
|
|
@else
|
|
href="{{ route('account.file.delete', [$voicemail->id]) }}"
|
|
@endif
|
|
>
|
|
<i class="ph ph-trash"></i>
|
|
</a>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table> |