@extends('layouts.app') @section('title', __('superadmin::lang.superadmin') . ' | ' . __('superadmin::lang.invoice_assignment')) @section('content') @include('superadmin::layouts.nav')

@lang('superadmin::lang.invoice_assignment') @lang('superadmin::lang.invoice_assignment_help')

@component('components.widget', ['class' => 'box-primary', 'title' => __('superadmin::lang.master_invoice_schemes')]) @slot('tool')
@endslot

@lang('superadmin::lang.master_invoice_schemes_help')

@foreach($master_schemes as $scheme) @php $preview_prefix = $scheme->scheme_type == 'blank' ? $scheme->prefix : $scheme->prefix . date('Y') . config('constants.invoice_scheme_separator'); $next_no = $preview_prefix . str_pad($scheme->start_number + $scheme->invoice_count, $scheme->total_digits, '0', STR_PAD_LEFT); @endphp @endforeach
@lang('invoice.name') @lang('superadmin::lang.next_invoice_no') @lang('superadmin::lang.gst_number') / @lang('superadmin::lang.state') @lang('superadmin::lang.attached_stores') @lang('messages.action')
{{ $scheme->name }} @if($scheme->is_default)@lang('barcode.default')@endif {{ $next_no }} ({{ $scheme->invoice_count }} @lang('superadmin::lang.issued')) {!! Form::open(['url' => action([\Modules\Superadmin\Http\Controllers\InvoiceAssignmentController::class, 'saveSchemeGst']), 'method' => 'post', 'class' => 'form-inline']) !!} {!! Form::hidden('scheme_id', $scheme->id) !!} {!! Form::text('gst_number', $scheme->gst_number, ['class' => 'form-control input-sm', 'placeholder' => __('superadmin::lang.gst_number'), 'style' => 'width:150px']) !!} {!! Form::text('state_name', $scheme->state_name, ['class' => 'form-control input-sm', 'placeholder' => __('superadmin::lang.state'), 'style' => 'width:110px']) !!} {!! Form::close() !!} {{ $scheme->mirrors_count }}

@lang('superadmin::lang.create_scheme_hint')

@endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => __('superadmin::lang.stores_and_assignment')]) @slot('tool')
@endslot
@foreach($businesses as $business) @php $loc = $business->locations->first(); $cur_scheme = $loc && $loc->invoice_scheme_id && isset($schemes_by_id[$loc->invoice_scheme_id]) ? $schemes_by_id[$loc->invoice_scheme_id] : null; $cur_layout = $loc && $loc->invoice_layout_id && isset($layouts_by_id[$loc->invoice_layout_id]) ? $layouts_by_id[$loc->invoice_layout_id] : null; @endphp @endforeach
ID @lang('superadmin::lang.business_name') @lang('superadmin::lang.gst_number') @lang('superadmin::lang.assigned_scheme') @lang('superadmin::lang.assigned_layout')
{{ $business->id }} {{ $business->name }} @if(!$business->is_active)@lang('superadmin::lang.inactive')@endif {!! Form::open(['url' => action([\Modules\Superadmin\Http\Controllers\InvoiceAssignmentController::class, 'saveBusinessGst']), 'method' => 'post', 'class' => 'form-inline']) !!} {!! Form::hidden('business_id', $business->id) !!} {!! Form::text('tax_number_1', $business->tax_number_1, ['class' => 'form-control input-sm', 'placeholder' => __('superadmin::lang.gst_number'), 'style' => 'width:170px']) !!} {!! Form::close() !!} @if($cur_scheme) {{ $cur_scheme->name }} @if(!empty($cur_scheme->master_invoice_scheme_id)) @lang('superadmin::lang.shared_series') @else @lang('superadmin::lang.local_only') @endif @else - @endif @if($cur_layout) {{ $cur_layout->name }} @if(!empty($cur_layout->master_invoice_layout_id)) @lang('superadmin::lang.shared_series') @endif @else - @endif
@endcomponent
{{-- Assign modal --}} {{-- Reset series modal --}} @endsection @section('javascript') @endsection