@extends('layouts.app') @section('title', __( 'repair::lang.repair_label' )) @section('content')
@php $loop_count = 0; @endphp @foreach($product_details as $details) @while($details['qty'] > 0) @php $loop_count += 1; $is_new_row = ($barcode_details->is_continuous) && (($loop_count == 1) || ($loop_count % $barcode_details->stickers_in_one_row) == 1) ? true : false; $is_new_row = true; @endphp @if(($barcode_details->is_continuous) || (!$barcode_details->is_continuous && ($loop_count % $barcode_details->stickers_in_one_sheet) == 1)) {{-- Actual Paper --}}
{{-- Paper Internal --}}
@endif @if((!$barcode_details->is_continuous) && ($loop_count % $barcode_details->stickers_in_one_sheet) <= $barcode_details->stickers_in_one_row) @php $first_row = true @endphp @elseif($barcode_details->is_continuous && ($loop_count <= $barcode_details->stickers_in_one_row) ) @php $first_row = true @endphp @else @php $first_row = false @endphp @endif
{{-- Business Name --}} @if(!empty($business_name)) {{$business_name}} @endif @if(!empty($details['details']->contact->name)) @lang('contact.customer'): {{$details['details']->contact->name}}
@endif @if(!empty($details['details']->repair_model)) @lang('repair::lang.model'): {{$details['details']->repair_model}}
@endif {{-- Barcode --}}
@if($barcode_details->is_continuous || ($loop_count % $barcode_details->stickers_in_one_sheet) == 0) {{-- Actual Paper --}}
{{-- Paper Internal --}}
@endif @php $details['qty'] = $details['qty'] - 1; @endphp @endwhile

{{__("repair::lang.print_invoice")}} {{__("repair::lang.print_barcode")}} @endforeach
@endsection @section('javascript') @endsection