??????????????
@extends('layouts.manager')
@section('styles')
    @parent
    <link href="{{ asset('css/manager.css')}}" rel="stylesheet">
@endsection
@section('scripts')
    @parent
    <script src="{{asset('public/js/manager_neworders.js')}}"></script>
@endsection
@section('content')
    <div class="container">
        <div class="row">
            <div class="col-md-12 bodycon">

                <div class="panel-body main_body">
                    <div class="main_page">
                        @include('manager.includes.links')
                        <div class="tab-content index">
                            <table width="100%" class="table archive_table">
                                <tr>
                                    <th>#</th>
                                    <th>
                                        Client
                                    </th>
                                    <th>
                                        Width
                                    </th>
                                    <th>
                                        Height
                                    </th>
                                    <th>
                                        Size
                                    </th>
                                    <th>
                                        Catalog
                                    </th>
                                    <th>
                                        Artist
                                    </th>
                                    <th>
                                        Picture
                                    </th>
                                    <th>Putdate</th>
                                    <th>Action</th>
                                </tr>
                                @foreach($ords as $one)
                                    <tr class="colo {{$one->type}}" id="data_id_{{$one->id}}">
                                        <td>{{$one->id}}</td>
                                        <td>
                                            <b>{{(isset($one->user->name))?$one->user->name:'-'}}</b>
                                        </td>
                                        <td>{{($one->width)}}</td>
                                        <td>{{($one->height)}}</td>
                                        <td>{{($one->size)}}</td>
                                        <td>{{(isset($one->catalogs->name))?$one->catalogs->name:''}}</td>
                                        <td>{{(isset($one->artists->name))?$one->artists->name:''}}</td>
                                        <td>
                                            @if(isset($one->picture_data))
                                                <a href="{{asset('picture/'.$one->picture_data)}}" target="_blank">Picture</a>
                                            @endif
                                        </td>
                                        <td>{{($one->putdate)}}</td>
                                        <td>
                                            <a href="#" data_id="{{$one->id}}" class="btn btn-block btn-primary open_id">Open</a>
                                        </td>
                                    </tr>
                                @endforeach
                            </table>
                            <p align="center">
                                @include('manager.includes.orders_type')
                            </p>
                            <p align="center">{!! $ords->links() !!}</p>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="overflow"></div>
    <div class="modal fade" id="myModal">
        <br style="clear:both"/>
        <div class="modal-content col-md-8 col-md-offset-2">
            ...
        </div>
    </