@extends('admin::layouts.master') @section('page_title') {{ __('admin::app.quotes.create-title') }} @stop @section('content-wrapper') @php $quote = app('\Webkul\Quote\Repositories\QuoteRepository')->getModel(); if (isset($lead)) { $quote->fill([ 'person_id' => $lead->person_id, 'user_id' => $lead->user_id, 'billing_address' => $lead->person->organization ? $lead->person->organization->address : null ]); } @endphp
{!! view_render_event('admin.quotes.create.header.before') !!} {!! view_render_event('admin.quotes.create.header.after') !!}
{!! view_render_event('admin.quotes.create.form_buttons.before') !!} {{ __('admin::app.quotes.back') }} {!! view_render_event('admin.quotes.create.form_buttons.after') !!}
{!! view_render_event('admin.quotes.create.form_controls.before') !!} @csrf() {!! view_render_event('admin.quotes.create.form_controls.information.before') !!}
@include('admin::common.custom-attributes.edit', [ 'customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository') ->scopeQuery(function($query) { return $query ->where('entity_type', 'quotes') ->whereNotIn('code', [ 'billing_address', 'shipping_address', 'grand_total', 'sub_total', 'discount_amount', 'adjustment_amount', 'discount_percent', 'tax_amount' ]); })->get(), 'customValidations' => [ 'expired_at' => [ 'required', 'date_format:yyyy-MM-dd', 'after:' . \Carbon\Carbon::yesterday()->format('Y-m-d') ], ], 'entity' => $quote, ])
@include('admin::common.custom-attributes.edit.lookup') @php $lookUpEntityData = app('Webkul\Attribute\Repositories\AttributeRepository') ->getLookUpEntity('leads', request('id')); @endphp
{!! view_render_event('admin.quotes.create.form_controls.information.after') !!} {!! view_render_event('admin.quotes.create.form_controls.address.before') !!}
@include('admin::common.custom-attributes.edit', [ 'customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository') ->scopeQuery(function($query){ return $query ->where('entity_type', 'quotes') ->whereIn('code', [ 'billing_address', 'shipping_address', ]); })->get(), 'entity' => $quote, ])
{!! view_render_event('admin.quotes.create.form_controls.address.after') !!} {!! view_render_event('admin.quotes.create.form_controls.items.before') !!}
{!! view_render_event('admin.quotes.create.form_controls.items.after') !!} {!! view_render_event('admin.quotes.create.form_controls.after') !!}
@stop @push('scripts') @endpush