migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,151 @@
|
||||
@extends('layouts.business.master')
|
||||
|
||||
@section('main_content')
|
||||
<div class="min-vh-100">
|
||||
<div class="erp-table-section order-form-section">
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-bodys">
|
||||
<div class="table-header barcode-header p-16">
|
||||
<h4>{{ __('Barcode Generate') }}</h4>
|
||||
</div>
|
||||
<form action="{{ route('business.barcodes.store') }}" class="barcodeForm p-3">
|
||||
@csrf
|
||||
<label>{{ __('Select Product') }}</label>
|
||||
<div class="search-container">
|
||||
<input type="text" id="product-search" placeholder="Search..." class="form-control" />
|
||||
<ul id="search-results" class="barcode-dropdown search-hidden"></ul>
|
||||
</div>
|
||||
<div class="table-responsive mt-3 barcode-table">
|
||||
<table class="table table-bordered text-center">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="border barcode-table-th">{{ __('Items') }}</th>
|
||||
<th class="border barcode-table-th">{{ __('Code') }}</th>
|
||||
<th class="border barcode-table-th">{{ __('Batch') }}</th>
|
||||
<th class="border barcode-table-th">{{ __('Available Stock') }}</th>
|
||||
<th class="border barcode-table-th">{{ __('Qty / No of label') }}</th>
|
||||
<th class="border barcode-table-th">{{ __('Packing Date') }}</th>
|
||||
<th class="border barcode-table-th">{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="product-list">
|
||||
{{-- Dynamicaly load --}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{-- --------------- table end --------------- --}}
|
||||
<div class="table-header p-16 mt-4 mb-3">
|
||||
<h4>{{ __('Information to show in labels') }}</h4>
|
||||
</div>
|
||||
<div class="row g-3 barcode-info-row">
|
||||
<div class="col-lg-3">
|
||||
<div class="d-flex align-items-center gap-2 mb-2">
|
||||
<input type="checkbox" name="business_name" class="select-all-delete multi-delete" checked>
|
||||
<p>{{ __('Business Name') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-center barcode-info">
|
||||
<h5>{{ __('Size') }}</h5>
|
||||
<input type="number" name="business_name_size" class="form-control" value="15" placeholder="{{__('15')}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="d-flex align-items-center gap-2 mb-2">
|
||||
<input type="checkbox" name="product_name" class="select-all-delete multi-delete" checked>
|
||||
<p>{{ __('Product Name') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-center barcode-info">
|
||||
<h5>{{ __('Size') }}</h5>
|
||||
<input type="number" name="product_name_size" class="form-control" value="15" placeholder="{{__('15')}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="d-flex align-items-center gap-2 mb-2">
|
||||
<input type="checkbox" name="product_price" class="select-all-delete multi-delete" checked>
|
||||
<p>{{ __('Product Price') }}</p>
|
||||
</div>
|
||||
<div class="d-flex align-items-center barcode-info">
|
||||
<h5>{{ __('Size') }}</h5>
|
||||
<input type="number" name="product_price_size" class="form-control" value="14" placeholder="{{__('14')}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="d-flex align-items-center gap-2 mb-2">
|
||||
<input type="checkbox" name="product_code" class="select-all-delete multi-delete" checked>
|
||||
<p>{{ __('Product Code') }}</p>
|
||||
</div>
|
||||
<div class="d-flex align-items-center barcode-info">
|
||||
<h5>{{ __('Size') }}</h5>
|
||||
<input type="number" name="product_code_size" class="form-control" value="14" placeholder="{{__('14')}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="d-flex align-items-center gap-2 mb-2">
|
||||
<input type="checkbox" name="pack_date" class="select-all-delete multi-delete" checked>
|
||||
<p>{{ __('Print packing date') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-center barcode-info">
|
||||
<h5>{{ __('Size') }}</h5>
|
||||
<input type="number" name="pack_date_size" class="form-control" value="12" placeholder="{{__('12')}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="d-flex align-items-center gap-2 mb-2">
|
||||
<p>{{ __('Show Price') }}</p>
|
||||
</div>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="vat_type" class="form-control">
|
||||
<option value="inclusive"> {{ __('Inc. tax') }}</option>
|
||||
<option value="exclusive"> {{ __('Exc. tax') }}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="d-flex align-items-center gap-2 mb-2">
|
||||
<p>{{ __('Barcode Type *') }}</p>
|
||||
</div>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="barcode_type" class="form-control">
|
||||
@foreach ($barcode_types as $type)
|
||||
<option value="{{ $type['value'] }}" @selected($type['value'] == 'C128')>
|
||||
{{ __($type['value']) }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="d-flex align-items-center gap-2 mb-2">
|
||||
<p>{{ __('Barcode Print Paper Setting') }}</p>
|
||||
</div>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="barcode_setting" class="form-control">
|
||||
<option value="2">{{__('Labels Roll-Label Size 2"x1", 50mmx25mm, Gap:3.1mm')}}</option>
|
||||
<option value="1">{{__('Labels Roll-Label Size 1.5"x1", 38mmx25mm, Gap:3.1mm')}}</option>
|
||||
<option value="3">{{__('28 Labels Per Sheet, Sheet Size: 8.27" X 11.69", Label size: 2" X 1.25"')}}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 d-flex justify-content-center mt-4">
|
||||
@usercan('barcodes.create')
|
||||
<button class="theme-btn m-2 submit-btn barcode-preview-btn" id="barcode-preview-btn">{{ __('Preview') }}</button>
|
||||
@endusercan
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="fetch-products-route" value="{{ route('business.barcodes.products') }}">
|
||||
<input type="hidden" id="asset_base_url" value="{{ url('/') }}">
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,56 @@
|
||||
@extends('layouts.business.blank')
|
||||
|
||||
@section('title')
|
||||
{{ __('Invoice') }}
|
||||
@endsection
|
||||
@push('css')
|
||||
@if ($printer == 1)
|
||||
<link rel="stylesheet" href="{{ asset('assets/css/label-38mm-25mm.css') }}">
|
||||
@elseif ($printer == 2)
|
||||
<link rel="stylesheet" href="{{ asset('assets/css/label-50mm-25mm.css') }}">
|
||||
@else
|
||||
<link rel="stylesheet" href="{{ asset('assets/css/label-a4.css') }}">
|
||||
@endif
|
||||
@endpush
|
||||
@section('main_content')
|
||||
<div id="barcodePrintArea">
|
||||
<div class="barcode-print-container">
|
||||
@foreach ($generatedBarcodes ?? [] as $barcode)
|
||||
<div class="print-label pt-1">
|
||||
@if ($barcode['show_business_name'])
|
||||
<p style="font-size: {{ $barcode['business_name_size'] }}px;" class="product-name">
|
||||
{{ $barcode['business_name'] }}
|
||||
</p>
|
||||
@endif
|
||||
@if ($barcode['show_product_name'])
|
||||
<p style="font-size: {{ $barcode['product_name_size'] }}px;" class="product-name">
|
||||
{{ $barcode['product_name'] }}
|
||||
</p>
|
||||
@endif
|
||||
@if ($barcode['show_product_price'])
|
||||
<p style="font-size: {{ $barcode['product_price_size'] }}px;" class="product-price">
|
||||
{{__('Price')}}: <span>{{ currency_format($barcode['product_price'], currency:business_currency()) }}</span>
|
||||
</p>
|
||||
@endif
|
||||
@if ($barcode['show_pack_date'] && ($barcode['packing_date'] ?? false))
|
||||
<span style="font-size: {{ $barcode['pack_date_size'] }}px;">
|
||||
{{__('Packing Date')}}: {{ $barcode['packing_date'] }}
|
||||
</span>
|
||||
@endif
|
||||
<img class="barcode" src="data:image/png;base64,{{ base64_encode($barcode['barcode_svg']) }}" alt="Barcode Image">
|
||||
@if ($barcode['show_product_code'])
|
||||
<span style="font-size: {{ $barcode['product_code_size'] }}px;" class="pt-1">
|
||||
{{ $barcode['product_code'] }}
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
<script>
|
||||
window.onload = function () {
|
||||
window.print();
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user