@extends('layouts.app') @section('title', __('delivery_information.schedule_delivery')) @section('content') {{--

@lang('product.add_new_product')

--}} @php if(!empty($contact->shipping_address)){ $address = $contact->shipping_address; }else{ if(!empty($contact->address_line_1) || !empty($contact->address_line_2)) { $address = $contact->address_line_2." ".$contact->address_line_2; } } if(!empty($address)){ if(!empty($contact->postal_code)){ $address = $address. " ". $contact->postal_code; }else{ $address = $address. " ". $contact->zip_code; } } $designer_name = null; $designer_contact_no = $partner->contact_no ?? null; if (!empty($partner->first_name) || !empty($partner->last_name)) { $designer_name = trim(($partner->first_name ?? '') . ' ' . ($partner->last_name ?? '')); } $firm_name = null; if (!empty($firmdel->first_name) || !empty($firmdel->last_name)) { $firm_name = trim(($firmdel->first_name ?? '') . ' ' . ($firmdel->last_name ?? '')); } @endphp
{!! Form::open(['url' => action([\App\Http\Controllers\DeliveryInformationController::class, 'storeBooking']), 'method' => 'post', 'id' => 'delivery_information_add_form','class' => 'delivery_information_add_form ', 'files' => true ]) !!}
{{--
{!! Form::label('packed_sell_line', __('lang_v1.packed_sell_line') . ':*') !!} {!! Form::select('packed_sell_line[]', $packerProductData, [], [ 'data-tags' => 'true','id' => 'packed_sell_line', 'class' => 'form-control select2', 'required', 'multiple']); !!}
--}}
{!! Form::label('driver_id', __('lang_v1.driver') . ':*') !!} {!! Form::select('driver_id', $drivers, null, [ 'data-tags' => 'true','id' => 'driver_id', 'class' => 'form-control select2', 'required','placeholder' => __('lang_v1.select_driver')]); !!}
{!! Form::label('name', __('lang_v1.name') . ':*') !!} {!! Form::text('name', !empty($contact->name) ? $contact->name : null, ['class' => 'form-control', 'required', 'id' => 'customer_name', 'placeholder' => __('lang_v1.name')]); !!}
{!! Form::label('invoice_no', __('lang_v1.invoice_no') . ':*') !!} {!! Form::text('invoice_no', !empty($transaction->invoice_no) ? $transaction->invoice_no : null, [ 'class' => 'form-control invoice-search', 'required', 'placeholder' => __('lang_v1.invoice_no') ]) !!}
{!! Form::label('contact_no', __('lang_v1.contact_no') . ':*') !!} {!! Form::text('contact_no', !empty($contact->mobile) ? $contact->mobile : null, ['class' => 'form-control', 'required', 'id' => 'customer_mobile', 'placeholder' => __('lang_v1.contact_no')]); !!}
{!! Form::label('email', __('lang_v1.email_address') . ':') !!} {!! Form::text('email', !empty($contact->email) ? $contact->email : null, ['class' => 'form-control', 'id' => 'customer_email', 'placeholder' => __('lang_v1.email_address')]); !!}
{!! Form::label('delivery_date', __('lang_v1.delivery_date') . ':*') !!}
{!! Form::text('delivery_date', null, ['class' => 'form-control', 'required', 'id' => 'delivery_date', 'placeholder' => __('lang_v1.delivery_date')]); !!}
{!! Form::label('delivery_time', __('lang_v1.delivery_time') . ':*') !!} {!! Form::select('delivery_time', [ 'no_preference' => 'No Preference', '10am-12pm' => '10:00 AM - 12:00 PM', '1pm-3pm' => '01:00 PM - 03:00 PM', '3pm-5pm' => '03:00 PM - 05:00 PM', ], null, [ 'class' => 'form-control select2', 'required', 'id' => 'delivery_time', 'placeholder' => __('lang_v1.select_delivery_time'), ]) !!}
@include('delivery_information.appointment_booking.partials.delivered_products')
{!! Form::label('address', __('lang_v1.address') . ':*') !!}
Format: [Block No./Unit No.][Street Name][#Floor-Unit No.][Postal Code] {!! Form::textarea('address', !empty($address) ? $address : null, ['class' => 'form-control', 'required', 'id' => 'customer_address', 'placeholder' => __('lang_v1.address')]); !!}
{{--
{!! Form::label('development_name', __('lang_v1.development_name') . ':') !!}
Example: Normanton Park (Property Development Name) {!! Form::text('development_name', null, ['class' => 'form-control', 'placeholder' => __('lang_v1.development_name')]); !!}
--}}
{!! Form::label('interior_designer_name', __('lang_v1.interior_designer_name') . ':') !!}
Example: Normanton Park (Property Development Name) {!! Form::text('interior_designer_name', $designer_name, ['class' => 'form-control', 'id' => 'interior_designer_name', 'placeholder' => __('lang_v1.interior_designer_name')]); !!}
{!! Form::label('interior_designer_contact_no', __('lang_v1.interior_designer_contact_no') . ':') !!}
Example: 9123 4567 {!! Form::text('interior_designer_contact_no', $designer_contact_no, ['class' => 'form-control', 'id' => 'interior_designer_contact_no', 'placeholder' => __('lang_v1.interior_designer_contact_no')]); !!}
{!! Form::label('interior_designer_firm_name', __('lang_v1.interior_designer_firm_name') . ':') !!}
Example: Rezt & Relax Interior Design {!! Form::text('interior_designer_firm_name', $firm_name, ['class' => 'form-control', 'id' => 'interior_designer_firm_name', 'placeholder' => __('lang_v1.interior_designer_firm_name')]); !!}
{!! Form::label('remarks', __('lang_v1.remarks') . ':') !!}
Any delivery instructions/information or access method. {!! Form::text('remarks', $transaction->remarks, ['class' => 'form-control', 'id' => 'remarks', 'placeholder' => __('lang_v1.remarks')]); !!}
{!! Form::label('outstanding_payment', __('lang_v1.outstanding_payment') . ':') !!}
Any outstanding payment to be collected during delivery {!! Form::text('outstanding_payment', $transaction->outstanding_payment, ['class' => 'form-control', 'required', 'id' => 'outstanding_payment', 'placeholder' => __('lang_v1.outstanding_payment')]); !!}
{!! Form::hidden('business_id', $transaction->business_id); !!} {!! Form::hidden('location_id', $transaction->location_id); !!} {!! Form::hidden('transaction_id', $transaction->id, ['id' => 'transaction_id']) !!} {!! Form::close() !!}
@endsection @section('javascript') @php $asset_v = env('APP_VERSION'); @endphp @endsection