@extends('layouts.layout-2')

@section('content')

    @if ($errors->any())
        <div class="row">
            <div class="col-sm-12">
                <div class="alert alert-danger">
                    <ul>
                        @foreach ($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach
                    </ul>
                </div>
            </div>
        </div>
    @endif


    <h4 class="font-weight-bold mb-4">
       Kunden
    </h4>

    {!! Form::open(['action' => url()->current(), 'class' => '']) !!}
    <div class="card mb-4">

        <div class="card-body">
            <!-- Controls -->

            <div class="form-group mb-1">
                <label class="form-label" for="description">Description</label>
                {{ Form::textarea('text', $text,  array('class'=>'form-control', 'rows'=>1)) }}
            </div>
           
            <button type="submit" name="action" value="store" class="btn btn-primary"><i class="ion"></i> store</button>


        </div>

        @if(count($values)>0)
            <div class="card-body">

                <div class="card-datatable table-responsive">
                    <table class="table table-striped table-bordered">
                        <thead>
                        <tr>
                            <th style="max-width: 60px;">ID</th>
                            <th>{{__('shopping_user_id')}}</th>
                            <th>{{__('total_shipping')}}</th>
                            <th>{{__('payment_credit')}}</th>
                            <th>{{__('txaction')}}</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($values as $shopping_order)
                           <tr>
                               <td>{{$shopping_order->id}}</td>
                               <td>{{$shopping_order->auth_user_id}}</td>

                               <td>{{$shopping_order->total_shipping}}</td>
                               <td>{{$shopping_order->payment_credit}}</td>
                               <td>{{$shopping_order->txaction}}</td>
                           </tr>
                        @endforeach
                        </tbody>
                    </table>
                <!-- Controls -->
                </div>
            </div>
        @endif

    </div>
    {!! Form::close() !!}

@endsection

