@extends('layouts.main')
@section('content')
@include('partials.breadcrumb', ['breadcrumbTitle' => 'Bulk Move'])
<div class="wrapper-content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-3">
                @include('toolbox.partials.side-nav')
            </div>
            <div class="col-lg-9">
                <div class="ibox">
                    <div class="ibox-content">
                        
                        <div class="form-container">
                            <div class="message-div"></div>
                            <form class="file-drag form-horizontal m-b-sm dropzone d-flex"
                            action="/asset-bulk-move/upload" method="post" id="dropzoneForm"
                            enctype="multipart/form-data">
                            {{csrf_field()}}
                            <div class="fallback">
                                <input name="file" type="file" />
                            </div>
                        </form>
                        
                        @include('partials.success')
                        @include('partials.error-message')
                        <a href="/template/bulk-move.csv" class="pull-right-sm">Download Template File</a>
                    </div>
                    <h5>Assets (<span id="asset_count"></span>) </h5>
                    <form method="post" action="{{route('asset-bulk-move.store')}}">
                        {{csrf_field()}}
                        <table id="tblview" class="footable table table-stripped table-hover" data-page-size="50"
                        data-filter=#filter>
                        <thead>
                            <tr>
                                <th>Serial #</th>
                                <th>Status</th>
                                <th>From Location</th>
                                <th>To Location</th>
                                <th>Ticket #</th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <ul class="pagination pull-right"></ul>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                    <p class="text-right">
                        <button type="submit" name="commit" class="btn btn-primary bulk-upload-save-button" disabled>Save</button>
                    </p>
                </form>
            </div>
        </div>
    </div>
</div>
</div>
</div>
@stop

@section('after_scripts')
<script src="/js/plugins/jquery-validation/jquery.validate.min.js"></script>
<script src="/js/validator-methods.js"></script>
<script src="/js/plugins/jquery-validation/additional-methods.min.js"></script>
@include('settings.partials.file-drag-drop-script')
@stop