Path: blob/1.0-develop/resources/views/admin/nests/view.blade.php
7460 views
@extends('layouts.admin')12@section('title')3Nests → {{ $nest->name }}4@endsection56@section('content-header')7<h1>{{ $nest->name }}<small>{{ str_limit($nest->description, 50) }}</small></h1>8<ol class="breadcrumb">9<li><a href="{{ route('admin.index') }}">Admin</a></li>10<li><a href="{{ route('admin.nests') }}">Nests</a></li>11<li class="active">{{ $nest->name }}</li>12</ol>13@endsection1415@section('content')16<div class="row">17<form action="{{ route('admin.nests.view', $nest->id) }}" method="POST">18<div class="col-md-6">19<div class="box">20<div class="box-body">21<div class="form-group">22<label class="control-label">Name <span class="field-required"></span></label>23<div>24<input type="text" name="name" class="form-control" value="{{ $nest->name }}" />25<p class="text-muted"><small>This should be a descriptive category name that encompasses all of the options within the service.</small></p>26</div>27</div>28<div class="form-group">29<label class="control-label">Description</label>30<div>31<textarea name="description" class="form-control" rows="7">{{ $nest->description }}</textarea>32</div>33</div>34</div>35<div class="box-footer">36{!! csrf_field() !!}37<button type="submit" name="_method" value="PATCH" class="btn btn-primary btn-sm pull-right">Save</button>38<button id="deleteButton" type="submit" name="_method" value="DELETE" class="btn btn-sm btn-danger muted muted-hover"><i class="fa fa-trash-o"></i></button>39</div>40</div>41</div>42</form>43<div class="col-md-6">44<div class="box">45<div class="box-body">46<div class="form-group">47<label class="control-label">Nest ID</label>48<div>49<input type="text" readonly class="form-control" value="{{ $nest->id }}" />50<p class="text-muted small">A unique ID used for identification of this nest internally and through the API.</p>51</div>52</div>53<div class="form-group">54<label class="control-label">Author</label>55<div>56<input type="text" readonly class="form-control" value="{{ $nest->author }}" />57<p class="text-muted small">The author of this service option. Please direct questions and issues to them unless this is an official option authored by <code>[email protected]</code>.</p>58</div>59</div>60<div class="form-group">61<label class="control-label">UUID</label>62<div>63<input type="text" readonly class="form-control" value="{{ $nest->uuid }}" />64<p class="text-muted small">A UUID that all servers using this option are assigned for identification purposes.</p>65</div>66</div>67</div>68</div>69</div>70</div>71<div class="row">72<div class="col-xs-12">73<div class="box box-primary">74<div class="box-header with-border">75<h3 class="box-title">Nest Eggs</h3>76</div>77<div class="box-body table-responsive no-padding">78<table class="table table-hover">79<tr>80<th>ID</th>81<th>Name</th>82<th>Description</th>83<th class="text-center">Servers</th>84<th class="text-center"></th>85</tr>86@foreach($nest->eggs as $egg)87<tr>88<td class="align-middle"><code>{{ $egg->id }}</code></td>89<td class="align-middle"><a href="{{ route('admin.nests.egg.view', $egg->id) }}" data-toggle="tooltip" data-placement="right" title="{{ $egg->author }}">{{ $egg->name }}</a></td>90<td class="col-xs-8 align-middle">{{ $egg->description }}</td>91<td class="text-center align-middle"><code>{{ $egg->servers->count() }}</code></td>92<td class="align-middle">93<a href="{{ route('admin.nests.egg.export', ['egg' => $egg->id]) }}"><i class="fa fa-download"></i></a>94</td>95</tr>96@endforeach97</table>98</div>99<div class="box-footer">100<a href="{{ route('admin.nests.egg.new') }}"><button class="btn btn-success btn-sm pull-right">New Egg</button></a>101</div>102</div>103</div>104</div>105@endsection106107@section('footer-scripts')108@parent109<script>110$('#deleteButton').on('mouseenter', function (event) {111$(this).find('i').html(' Delete Nest');112}).on('mouseleave', function (event) {113$(this).find('i').html('');114});115</script>116@endsection117118119