@extends('layouts.app') @section('title', __('product.product_analyzer')) @section('content')

@lang('product.product_analyzer')

@if (session('notification') || !empty($notification))
@if(!empty($notification['msg'])) {{$notification['msg']}} @elseif(session('notification.msg')) {{ session('notification.msg') }} @endif
@endif
@component('components.widget', ['class' => 'box-primary']) {!! Form::open(['url' => action([\App\Http\Controllers\ProductController::class, 'store_product_analyzer']), 'method' => 'post', 'id' => 'form_import_products', 'enctype' => 'multipart/form-data' ]) !!}
{!! Form::label('name', __( 'product.file_to_analyze' ) . ':') !!} {!! Form::file('products_csv', ['accept'=> '.xls, .xlsx, .csv', 'required' => 'required']); !!}

{!! Form::close() !!}

@endcomponent
@component('components.widget', ['class' => 'box-primary', 'title' => '']) @if (session('status')) @if(session('status.products')) @foreach(session('status.products') as $value) @endforeach @endif @endif
@lang('product.isbn13') @lang('product.title') @lang('product.condition') @lang('product.binding') @lang('product.in_our_system') @lang('product.total_quantity') @lang('product.price') @lang('product.analyze_date')
{{$value['isbn']}} {{$value['title']}} {{$value['condition']}} {{$value['binding']}} {{$value['in_our_system']}} {{$value['total_quantity']}} {{$value['price']}} {{date('m/d/Y H:i', strtotime($value['created_at']))}}
@endcomponent
@endsection @section('javascript') @endsection