96 lines
2.4 KiB
PHP
96 lines
2.4 KiB
PHP
@extends('themes.default1.admin.layout.admin')
|
|
|
|
@section('Emails')
|
|
class="nav-link active"
|
|
@stop
|
|
|
|
@section('email-menu-parent')
|
|
class="nav-item menu-open"
|
|
@stop
|
|
|
|
@section('email-menu-open')
|
|
class="nav nav-treeview menu-open"
|
|
@stop
|
|
|
|
@section('queue')
|
|
class="nav-link active"
|
|
@stop
|
|
|
|
@section('HeadInclude')
|
|
@stop
|
|
<!-- header -->
|
|
@section('PageHeader')
|
|
<h1>{{$queue->name}}</h1>
|
|
@stop
|
|
<!-- /header -->
|
|
<!-- breadcrumbs -->
|
|
@section('breadcrumbs')
|
|
<ol class="breadcrumb">
|
|
</ol>
|
|
@stop
|
|
<!-- /breadcrumbs -->
|
|
<!-- content -->
|
|
@section('content')
|
|
@if (count($errors) > 0)
|
|
<div class="alert alert-danger">
|
|
<strong>{{Lang::get('lang.woops')}}</strong> {{Lang::get('lang.theirisproblem')}}<br><br>
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
@if(Session::has('success'))
|
|
<div class="alert alert-success alert-dismissable">
|
|
<i class="fa fa-check-circle"></i>
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
{{Session::get('success')}}
|
|
</div>
|
|
@endif
|
|
@if(Session::has('fails'))
|
|
<div class="alert alert-danger alert-dismissable">
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
{{Session::get('fails')}}
|
|
</div>
|
|
@endif
|
|
@if(Session::has('warn'))
|
|
<div class="alert alert-warning alert-dismissable">
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
{{Session::get('warn')}}
|
|
</div>
|
|
@endif
|
|
<div class="card card-light">
|
|
<div class="card-header">
|
|
<h3 class="card-title">{!! Lang::get('lang.queues') !!}</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
{!! Form::open(['url'=>'queue/'.$queue->id,'method'=>'post','id'=>'form']) !!}
|
|
<div id="response">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card-footer">
|
|
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary']) !!}
|
|
{!! Form::close() !!}
|
|
</div>
|
|
</div>
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
var queueid = '{{$queue->id}}';
|
|
$.ajax({
|
|
url: "{{url('form/queue')}}",
|
|
dataType: "html",
|
|
data: {'queueid': queueid},
|
|
success: function (response) {
|
|
$("#response").html(response);
|
|
},
|
|
error: function (response) {
|
|
$("#response").html(response);
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
@stop |