@extends('layouts.main') @section('content')

Import Data

@include('flash::message')

Import {{ $tag_name }} Data

Important note, the document columns must be arranged in the order below. Do not add column headers.

  1. Item Code
  2. Item Name
  3. @if(in_array($tag_id, [3, 5]))
  4. Cost Price
  5. @endif
  6. Cash Selling Price
  7. @if($tag_id == 3)
  8. Unit ID
  9. @endif @if($tag_id == 3)
  10. Form ID
  11. @endif @if($tag_id == 3)
  12. Strength
  13. @endif

{{ Form::open(['route' => 'data_extraction.import_csv_upload', 'data-toggle' => 'validator', 'files' => true, 'enctype'=>'multipart/form-data']) }}
{{ Form::file('file', ['class' => 'form-control compulsory', 'required', 'accept' => '.csv']) }}
{{ Form::label('account_id', 'Income Account') }} {{ Form::select('account_id', $chart_of_accounts, null, ['class'=>'form-control compulsory', 'required']) }}
@if($tag_id == 5 || $tag_id == 3)
{{ Form::label('cog_account', __('drugs.cost_of_goods_account')) }} {{ Form::select('cog_account', $cost_of_goods_accounts, null, ['class' => 'form-control compulsory', 'required']) }}
{{ Form::label('inventory_account', __('drugs.inventory_asset_account')) }} {{ Form::select('inventory_account', $inventory_asset_accounts, null, ['class' => 'form-control compulsory', 'required']) }}
@endif {{ Form::hidden('tag_id', $tag_id) }} {{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success pull-right waves-effect waves-light m-r-10']) }} {{ Form::close() }}
@endsection