<commit_before>@extends('template.skeleton')

@section('title')
{{ Auth::user()->username.' | '._('Online phones') }}
@stop

@section('content')

	<div class="container">

		<h1>{{ _('Online Phones') }}</h1>
        <p>Last update: {{ $online_phones[0]->created_at }}</p>

		@include('template.messages')

		<div  class="table-responsive">
            <table class="table table-bordered table-striped">
                <tr>
                    <th>{{ _('Phone Number (E.164)') }}</th>
                    <th>{{ _('Local Phone Number') }}</th>
                    <th>{{ _('Domain') }}</th>
                    <th>{{ _('Description') }}</th>
                </tr>
                @foreach ($online_phones as $online_phone)
                <tr>
                    <td>+{{ Config::get('settings.global_prefix') }}-{{ $online_phone->domain->prefix }}-{{ $online_phone->username }}</td>
                    <td>{{ $online_phone->username }}</td>
                    <td>{{ $online_phone->sip_server }}</td>
                    <td>{{ $online_phone->phonenumber->description }}</td>
                </tr>
                @endforeach
            </table>
		</div>
<commit_msg>Fix online phone number if empty<commit_after>@extends('template.skeleton')

@section('title')
{{ Auth::user()->username.' | '._('Online phones') }}
@stop

@section('content')

	<div class="container">

		<h1>{{ _('Online Phones') }}</h1>
        <p>Last update: {{ count($online_phones) > 0 ? $online_phones[0]->created_at : ''}}</p>

		@include('template.messages')

		<div  class="table-responsive">
            <table class="table table-bordered table-striped">
                <tr>
                    <th>{{ _('Phone Number (E.164)') }}</th>
                    <th>{{ _('Local Phone Number') }}</th>
                    <th>{{ _('Domain') }}</th>
                    <th>{{ _('Description') }}</th>
                </tr>
                @foreach ($online_phones as $online_phone)
                <tr>
                    <td>+{{ Config::get('settings.global_prefix') }}-{{ $online_phone->domain->prefix }}-{{ $online_phone->username }}</td>
                    <td>{{ $online_phone->username }}</td>
                    <td>{{ $online_phone->sip_server }}</td>
                    <td>{{ $online_phone->phonenumber->description }}</td>
                </tr>
                @endforeach
            </table>
		</div>

{'fraction_non_alphanumeric': 0.2045929018789144, 'fraction_numerical': 0.005427974947807933, 'mean_word_length': 1.8902291917973462, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 80, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3732085', 'n_tokens_mistral': 760, 'n_tokens_neox': 689, 'n_words': 137}