@extends('layouts.app_settings') @section('title', __('business.business_locations')) @section('offcanvas-title',__('new.location_store_document')) @section('offcanvas-end') @stop @section('content')
{!! Form::open(['url' => action([\App\Http\Controllers\BusinessLocationController::class, 'store']), 'method' => 'post', 'id' => 'business_location_add_form' ]) !!}
{!! Form::text('name', null, ['class' => 'form-control', 'required', 'placeholder' => __( 'invoice.name' ) ]); !!} {!! Form::label('name', __( 'business.location' ) . ':*') !!}
{!! Form::text('location_id', null, ['class' => 'form-control', 'placeholder' => __( 'lang_v1.location_id' ) ]); !!} {!! Form::label('location_id', __( 'lang_v1.location_id' ) . ':') !!}
{!! Form::label('is_pos', __( 'new.location_type' ) . ':') !!}
{!! Form::text('country', null, ['class' => 'form-control', 'placeholder' => __( 'business.country' ) ]); !!} {!! Form::label('country', __( 'business.country' ) . ': *') !!}
{!! Form::text('state', null, ['class' => 'form-control', 'placeholder' => __( 'hr.state' ) ]); !!} {!! Form::label('state', __( 'hr.state' ) . ': *') !!}
{!! Form::text('city', null, ['class' => 'form-control', 'placeholder' => __( 'business.city' ) ]); !!} {!! Form::label('city', __( 'business.city' ) . ': *') !!}
{!! Form::text('landmark', null, ['class' => 'form-control', 'placeholder' => __( 'business.landmark' ) ]); !!} {!! Form::label('landmark', __( 'business.landmark' ) . ': *') !!}
{!! Form::text('zip_code', null, ['class' => 'form-control', 'placeholder' => __( 'business.zip_code') ]); !!} {!! Form::label('zip_code', __( 'business.zip_code' ) ) !!}
{!! Form::text('mobile', null, ['class' => 'form-control', 'placeholder' => __( 'business.mobile')]); !!} {!! Form::label('mobile', __( 'business.mobile' ) . ':') !!}
{!! Form::text('alternate_number', null, ['class' => 'form-control', 'placeholder' => __( 'business.alternate_number')]); !!} {!! Form::label('alternate_number', __( 'business.alternate_number' ) . ':') !!}
{!! Form::email('email', null, ['class' => 'form-control', 'placeholder' => __( 'business.email')]); !!} {!! Form::label('email', __( 'business.email' ) . ':') !!}
{!! Form::text('website', null, ['class' => 'form-control', 'placeholder' => __( 'lang_v1.website')]); !!} {!! Form::label('website', __( 'lang_v1.website' ) . ':') !!}
{!! Form::select('invoice_scheme_id', $invoice_schemes, null, ['class' => 'form-control select2', 'required', ]); !!} {!! Form::label('invoice_scheme_id', __('invoice.invoice_scheme_for_pos') . ':*') !!} @show_tooltip(__('tooltip.invoice_scheme'))
{!! Form::select('sale_invoice_scheme_id', $invoice_schemes, null, ['class' => 'form-control select2', 'required', ]); !!} {!! Form::label('sale_invoice_scheme_id', __('invoice.invoice_scheme_for_sale') . ':*') !!}
{!! Form::select('invoice_layout_id', $invoice_layouts, null, ['class' => 'form-control select2', 'required', ]); !!} {!! Form::label('invoice_layout_id', __('lang_v1.invoice_layout_for_pos') . ':*') !!} @show_tooltip(__('tooltip.invoice_layout'))
{!! Form::select('sale_invoice_layout_id', $invoice_layouts, null, ['class' => 'form-control select2', 'required', ]); !!} {!! Form::label('sale_invoice_layout_id', __('lang_v1.invoice_layout_for_sale') . ':*') !!} @show_tooltip(__('lang_v1.invoice_layout_for_sale_tooltip'))
{!! Form::select('selling_price_group_id', $price_groups, null, ['class' => 'form-control select2', ]); !!} {!! Form::label('selling_price_group_id', __('lang_v1.default_selling_price_group') . ':') !!} @show_tooltip(__('lang_v1.location_price_group_help'))
@php $custom_labels = json_decode(session('business.custom_labels'), true); $location_custom_field1 = !empty($custom_labels['location']['custom_field_1']) ? $custom_labels['location']['custom_field_1'] : __('lang_v1.location_custom_field1'); $location_custom_field2 = !empty($custom_labels['location']['custom_field_2']) ? $custom_labels['location']['custom_field_2'] : __('lang_v1.location_custom_field2'); $location_custom_field3 = !empty($custom_labels['location']['custom_field_3']) ? $custom_labels['location']['custom_field_3'] : __('lang_v1.location_custom_field3'); $location_custom_field4 = !empty($custom_labels['location']['custom_field_4']) ? $custom_labels['location']['custom_field_4'] : __('lang_v1.location_custom_field4'); @endphp
{!! Form::text('custom_field1', null, ['class' => 'form-control', 'placeholder' => $location_custom_field1]); !!} {!! Form::label('custom_field1', $location_custom_field1 . ':') !!}
{!! Form::text('custom_field2', null, ['class' => 'form-control', 'placeholder' => $location_custom_field2]); !!} {!! Form::label('custom_field2', $location_custom_field2 . ':') !!}
{!! Form::text('custom_field3', null, ['class' => 'form-control', 'placeholder' => $location_custom_field3]); !!} {!! Form::label('custom_field3', $location_custom_field3 . ':') !!}
{!! Form::text('custom_field4', null, ['class' => 'form-control', 'placeholder' => $location_custom_field4]); !!} {!! Form::label('custom_field4', $location_custom_field4 . ':') !!}

{!! Form::select('featured_products[]', [], null, ['class' => 'form-control select2', 'id' => 'featured_products', 'multiple']); !!} {!! Form::label('featured_products', __('lang_v1.pos_screen_featured_products') . ':') !!} @show_tooltip(__('lang_v1.featured_products_help'))

@foreach($payment_types as $key => $value) @endforeach
@lang('lang_v1.payment_option_help') @lang('lang_v1.default_accounts') @show_tooltip(__('lang_v1.default_account_help'))
{!! Form::select('default_payment_accounts[' . $key . '][account]', $accounts, null, ['class' => 'form-control select2']); !!}
{!! Form::close() !!}
@endsection @section('javascript') @stop