2016-07-21 22:01:57 +08:00
|
|
|
@extends('user.master')
|
|
|
|
|
2016-09-15 23:03:58 +08:00
|
|
|
@section('title', trans('general.my-closet'))
|
2016-07-21 22:01:57 +08:00
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<!-- Content Wrapper. Contains page content -->
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<!-- Content Header (Page header) -->
|
|
|
|
<section class="content-header">
|
|
|
|
<h1>
|
2016-09-15 23:03:58 +08:00
|
|
|
{{ trans('general.my-closet') }}
|
2016-07-21 22:01:57 +08:00
|
|
|
</h1>
|
|
|
|
<div class="breadcrumb">
|
2016-09-15 23:03:58 +08:00
|
|
|
<a href="{{ url('skinlib/upload') }}"><i class="fa fa-upload"></i> {{ trans('user.closet.upload') }}</a>
|
|
|
|
<a href="{{ url('skinlib') }}"><i class="fa fa-search"></i> {{ trans('user.closet.search') }}</a>
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Main content -->
|
|
|
|
<section class="content">
|
|
|
|
<div class="row">
|
|
|
|
<!-- Left col -->
|
|
|
|
<div class="col-md-8">
|
2016-11-13 12:20:30 +08:00
|
|
|
<!-- Custom tabs -->
|
2017-11-26 23:57:52 +08:00
|
|
|
<div class="nav-tabs-custom" id="closet-container">
|
2016-11-13 12:20:30 +08:00
|
|
|
<!-- Tabs within a box -->
|
|
|
|
<ul class="nav nav-tabs">
|
2017-04-23 23:58:22 +08:00
|
|
|
<li class="active"><a href="#skin-category" class="category-switch" data-toggle="tab">{{ trans('general.skin') }}</a></li>
|
|
|
|
<li><a href="#cape-category" class="category-switch" data-toggle="tab">{{ trans('general.cape') }}</a></li>
|
2016-11-13 12:20:30 +08:00
|
|
|
|
2017-04-23 23:58:22 +08:00
|
|
|
<li class="pull-right" style="padding: 7px;">
|
2016-11-13 12:20:30 +08:00
|
|
|
<div class="has-feedback pull-right">
|
2017-04-23 23:58:22 +08:00
|
|
|
<div class="user-search-form">
|
|
|
|
<input type="text" name="q" class="form-control input-sm" placeholder="{{ trans('user.closet.type-to-search') }}">
|
2016-10-16 20:04:21 +08:00
|
|
|
<span class="glyphicon glyphicon-search form-control-feedback"></span>
|
2017-04-23 23:58:22 +08:00
|
|
|
</div>
|
2016-10-16 20:04:21 +08:00
|
|
|
</div>
|
2017-04-23 23:58:22 +08:00
|
|
|
</li>
|
2016-11-13 12:20:30 +08:00
|
|
|
</ul>
|
|
|
|
<div class="tab-content no-padding">
|
2017-04-23 23:58:22 +08:00
|
|
|
<div class="tab-pane active box-body" id="skin-category"></div>
|
|
|
|
<div class="tab-pane box-body" id="cape-category"></div>
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
2017-04-23 23:58:22 +08:00
|
|
|
<div class="pull-right" id="closet-paginator" last-skin-page="1" last-cape-page="1"></div>
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
2016-11-13 12:20:30 +08:00
|
|
|
</div><!-- /.nav-tabs-custom -->
|
|
|
|
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
|
2017-04-23 23:58:22 +08:00
|
|
|
<!-- Right col -->
|
2016-07-21 22:01:57 +08:00
|
|
|
<div class="col-md-4">
|
|
|
|
|
|
|
|
<div class="box box-default">
|
2017-07-03 20:54:19 +08:00
|
|
|
@include('common.texture-preview')
|
2016-09-30 20:46:15 +08:00
|
|
|
|
2016-07-21 22:01:57 +08:00
|
|
|
<div class="box-footer">
|
2016-09-15 23:03:58 +08:00
|
|
|
<button class="btn btn-primary" data-toggle="modal" data-target="#modal-use-as">{{ trans('user.closet.use-as.button') }}</button>
|
2016-07-21 22:01:57 +08:00
|
|
|
</div><!-- /.box-footer -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section><!-- /.content -->
|
|
|
|
</div><!-- /.content-wrapper -->
|
|
|
|
|
|
|
|
<div id="modal-use-as" class="modal fade" tabindex="-1" role="dialog">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
2016-09-15 23:03:58 +08:00
|
|
|
<h4 class="modal-title">{{ trans('user.closet.use-as.title') }}</h4>
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2016-10-23 11:41:52 +08:00
|
|
|
@forelse($user->players as $player)
|
2016-07-21 22:01:57 +08:00
|
|
|
<label class="model-label" for="{{ $player->pid }}">
|
|
|
|
<input type="radio" id="{{ $player->pid }}" name="player" /> {{ $player->player_name }}
|
|
|
|
</label><br />
|
|
|
|
@empty
|
2016-09-15 23:03:58 +08:00
|
|
|
<p>{{ trans('user.closet.use-as.empty') }}</p>
|
2016-07-21 22:01:57 +08:00
|
|
|
@endforelse
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-09-15 23:03:58 +08:00
|
|
|
<a href="./player" class="btn btn-default pull-left">{{ trans('user.closet.use-as.add') }}</a>
|
2017-11-24 22:27:33 +08:00
|
|
|
<a onclick="setTexture();" class="btn btn-primary">{{ trans('general.submit') }}</a>
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('script')
|
|
|
|
<script>
|
2018-02-23 21:56:03 +08:00
|
|
|
$(document).ready(function () {
|
|
|
|
$.msp.config.skinUrl = defaultSkin;
|
|
|
|
initSkinViewer();
|
|
|
|
registerAnimationController();
|
|
|
|
registerWindowResizeHandler();
|
|
|
|
});
|
2016-07-21 22:01:57 +08:00
|
|
|
</script>
|
|
|
|
@endsection
|