@extends('layouts.admin.master') @section('title', 'Barcode') @section('vendor-style') @endsection @section('vendor-script') @endsection @section('content') @if(count($errors) > 0)
@endif @if($message = Session::get('error'))
@endif @if($message = Session::get('success'))
@endif
@php $title = ucwords(strtolower($companyTitle)); @endphp @foreach($purchase->purchaseDetails as $purchaseList) @php $quantity = $purchaseList->quantity; if($quantity == 1) { $quantityLimit = 1; } else { $divideValue = $quantity / 2; $modeValue = $quantity % 2; $quantityLimit = $divideValue + $modeValue; } @endphp @for ($i = 1; $i <= $quantity; $i++)
{{ \Illuminate\Support\Str::limit($title, 25, $end='...') }}
{{ \Illuminate\Support\Str::limit($purchaseList->product->name, 25, $end='...') }}
{!! DNS1D::getBarcodeHTML($purchaseList->product->barcode, 'C128', 1.5, 25, 'black', false); !!}
{{ $purchaseList->product->barcode }}
MRP: {{ $purchaseList->mrp }}
SALE: {{ $purchaseList->sale_rate }}
@endfor @endforeach
@endsection