Files
streamline-emr/docker/streamline-src/resources/views/data_extraction/import_csv.blade.php
T
alec.turner a424394109 Build modified streamline images
The official image from streamline does not currently work for the arm64
platform. As a temporary measure, the source code and docker build scripts
have been lifted from the official images and are used to build locally.

Some additional modifications are made to reduce overall image size, these
are documented in docker/README.md
2024-03-10 16:17:50 -07:00

95 lines
4.2 KiB
PHP
Executable File

@extends('layouts.main')
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">Import Data</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('departments.dashboard') }}</a></li>
<li class="active">Import Data</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-body">
@include('flash::message')
<div class="row">
<div class="col-md-12">
<h3 class="text-center">
Import {{ $tag_name }} Data
</h3>
<h3 style="color: red"><u>Important note, the document columns must be arranged in the order below. Do not add column headers.</u></h3>
<ol>
<li>Item Code</li>
<li>Item Name</li>
@if(in_array($tag_id, [3, 5]))<li>Cost Price</li>@endif
<li>Cash Selling Price</li>
@if($tag_id == 3)<li>Unit ID</li>@endif
@if($tag_id == 3)<li>Form ID</li>@endif
@if($tag_id == 3)<li>Strength</li>@endif
</ol>
<br>
{{ Form::open(['route' => 'data_extraction.import_csv_upload', 'data-toggle' => 'validator', 'files' => true, 'enctype'=>'multipart/form-data']) }}
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="name">Upload CSV File</label>
{{ Form::file('file', ['class' => 'form-control compulsory', 'required', 'accept' => '.csv']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('account_id', 'Income Account') }}
{{ Form::select('account_id', $chart_of_accounts, null, ['class'=>'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
</div>
</div>
@if($tag_id == 5 || $tag_id == 3)
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('cog_account', __('drugs.cost_of_goods_account')) }}
{{ Form::select('cog_account', $cost_of_goods_accounts, null, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('inventory_account', __('drugs.inventory_asset_account')) }}
{{ Form::select('inventory_account', $inventory_asset_accounts, null, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
</div>
</div>
@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() }}
</div>
</div>
</div>
</div>
</div>
</div>
@endsection