File manager - Edit - /var/www/payraty/inventory_main/resources/views/admin/customers/create.blade.php
Back
@extends('admin.layouts.master') @section('content') <div class="page-title-box"> <div class="row align-items-center"> <div class="col-sm-6"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#" class="ic-javascriptVoid">{{ __('custom.customer') }}</a></li> <li class="breadcrumb-item active">{{ __('custom.add_customer') }}</li> </ol> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <h4 class="header-title">{{ __('custom.add_customer') }}</h4> <form class="form-validate" action="{{ route('admin.customers.store') }}" method="POST" enctype="multipart/form-data"> @csrf <div class="row"> <div class="form-group col-sm-6"> <label for="">{{__('custom.first_name')}} <span class="error">*</span></label> <input type="text" name="first_name" class="form-control" value="{{ old('first_name') }}" required> @error('first_name') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6"> <label for="">{{__('custom.last_name')}} <span class="error">*</span></label> <input type="text" name="last_name" class="form-control" value="{{ old('last_name') }}" required> @error('last_name') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6"> <label for="">{{__('custom.email')}} <span class="error">*</span></label> <input type="email" name="email" class="form-control" value="{{ old('email') }}" required> @error('email') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6"> <label for="">{{__('custom.phone')}} <span class="error">*</span></label> <input type="text" name="phone" class="form-control phone" value="{{ old('phone') ?? '+1' }}" required> @error('phone') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6"> <label>{{ __('custom.password') }} <span class="error">*</span></label> <input type="password" name="password" class="form-control" required placeholder="Enter password"> @error('password') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6"> <label>{{ __('custom.confirm_password') }} <span class="error">*</span></label> <input type="password" name="password_confirmation" class="form-control" required placeholder="Type password again"> @error('password_confirmation') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6"> <label for="">{{__('custom.company')}} </label> <input type="text" name="company" class="form-control" value="{{ old('company') }}"> @error('company') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6"> <label for="">{{__('custom.designation')}}</label> <input type="text" name="designation" class="form-control" value="{{ old('designation') }}"> @error('designation') <p class="error">{{ $message }}</p> @enderror </div> <div class="col-sm-12"> <label for="" class="text-muted">{{ __('custom.address') }}</label> <div class="row"> <div class="form-group col-sm-6"> <label for="">{{__('custom.address_line_1')}}</label> <input type="text" name="address_line_1" class="form-control" value="{{ old('address_line_1') }}"> @error('address_line_1') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6"> <label for="">{{__('custom.address_line_2')}}</label> <input type="text" name="address_line_2" class="form-control" value="{{ old('address_line_2') }}"> @error('address_line_2') <p class="error">{{ $message }}</p> @enderror </div> <div class="col-lg-6"> <div class="form-group ic-select-gray-bg"> <label for="#">{{ __('custom.country') }} </label> <input type="text" name="country" class="form-control" value="{{ old('country') }}"> @error('country') <p class="error">{{ $message }}</p> @enderror </div> </div> <div class="col-lg-6"> <div class="form-group ic-select-gray-bg"> <label for="#">{{ __('custom.state') }} </label> <input type="text" name="state" class="form-control" value="{{ old('state') }}"> @error('state') <p class="error">{{ $message }}</p> @enderror </div> </div> <div class="col-lg-6"> <div class="form-group ic-select-gray-bg"> <label for="#">{{ __('custom.city') }}</label> <input type="text" name="city" class="form-control" value="{{ old('city') }}"> @error('city') <p class="error">{{ $message }}</p> @enderror </div> </div> <div class="form-group col-sm-6"> <label for="">{{__('custom.zipcode')}}</label> <input type="number" name="zipcode" class="form-control" value="{{ old('zipcode') }}" maxlength="12"> @error('zipcode') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-12"> <label for="short_address">{{ __t('short_address') }} <small>({{ __t('short_address_note') }})</small></label> <textarea name="short_address" class="form-control" id="short_address" placeholder="{{ __t('short_address') }}">{{ old('short_address') }}</textarea> @error('short_address') <p class="error">{{ $message }}</p> @enderror </div> </div> </div> <div class="col-sm-12"> <label for="" class="text-muted">{{ __('custom.billing_address') }}</label> <div class="row"> <div class="form-group col-sm-12"> <div class="form-check"> <input class="form-check-input" type="checkbox" value="1" id="billingSameAsAddress" name="billing_same"> <label class="form-check-label checkbox-label" for="billingSameAsAddress"> {{ __('custom.billing_address_same') }} </label> </div> @error('is_variant') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6 b_hide_same"> <label for="">{{__('custom.first_name')}}</label> <input type="text" name="b_first_name" class="form-control" value="{{ old('b_first_name') }}"> @error('b_first_name') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6 b_hide_same"> <label for="">{{__('custom.last_name')}}</label> <input type="text" name="b_last_name" class="form-control" value="{{ old('b_last_name') }}"> @error('b_last_name') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6 b_hide_same"> <label for="">{{__('custom.email')}}</label> <input type="email" name="b_email" class="form-control" value="{{ old('b_email') }}"> @error('b_email') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6 b_hide_same"> <label for="">{{__('custom.phone')}}</label> <input type="text" name="b_phone" class="form-control phone" value="{{ old('b_phone') ?? '+1' }}"> @error('b_phone') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6 b_hide_same"> <label for="">{{__('custom.address_line_1')}}</label> <input type="text" name="b_address_line_1" class="form-control" value="{{ old('b_address_line_1') }}"> @error('b_address_line_1') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6 b_hide_same"> <label for="">{{__('custom.address_line_2')}}</label> <input type="text" name="b_address_line_2" class="form-control" value="{{ old('b_address_line_2') }}"> @error('b_address_line_2') <p class="error">{{ $message }}</p> @enderror </div> <div class="col-lg-6 b_hide_same"> <div class="form-group ic-select-gray-bg"> <label for="#">{{ __('custom.country') }}</label> <input type="text" name="b_country" class="form-control" value="{{ old('b_country') }}"> @error('b_country') <p class="error">{{ $message }}</p> @enderror </div> </div> <div class="col-lg-6 b_hide_same"> <div class="form-group ic-select-gray-bg"> <label for="#">{{ __('custom.state') }}</label> <input type="text" name="b_state" class="form-control" value="{{ old('b_state') }}"> @error('b_state') <p class="error">{{ $message }}</p> @enderror </div> </div> <div class="col-lg-6 b_hide_same"> <div class="form-group ic-select-gray-bg"> <label for="#"> {{ __('custom.city') }}</label> <input type="text" name="b_city" class="form-control" value="{{ old('b_city') }}"> @error('b_city') <p class="error">{{ $message }}</p> @enderror </div> </div> <div class="form-group col-sm-6 b_hide_same"> <label for="">{{__('custom.zipcode')}}</label> <input type="number" name="b_zipcode" class="form-control" maxlength="12" value="{{ old('b_zipcode') }}"> @error('zipcode') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-12 b_hide_same"> <label for="b_short_address">{{ __t('short_address') }} <small>({{ __t('short_address_note') }})</small></label> <textarea name="b_short_address" class="form-control" id="b_short_address" placeholder="{{ __t('short_address') }}">{{ old('b_short_address') }}</textarea> @error('b_short_address') <p class="error">{{ $message }}</p> @enderror </div> </div> </div> <div class="form-group col-md-12 col-lg-12 col-xl-6"> <label for="">{{__('custom.avatar')}}</label> <small class="font-12">{{ __('custom.image_support_message') }}</small> <div class="form-group"> <input type="file" id="uploadFile" class="f-input form-control" name="avatar" value="{{ old('avatar') }}"> </div> @error('avatar') <p class="error">{{ $message }}</p> @enderror </div> <div class="form-group col-sm-6"> <label class="d-block mb-3">{{ __('custom.status') }} <span class="error">*</span></label> <div class="custom-control custom-radio custom-control-inline"> <input type="radio" id="status_yes" value="{{ \App\Models\Customer::STATUS_ACTIVE }}" name="status" class="custom-control-input" checked=""> <label class="custom-control-label" for="status_yes">{{__('custom.active')}}</label> </div> <div class="custom-control custom-radio custom-control-inline"> <input type="radio" id="status_no" value="{{ \App\Models\Customer::STATUS_INACTIVE }}" name="status" class="custom-control-input"> <label class="custom-control-label" for="status_no">{{__('custom.inactive')}}</label> </div> @error('status') <p class="error">{{ $message }}</p> @enderror </div> </div> <div class="form-group"> <div> <button class="btn btn-primary waves-effect waves-lightml-2" type="submit"> <i class="fa fa-save"></i> <span>{{ __('custom.submit') }}</span> </button> <a class="btn btn-danger waves-effect" href="{{ route('admin.customers.index') }}"> <i class="fa fa-times"></i> <span>{{ __('custom.cancel') }}</span> </a> </div> </div> </form> </div> </div> </div> </div> @endsection @push('style') @endpush @push('script') <script> $(document).ready(function(){ $('#billingSameAsAddress').on('change', function() { if ($(this).is(':checked')) { $('.b_hide_same').hide(); console.log('click') } else { $('.b_hide_same').show(); } }); }) </script> @include('includes.scripts.country_state_city_auto_load') @include('includes.scripts.country_state_city_auto_load_2') @endpush
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings