93 lines
4.2 KiB
PHP
93 lines
4.2 KiB
PHP
@extends('administrator.layout.master')
|
|
@push('plugin-styles')
|
|
@foreach (config('assets.datatable.css') as $datatable)
|
|
<link href="{{ asset($datatable) }}" rel="stylesheet" />
|
|
@endforeach
|
|
@endpush
|
|
|
|
@section('breadcrumb')
|
|
@php
|
|
$breadcrumbItems = [
|
|
['label' => 'Modules'],
|
|
['label' => 'Package vCenter'],
|
|
['label' => 'Version', 'url' => route('package.version.index')],
|
|
['label' => 'Add Version', 'active' => true],
|
|
];
|
|
@endphp
|
|
<x-admin-breadcrumb :items="$breadcrumbItems" />
|
|
@endsection
|
|
|
|
@php
|
|
use App\Enums\Status;
|
|
@endphp
|
|
@section('content')
|
|
@if (auth()->guard('admins')->user()->can('add package module'))
|
|
<div class="card card-outline card-primary">
|
|
<form action="{{ route('package.version.store') }}" method="post">
|
|
@csrf
|
|
<div class="card-header">
|
|
<h3 class="card-title mb-0">Add Version OS</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col">
|
|
{{-- Group Name --}}
|
|
<div class="row form-group align-items-center mb-0">
|
|
<label for="version" class="col-md-3 text-right">Version</label>
|
|
<div class="col-md-9 bg-customer p-1">
|
|
<input type="text" id="version" name="version" placeholder="6.x,7.x, ..."
|
|
value="{{ old('version') }}" class="form-control">
|
|
</div>
|
|
</div>
|
|
|
|
<x-module.v-center :model="null" />
|
|
<x-module.datacenter :model="null" />
|
|
<x-module.host :model="null" />
|
|
<x-module.os :model="null" />
|
|
|
|
<div class="row form-group align-items-center mb-0">
|
|
<label for="version" class="col-md-3 text-right">Template</label>
|
|
<div class="col-md-9 bg-customer p-1">
|
|
<input type="text" id="template_id" name="template_id" placeholder="vm-2005"
|
|
value="{{ old('template_id') }}" class="form-control">
|
|
</div>
|
|
</div>
|
|
<div class="row form-group align-items-center mb-0">
|
|
<label for="status" class="col-md-3 text-right">Status</label>
|
|
<div class="col-md-9 bg-customer p-1">
|
|
<select class="custom-select select2 single__select" id="status" name="status">
|
|
@foreach (Status::getOptions() as $value => $label)
|
|
<option value="{{ $value }}" @selected(old('status') == $value)>
|
|
{{ $label }}
|
|
</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<x-fixed-action-bar>
|
|
<x-button-crm type="button" variant="secondary" size="sm" icon="arrow-left"
|
|
route="package.version.index">Trở lại</x-button-crm>
|
|
<x-button-crm type="submit" variant="primary" size="sm" icon="plus-circle">Tạo mới</x-button-crm>
|
|
</x-fixed-action-bar>
|
|
</form>
|
|
</div>
|
|
@else
|
|
<div class="alert alert-danger alert-dismissible">
|
|
<h5 class="mb-0"><i class="icon fas fa-ban"></i> Access Denied - You are not assigned to any Module Package
|
|
management department</h5>
|
|
</div>
|
|
@endif
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
@endpush
|
|
|
|
@push('plugin-scripts')
|
|
@foreach (config('assets.datatable.js') as $datatable)
|
|
<script src="{{ asset($datatable) }}"></script>
|
|
@endforeach
|
|
@endpush
|