2016-03-25 01:18:05 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
2017-09-28 21:18:16 -07:00
|
|
|
{{ trans('admin/accessories/general.checkout') }}
|
2016-03-25 01:18:05 -07:00
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
@section('header_right')
|
|
|
|
<a href="{{ URL::previous() }}" class="btn btn-primary pull-right">
|
|
|
|
{{ trans('general.back') }}</a>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-9">
|
2024-01-10 11:35:32 -08:00
|
|
|
<form class="form-horizontal" id="checkout_form" method="post" action="" autocomplete="off">
|
2016-03-25 01:18:05 -07:00
|
|
|
<!-- CSRF Token -->
|
|
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
|
|
|
|
|
|
|
<div class="box box-default">
|
|
|
|
@if ($accessory->id)
|
|
|
|
<div class="box-header with-border">
|
2020-03-31 23:36:56 -07:00
|
|
|
<h2 class="box-title">{{ $accessory->name }}</h2>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div><!-- /.box-header -->
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="box-body">
|
|
|
|
@if ($accessory->name)
|
|
|
|
<!-- accessory name -->
|
|
|
|
<div class="form-group">
|
2016-12-27 12:03:47 -08:00
|
|
|
<label class="col-sm-3 control-label">{{ trans('admin/accessories/general.accessory_name') }}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<p class="form-control-static">{{ $accessory->name }}</p>
|
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2018-01-10 06:33:59 -08:00
|
|
|
@if ($accessory->category)
|
2016-03-25 01:18:05 -07:00
|
|
|
<!-- accessory name -->
|
|
|
|
<div class="form-group">
|
2016-12-27 12:03:47 -08:00
|
|
|
<label class="col-sm-3 control-label">{{ trans('admin/accessories/general.accessory_category') }}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<p class="form-control-static">{{ $accessory->category->name }}</p>
|
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<!-- User -->
|
|
|
|
|
2017-10-26 03:43:28 -07:00
|
|
|
@include ('partials.forms.edit.user-select', ['translated_name' => trans('general.select_user'), 'fieldname' => 'assigned_to'])
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
|
2023-03-22 14:43:00 -07:00
|
|
|
@if ($accessory->requireAcceptance() || $accessory->getEula() || ($snipeSettings->webhook_endpoint!=''))
|
2018-03-25 13:46:57 -07:00
|
|
|
<div class="form-group notification-callout">
|
|
|
|
<div class="col-md-8 col-md-offset-3">
|
|
|
|
<div class="callout callout-info">
|
|
|
|
|
|
|
|
@if ($accessory->requireAcceptance())
|
2021-09-24 13:07:02 -07:00
|
|
|
<i class="far fa-envelope"></i>
|
2018-03-25 13:46:57 -07:00
|
|
|
{{ trans('admin/categories/general.required_acceptance') }}
|
|
|
|
<br>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if ($accessory->getEula())
|
2021-09-24 13:07:02 -07:00
|
|
|
<i class="far fa-envelope"></i>
|
2018-03-25 13:46:57 -07:00
|
|
|
{{ trans('admin/categories/general.required_eula') }}
|
|
|
|
<br>
|
|
|
|
@endif
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2023-03-22 14:43:00 -07:00
|
|
|
@if ($snipeSettings->webhook_endpoint!='')
|
2021-09-26 01:11:08 -07:00
|
|
|
<i class="fab fa-slack"></i>
|
2023-03-22 14:43:00 -07:00
|
|
|
{{ trans('general.webhook_msg_note') }}
|
2018-03-25 13:46:57 -07:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2018-05-28 14:30:18 -07:00
|
|
|
<!-- Note -->
|
|
|
|
<div class="form-group {{ $errors->has('note') ? 'error' : '' }}">
|
|
|
|
<label for="note" class="col-md-3 control-label">{{ trans('admin/hardware/form.notes') }}</label>
|
|
|
|
<div class="col-md-7">
|
2020-04-21 03:58:31 -07:00
|
|
|
<textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $accessory->note) }}</textarea>
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
2018-05-28 14:30:18 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
2017-10-04 23:28:13 -07:00
|
|
|
<div class="box-footer">
|
|
|
|
<a class="btn btn-link" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a>
|
2024-01-10 11:35:32 -08:00
|
|
|
<button type="submit" id="submit_button" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkout') }}</button>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
2016-12-27 12:03:47 -08:00
|
|
|
</div> <!-- .box.box-default -->
|
2016-03-25 01:18:05 -07:00
|
|
|
</form>
|
2016-12-27 12:03:47 -08:00
|
|
|
</div> <!-- .col-md-9-->
|
|
|
|
</div> <!-- .row -->
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
|
|
|
|
@stop
|