info.blade.php
4.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
@extends ('backend.layouts.app')
@section ('title', trans('labels.backend.rent.management') . ' | ' . trans('labels.backend.rent.view'))
@section('page-header')
<h1>
{{ trans('labels.backend.rent.management') }}
<small>{{ trans('labels.backend.rent.view') }}</small>
</h1>
@endsection
@section('content')
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">{{ trans('labels.backend.rent.view') }}</h3>
<div class="box-tools pull-right">
@include('backend.rent.includes.Partials.rent-header-button')
</div><!--box-tools pull-right-->
</div><!-- /.box-header -->
<div class="box-body">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active">
<a href="#overview" aria-controls="overview" role="tab" data-toggle="tab">{{ trans('labels.backend.device.tabs.titles.overview') }}</a>
</li>
{{--<li role="presentation">--}}
{{--<a href="#history" aria-controls="history" role="tab" data-toggle="tab">{{ trans('labels.backend.device..tabs.titles.history') }}</a>--}}
{{--</li>--}}
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane mt-30 active" id="overview">
@include('backend.rent.show.tabs.overview')
</div><!--tab overview profile-->
{{--<div role="tabpanel" class="tab-pane mt-30" id="history">--}}
{{--@include('backend.device.show.tabs.history')--}}
{{--</div><!--tab panel history-->--}}
</div><!--tab content-->
</div><!--tab panel-->
</div><!-- /.box-body -->
</div><!--box-->
@if($info[0]->is_return != 1)
<div class="box box-info" >
<div class="box-body">
<div class="pull-right">
<a class="btn btn-primary btn-xs" style="cursor:pointer;"
onclick="drawBack();">
退款
</a>
</div><!--pull-left-->
</div><!-- /.box-body -->
</div><!--box-->
@endif
<div class="withdraw" id="withdraw" style="display: none;">
<div class="form">
{{ Form::open(['route' => 'admin.rent.drawback', 'class' => 'form-horizontal', 'method' => 'post']) }}
{{ Form::label('type', trans('validation.attributes.backend.rent.mac_no').":", []) }}
{{ Form::text('mac_no', $info[0]->mac_no, ['id'=>'mac_no', 'required'=>"required"]) }}
{{ Form::label('type', trans('validation.attributes.backend.rent.hatch_no').":", []) }}
{{ Form::text('hatch_no', $info[0]->rent_hatch_no, ['id'=>'hatch_no', 'required'=>"required"]) }}
{{ Form::label('type', trans('validation.attributes.backend.rent.back_time').":", []) }}
{{ Form::text('backTime', null, ['id'=>'backTime', 'required'=>"required"]) }}
{{ Form::hidden('power_no', $info[0]->power_no, ['required'=>"required"]) }}
{{ Form::hidden('rentId', $info[0]->id, ['required'=>"required"]) }}
{{ Form::submit(trans('buttons.general.save'), ['class' => 'withdraw sub']) }}
{{csrf_field()}}
{{ Form::close() }}
</div>
</div>
@endsection
@section('after-scripts')
{{ Html::script("js/layer/layer.js") }}
{{ Html::script("js/laydate/laydate.js") }}
<!-- 实例化编辑器 -->
<script>
function drawBack() {
layer.open({
type: 1,
area: ['500px', '400px'],
shade: [0.8, '#393D49'],
shadeClose: true,
title: false, //不显示标题
content: $('#withdraw'),
end: function () {
$('#mac_no').val({{$info[0]->mac_no}});
$('#hatch_no').val({{$info[0]->rent_hatch_no}});
$('#backTime').val('');
}
});
}
//时间选择器
laydate.render({
elem: '#backTime'
, type: 'time'
});
</script>
@endsection