@extends('layouts.app') @php if($action == 'create'){ $form_action = route($parentRouteName.'.store'); $createItemName = __('lang.create') ." " .$moduleName; $breadcrumbCurrentName = __('lang.create'); $submit_button_text = __('lang.save'); } else if($action == 'edit'){ $form_action = route($parentRouteName.'.store',['id'=> $customer->id]); $createItemName = __('lang.edit') ." " . $moduleName; $breadcrumbCurrentName = __('lang.edit'); $submit_button_text = __('lang.update'); } $breadcrumbCurrentIcon = "add_box"; @endphp @section('title') {{ $moduleName }}->{{ $createItemName }} @stop @section('top-bar') @include('includes.top-bar') @stop @section('left-sidebar') @include('includes.left-sidebar') @stop @section('content')
@include('admin.partials.breadcrumbs')

{{ $createItemName }}

@csrf
@include('layouts.components.input_field', [ 'col' => 6, 'name' => 'name', 'label' => __('lang.customer_name'), 'value' => $customer->name, 'required' => 'required-field', ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'father_or_husband_name', 'label' => __('lang.father_or_husband_name'), 'value' => $customer->father_or_husband_name, 'required' => 'required-field', ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'nid', 'label' => __('lang.customer_id'), 'value' => $customer->nid, 'class' => 'nid_mask', 'required' => 'required-field', ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'email', 'label' => __('lang.email'), 'value' => $customer->email, ]) @include('layouts.components.date_field', [ 'col' => 6, 'name' => 'dob', 'label' => __('lang.date_of_birth'), 'value' => $customer->dob, 'id' => 'bs_datepicker_container', 'readonly' => 'true' ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'phone', 'label' => __('lang.personal_mobile_no'), 'value' => $customer->phone, 'class' => 'phone_mask' ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'residential_phone', 'label' => __('lang.residential_phone'), 'value' => $customer->residential_phone, 'class' => 'phone_mask' ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'office_phone', 'label' => __('lang.office_phone'), 'value' => $customer->office_phone, 'class' => 'phone_mask' ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'overseas_phone', 'label' => __('lang.overseas_phone'), 'value' => $customer->overseas_phone, 'class' => 'overseas_phone_mask' ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'mailing_address', 'label' => __('lang.mailing_address'), 'value' => $customer->mailing_address, ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'home_address', 'label' => __('lang.residential_address'), 'value' => $customer->home_address, ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'office_address', 'label' => __('lang.office_address'), 'value' => $customer->office_address, ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'passport', 'label' => __('lang.passport'), 'value' => $customer->passport, ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'occupation', 'label' => __('lang.occupation'), 'value' => $customer->occupation, ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'nationality', 'label' => __('lang.nationality'), 'value' => $customer->nationality, ]) @include('layouts.components.input_field', [ 'col' => 6, 'name' => 'overseas_location', 'label' => __('lang.overseas_location'), 'value' => $customer->overseas_location, ])
marital_status == '1') checked @endif> marital_status == '0') checked @endif>
gender == 'Male' ? 'checked' : '' }}> gender == 'Female' ? 'checked' : '' }}>
@php $source=""; if(!empty($customer->profile)) { $source = '/upload/customers/profile/' . $customer->profile; } if (!empty($source) && file_exists(public_path($source))) { $profile_src= asset($source); } else { $profile_src= asset("/asset/images/fall back.jpeg"); } @endphp {{-- CROPPER START --}} @include('includes.cropper',['input_field'=>'image_input','output_field'=>'image_output','preview_field'=>'image_preview' ,'image_type'=>'profile']) {{-- CROPPER END --}}

{{ __('lang.the_image_size_should_be_less_than_1_mb') }}
{{ __('lang.and_its_extension_must_be_jpg_png_or_jpeg') }}


{{-- --}} @if(!empty($customer->profile)) @endif

{{ __('lang.back') }}
@if ($action == 'edit')

@include('includes.misc.bootable-values', [ 'data' => $customer, ])
@endif
@stop @push('include-css') @endpush @push('include-js') @endpush