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

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

@section('content')

	<div class="container">

		<h1>{{ _('Manage Domain') }}</h1>

		@include('template.messages')

        <br>
        {{ Form::open(array('url' => 'domain/search', 'method' => 'post', 'class'=> 'form-inline')) }}

        <div class="form-group">
             @if(Auth::user()->status == 2)
            {{ Form::select('search_category', array('Search','domain' => 'Domain', 'owner' => 'Owner', 'prefix' => 'Prefix', 'description' => 'Description'), $selected['search_category'], array('class' => 'form-control input-sm')) }}
            @else
            {{ Form::select('search_category', array('Search','domain' => 'Domain', 'prefix' => 'Prefix', 'description' => 'Description'), $selected['search_category'], array('class' => 'form-control input-sm')) }}
            @endif
        </div>

        <div class="form-group">
            {{ Form::text('search_keyword', $selected['search_keyword'], array('class' => 'form-control input-sm')) }}
        </div>

        {{ Form::submit('Search', array('class' => 'btn btn-primary btn-sm')) }}

        {{ Form::close() }}
        <br>

        @if(Auth::user()->status!=2)
		<a href="{{ url('domain/add') }}"><span class="glyphicon glyphicon-plus"></span> {{ _('Add') }}</a>
		@endif
		<div  class="table-responsive">
            <table class="table table-bordered table-striped">
                <tr>
                    @if(Auth::user()->status == 2)
                    <th>{{ _('Owner') }}</th>
                    @endif
                    <th>{{ _('Domain name for Control Panel (DCP)') }}</th>
                    <th>{{ _('Domain name for SIP Server (DSS)') }}</th>
                    <th>{{ _('Prefix') }}</th>
                    <th>{{ _('Description') }}</th>
                    <th>{{ _('DCP URL') }}</th>
                    <th class="text-center">{{ _('Action') }}</th>
                </tr>
                @foreach ($domains as $domain)
                <tr>
                    @if(Auth::user()->status == 2)
                    <td>{{ $domain->user->username }}</td>
                    @endif
                    <td><a target="_blank" href="http://{{ $domain->domain }}">http://{{ $domain->domain }}</a></td>
                    <td>{{ $domain->sip_server }}</td>
                    <td>+{{ Config::get('settings.global_prefix') }}-{{ $domain->prefix }}</td>
                    <td>{{ $domain->description }}</td>
                    <td>{{ Form::text('description', url(Config::get('settings.panel_path')).'/'.$domain->id, array('class' => 'form-control input-sm', 'readonly')) }}</td><commit_msg>remove DCP URL<commit_after>@extends('template.skeleton')

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

@section('content')

	<div class="container">

		<h1>{{ _('Manage Domain') }}</h1>

		@include('template.messages')

        <br>
        {{ Form::open(array('url' => 'domain/search', 'method' => 'post', 'class'=> 'form-inline')) }}

        <div class="form-group">
             @if(Auth::user()->status == 2)
            {{ Form::select('search_category', array('Search','domain' => 'Domain', 'owner' => 'Owner', 'prefix' => 'Prefix', 'description' => 'Description'), $selected['search_category'], array('class' => 'form-control input-sm')) }}
            @else
            {{ Form::select('search_category', array('Search','domain' => 'Domain', 'prefix' => 'Prefix', 'description' => 'Description'), $selected['search_category'], array('class' => 'form-control input-sm')) }}
            @endif
        </div>

        <div class="form-group">
            {{ Form::text('search_keyword', $selected['search_keyword'], array('class' => 'form-control input-sm')) }}
        </div>

        {{ Form::submit('Search', array('class' => 'btn btn-primary btn-sm')) }}

        {{ Form::close() }}
        <br>

        @if(Auth::user()->status!=2)
		<a href="{{ url('domain/add') }}"><span class="glyphicon glyphicon-plus"></span> {{ _('Add') }}</a>
		@endif
		<div  class="table-responsive">
            <table class="table table-bordered table-striped">
                <tr>
                    @if(Auth::user()->status == 2)
                    <th>{{ _('Owner') }}</th>
                    @endif
                    <th>{{ _('Domain name for Control Panel (DCP)') }}</th>
                    <th>{{ _('Domain name for SIP Server (DSS)') }}</th>
                    <th>{{ _('Prefix') }}</th>
                    <th>{{ _('Description') }}</th>
                    <th class="text-center">{{ _('Action') }}</th>
                </tr>
                @foreach ($domains as $domain)
                <tr>
                    @if(Auth::user()->status == 2)
                    <td>{{ $domain->user->username }}</td>
                    @endif
                    <td><a target="_blank" href="http://{{ $domain->domain }}">http://{{ $domain->domain }}</a></td>
                    <td>{{ $domain->sip_server }}</td>
                    <td>+{{ Config::get('settings.global_prefix') }}-{{ $domain->prefix }}</td>
                    <td>{{ $domain->description }}</td>
{'fraction_non_alphanumeric': 0.23405073020753267, 'fraction_numerical': 0.0023059185242121443, 'mean_word_length': 2.1795968234575445, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 145, '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': '341332', 'n_tokens_mistral': 1581, 'n_tokens_neox': 1478, 'n_words': 301}