This commit is contained in:
2024-04-21 14:42:52 +02:00
parent 4b69674ede
commit 8a25f53c99
10700 changed files with 55767 additions and 14201 deletions

View File

@ -0,0 +1,23 @@
@extends('layouts/edit-form', [
'createText' => {{ trans('admin/kits/general.append_accessory') }},
'updateText' => {{ trans('admin/kits/general.update_appended_accessory') }},
'formAction' => (isset($item->id)) ? route('kits.accessories.update', ['kit_id' => $kit->id, 'accessory_id' => $item->accessory_id]) : route('kits.accessories.store', ['kit_id' => $kit->id]),
])
{{-- Page content --}}
@section('inputFields')
@include ('partials.forms.edit.accessory-select', ['translated_name' => {{ trans('general.accessory')}}, 'fieldname' => 'accessory_id', 'required' => 'true'])
<div class="form-group {{ $errors->has('quantity') ? ' has-error' : '' }}">
<label for="quantity" class="col-md-3 control-label">{{ trans('general.quantity') }}</label>
<div class="col-md-7 required">
<div class="col-md-2" style="padding-left:0px">
<input class="form-control" type="text" name="quantity" id="quantity" value="{{ Request::old('quantity', $item->quantity) }}" />
</div>
{!! $errors->first('quantity', '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
</div>
</div>
<input type="hidden" name="pivot_id" value="{{$item->id}}">
{{-- <input class="form-control" type="text" name="quantity" id="quantity" value="{{ Request::old('quantity', $item->quantity) }}" /> --}}
@stop

View File

@ -0,0 +1,94 @@
@extends('layouts/default')
{{-- Page title --}}
@section('title')
{{ trans('admin/kits/general.checkout') }}
@parent
@stop
{{-- Page content --}}
@section('content')
<style>
.input-group {
padding-left: 0px !important;
}
</style>
<div class="row">
<!-- left column -->
<div class="col-md-7">
<div class="box box-default">
<div class="box-body">
<form class="form-horizontal" method="post" action="" autocomplete="off">
{{ csrf_field() }}
@include ('partials.forms.edit.user-select', ['translated_name' => trans('general.select_user'), 'fieldname' => 'user_id', 'required'=> 'true'])
<!-- Checkout/Checkin Date -->
<div class="form-group {{ $errors->has('checkout_at') ? 'error' : '' }}">
{{ Form::label('name', trans('admin/hardware/form.checkout_date'), array('class' => 'col-md-3 control-label')) }}
<div class="col-md-8">
<div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-end-date="0d" data-date-clear-btn="true">
<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="checkout_at" id="checkout_at" value="{{ Request::old('checkout_at') }}">
<span class="input-group-addon"><i class="fas fa-calendar"></i></span>
</div>
{!! $errors->first('checkout_at', '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
</div>
</div>
<!-- Expected Checkin Date -->
<div class="form-group {{ $errors->has('expected_checkin') ? 'error' : '' }}">
{{ Form::label('name', trans('admin/hardware/form.expected_checkin'), array('class' => 'col-md-3 control-label')) }}
<div class="col-md-8">
<div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-start-date="0d">
<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="expected_checkin" id="expected_checkin" value="{{ Request::old('expected_checkin') }}">
<span class="input-group-addon"><i class="fas fa-calendar"></i></span>
</div>
{!! $errors->first('expected_checkin', '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
</div>
</div>
<!-- Note -->
<div class="form-group {{ $errors->has('note') ? 'error' : '' }}">
{{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }}
<div class="col-md-8">
<textarea class="col-md-6 form-control" id="note" name="note">{{ Request::old('note') }}</textarea>
{!! $errors->first('note', '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
</div>
</div>
</div> <!--./box-body-->
<div class="box-footer">
<a class="btn btn-link" href="{{ route('kits.index') }}"> {{ trans('button.cancel') }}</a>
<button type="submit" class="btn btn-success pull-right"><i class="fas fa-check icon-white"></i> {{ trans('general.checkout') }}</button>
</div>
</div>
</form>
</div> <!--/.col-md-7-->
<!-- right column -->
<div class="col-md-5" id="current_assets_box" style="display:none;">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{{ trans('admin/users/general.current_assets') }}</h3>
</div>
<div class="box-body">
<div id="current_assets_content">
</div>
</div>
</div>
</div>
</div>
@stop
@section('moar_scripts')
@include('partials/assets-assigned')
@stop
@section('notifications')
@parent
<!-- included content -->
@stop

View File

@ -0,0 +1,24 @@
@extends('layouts/edit-form', [
'createText' => {{ trans('admin/kits/general.append_consumable') }},
'updateText' => {{ trans('admin/kits/general.update_appended_consumable') }},
'formAction' => (isset($item->id)) ? route('kits.consumables.update', ['kit_id' => $kit->id, 'consumable_id' => $item->consumable_id]) : route('kits.consumables.store', ['kit_id' => $kit->id]),
])
{{-- Page content --}}
@section('inputFields')
@include ('partials.forms.edit.consumable-select', ['translated_name' => {{ trans('general.consumable')}}, 'fieldname' => 'consumable_id', 'required' => 'true'])
<div class="form-group {{ $errors->has('quantity') ? ' has-error' : '' }}">
<label for="quantity" class="col-md-3 control-label">{{ trans('general.quantity') }}</label>
<div class="col-md-7 required">
<div class="col-md-2" style="padding-left:0px">
<input class="form-control" type="text" name="quantity" id="quantity" value="{{ Request::old('quantity', $item->quantity) }}" />
</div>
{!! $errors->first('quantity', '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
</div>
</div>
<input type="hidden" name="pivot_id" value="{{$item->id}}">
{{-- <input class="form-control" type="text" name="quantity" id="quantity" value="{{ Request::old('quantity', $item->quantity) }}" /> --}}
@stop

View File

@ -0,0 +1,10 @@
@extends('layouts/edit-form', [
'createText' => trans('admin/kits/general.create'),
'updateText' => trans('admin/kits/general.update'),
'formAction' => (isset($item->id)) ? route('kits.update', ['kit' => $item->id]) : route('kits.store'),
])
{{-- Page content --}}
@section('inputFields')
@include ('partials.forms.edit.name', ['translated_name' => trans('general.name')])
@stop

View File

@ -0,0 +1,156 @@
@extends('layouts/edit-form', [
'createText' => trans('admin/kits/general.create'),
'updateText' => trans('admin/kits/general.update'),
'helpTitle' => trans('admin/kits/general.about_kits_title'),
'helpText' => trans('admin/kits/general.about_kits_text'),
'formAction' => (isset($item->id)) ? route('kits.update', ['kit' => $item->id]) : route('kits.store'),
])
{{-- Page content --}}
@section('inputFields')
@include ('partials.forms.edit.name', ['translated_name' => trans('general.name')])
@stop
@section('content')
@parent
{{-- Assets by model --}}
<div class="row">
<div class="col-md-12">
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title"><span>{{ trans('general.asset_models') }}</span></h3>
</div>
<div class="box-body">
<div class="table-responsive">
<table
data-cookie-id-table="kitModelsTable"
data-columns="{{ \App\Presenters\PredefinedKitPresenter::dataTableModels() }}"
data-pagination="true"
data-search="true"
data-side-pagination="server"
data-show-columns="true"
data-show-export="true"
data-show-refresh="true"
data-sort-order="asc"
data-sort-name="name"
id="kitModelsTable"
class="table table-striped snipe-table"
data-url="{{ route('api.kits.models.index', $item->id) }}"
data-export-options='{
"fileName": "export-kit-models-{{ date('Y-m-d') }}",
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
}'>
</table>
<a href="{{ route('modal.show', ['type' => 'kit-model', 'itemId' => $item->id]) }}" data-refresh="kitModelsTable" data-toggle="modal" data-target="#createModal" class="btn btn-primary pull-right"><i class="fas fa-plus icon-white"></i> {{ trans('button.append')}}</a>
</div>
</div> <!--.box-body-->
</div> <!-- /.box.box-default-->
</div> <!-- .col-md-12-->
</div>
{{-- Licenses --}}
{{--<div class="row">--}}
{{-- <div class="col-md-12">--}}
{{-- <div class="box box-default">--}}
{{-- <div class="box-header with-border">--}}
{{-- <h3 class="box-title">Licenses--}}{{-- TODO: trans --}}{{--</h3>--}}
{{-- </div>--}}
{{-- <div class="box-body">--}}
{{-- <div class="table-responsive">--}}
{{-- <table--}}
{{-- data-cookie-id-table="kitLicensesTable"--}}
{{-- data-columns="{{ \App\Presenters\PredefinedKitPresenter::dataTableLicenses() }}"--}}
{{-- data-pagination="true"--}}
{{-- data-search="true"--}}
{{-- data-side-pagination="server"--}}
{{-- data-show-columns="true"--}}
{{-- data-show-export="true"--}}
{{-- data-show-refresh="true"--}}
{{-- data-sort-order="asc"--}}
{{-- data-sort-name="name"--}}
{{-- id="kitLicensesTable"--}}
{{-- class="table table-striped snipe-table"--}}
{{-- data-url="{{ route('api.kits.licenses.index', $item->id) }}"--}}
{{-- data-export-options='{--}}
{{-- "fileName": "export-kit-models-{{ date('Y-m-d') }}",--}}
{{-- "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]--}}
{{-- }'>--}}
{{-- </table>--}}
{{-- <a href="{{ route('modal.show', [ 'type' => 'kit-license', 'itemId' => $item->id]) }}" data-refresh="kitLicensesTable" data-toggle="modal" data-target="#createModal" class="btn btn-primary pull-right"><i class="fas fa-plus icon-white"></i> Append--}}{{-- TODO: trans --}}{{--</a>--}}
{{-- </div>--}}
{{-- </div> <!--.box-body-->--}}
{{-- </div> <!-- /.box.box-default-->--}}
{{-- </div> <!-- .col-md-12-->--}}
{{-- </div>--}}
{{-- Consumables --}}
{{--<div class="row">--}}
{{-- <div class="col-md-12">--}}
{{-- <div class="box box-default">--}}
{{-- <div class="box-header with-border">--}}
{{-- <h3 class="box-title">Consumables--}}{{-- TODO: trans --}}{{--</h3>--}}
{{-- </div>--}}
{{-- <div class="box-body">--}}
{{-- <div class="table-responsive">--}}
{{-- <table--}}
{{-- data-cookie-id-table="kitConsumablesTable"--}}
{{-- data-columns="{{ \App\Presenters\PredefinedKitPresenter::dataTableConsumables() }}"--}}
{{-- data-pagination="true"--}}
{{-- data-search="true"--}}
{{-- data-side-pagination="server"--}}
{{-- data-show-columns="true"--}}
{{-- data-show-export="true"--}}
{{-- data-show-refresh="true"--}}
{{-- data-sort-order="asc"--}}
{{-- data-sort-name="name"--}}
{{-- id="kitConsumablesTable"--}}
{{-- class="table table-striped snipe-table"--}}
{{-- data-url="{{ route('api.kits.consumables.index', $item->id) }}"--}}
{{-- data-export-options='{--}}
{{-- "fileName": "export-kit-models-{{ date('Y-m-d') }}",--}}
{{-- "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]--}}
{{-- }'>--}}
{{-- </table>--}}
{{-- <a href="{{ route('modal.show', ['type' => 'kit-consumable', 'itemId' => $item->id]) }}" data-refresh="kitConsumablesTable" data-toggle="modal" data-target="#createModal" class="btn btn-primary pull-right"><i class="fas fa-plus icon-white"></i> Append--}}{{-- TODO: trans --}}{{--</a>--}}
{{-- </div>--}}
{{-- </div> <!--.box-body-->--}}
{{-- </div> <!-- /.box.box-default-->--}}
{{-- </div> <!-- .col-md-12-->--}}
{{-- </div>--}}
{{-- Accessories --}}
{{--<div class="row">--}}
{{-- <div class="col-md-12">--}}
{{-- <div class="box box-default">--}}
{{-- <div class="box-header with-border">--}}
{{-- <h3 class="box-title">Accessories--}}{{-- TODO: trans --}}{{--</h3>--}}
{{-- </div>--}}
{{-- <div class="box-body">--}}
{{-- <div class="table-responsive">--}}
{{-- <table--}}
{{-- data-cookie-id-table="kitAccessoriesTable"--}}
{{-- data-columns="{{ \App\Presenters\PredefinedKitPresenter::dataTableAccessories() }}"--}}
{{-- data-pagination="true"--}}
{{-- data-search="true"--}}
{{-- data-side-pagination="server"--}}
{{-- data-show-columns="true"--}}
{{-- data-show-export="true"--}}
{{-- data-show-refresh="true"--}}
{{-- data-sort-order="asc"--}}
{{-- data-sort-name="name"--}}
{{-- id="kitAccessoriesTable"--}}
{{-- class="table table-striped snipe-table"--}}
{{-- data-url="{{ route('api.kits.accessories.index', $item->id) }}"--}}
{{-- data-export-options='{--}}
{{-- "fileName": "export-kit-models-{{ date('Y-m-d') }}",--}}
{{-- "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]--}}
{{-- }'>--}}
{{-- </table>--}}
{{-- <a href="{{ route('modal.show', ['type' => 'kit-accessory', 'itemId' => $item->id]) }}" data-refresh="kitAccessoriesTable" data-toggle="modal" data-target="#createModal" class="btn btn-primary pull-right"><i class="fas fa-plus icon-white"></i> Append--}}{{-- TODO: trans --}}{{--</a>--}}
{{-- </div>--}}
{{-- </div> <!--.box-body-->--}}
{{-- </div> <!-- /.box.box-default-->--}}
{{-- </div> <!-- .col-md-12-->--}}
{{-- </div>--}}
@stop
@section('moar_scripts')
@include ('partials.bootstrap-table')
@stop

View File

@ -0,0 +1,51 @@
@extends('layouts/default', [
'helpTitle' => trans('admin/kits/general.about_kits_title'),
'helpText' => trans('admin/kits/general.about_kits_text')])
{{-- Web site Title --}}
@section('title')
{{ trans('general.kits') }}
@parent
@stop
@section('header_right')
<a href="{{ route('kits.create') }}" class="btn btn-primary text-right">{{ trans('general.create') }}</a>
@stop
{{-- Content --}}
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-default">
<div class="box-body">
<div class="table-responsive">
<table
data-cookie-id-table="kitsTable"
data-columns="{{ \App\Presenters\PredefinedKitPresenter::dataTableLayout() }}"
data-pagination="true"
data-search="true"
data-side-pagination="server"
data-show-columns="true"
data-show-fullscreen="true"
data-show-export="true"
data-show-refresh="true"
data-sort-order="asc"
data-sort-name="name"
id="kitsTable"
class="table table-striped snipe-table"
data-url="{{ route('api.kits.index') }}"
data-export-options='{
"fileName": "export-kits-{{ date('Y-m-d') }}",
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
}'>
</table>
</div>
</div> <!--.box-body-->
</div> <!-- /.box.box-default-->
</div> <!-- .col-md-12-->
</div>
@stop
@section('moar_scripts')
@include ('partials.bootstrap-table', ['exportFile' => 'kits-export', 'search' => true])
@stop

View File

@ -0,0 +1,23 @@
@extends('layouts/edit-form', [
'createText' => {{ trans('admin/kits/general.append_license') }},
'updateText' => {{ trans('admin/kits/general.update_appended_license') }},
'formAction' => (isset($item->id)) ? route('kits.licenses.update', ['kit_id' => $kit->id, 'license_id' => $item->license_id]) : route('kits.licenses.store', ['kit_id' => $kit->id]),
])
{{-- Page content --}}
@section('inputFields')
@include ('partials.forms.edit.license-select', ['translated_name' => trans('general.license'), 'fieldname' => 'license_id', 'required' => 'true'])
<div class="form-group {{ $errors->has('quantity') ? ' has-error' : '' }}">
<label for="quantity" class="col-md-3 control-label">{{ trans('general.quantity') }}</label>
<div class="col-md-7 required">
<div class="col-md-2" style="padding-left:0px">
<input class="form-control" type="text" name="quantity" id="quantity" value="{{ Request::old('quantity', $item->quantity) }}" />
</div>
{!! $errors->first('quantity', '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
</div>
</div>
<input type="hidden" name="pivot_id" value="{{$item->id}}">
{{-- <input class="form-control" type="text" name="quantity" id="quantity" value="{{ Request::old('quantity', $item->quantity) }}" /> --}}
@stop

View File

@ -0,0 +1,23 @@
@extends('layouts/edit-form', [
'createText' => trans('admin/kits/general.append_model'),
'updateText' => trans('admin/kits/general.update_appended_model'),
'formAction' => (isset($item->id)) ? route('kits.models.update', ['kit_id' => $kit->id, 'model_id' => $item->model_id]) : route('kits.models.store', ['kit_id' => $kit->id]),
])
{{-- Page content --}}
@section('inputFields')
@include ('partials.forms.edit.model-select', ['translated_name' => trans('admin/hardware/form.model'), 'fieldname' => 'model_id', 'required' => 'true'])
<div class="form-group {{ $errors->has('quantity') ? ' has-error' : '' }}">
<label for="quantity" class="col-md-3 control-label">{{ trans('general.quantity') }}</label>
<div class="col-md-7 required">
<div class="col-md-2" style="padding-left:0px">
<input class="form-control" type="text" name="quantity" id="quantity" value="{{ Request::old('quantity', $item->quantity) }}" />
</div>
{!! $errors->first('quantity', '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
</div>
</div>
<input type="hidden" name="pivot_id" value="{{$item->id}}">
{{-- <input class="form-control" type="text" name="quantity" id="quantity" value="{{ Request::old('quantity', $item->quantity) }}" /> --}}
@stop