@extends('admin.layouts.app') @section('title', 'Add order') @section('crumbs') Orders New @endsection @section('content') @php // validation fail hole ager row gula, na hole ekta faka row $rows = old('items', [['product_id' => '', 'qty' => 1]]); $area = old('area', 'inside'); @endphp
@csrf

Products

@if ($products->isEmpty())

Stock ache emon kono active product nei. Age product add koro.

@endif
@foreach ($rows as $i => $row)
৳0
@endforeach
@error('items')
{{ $message }}
@enderror @foreach ($errors->get('items.*') as $msgs)
{{ $msgs[0] }}
@endforeach

Customer

@include('admin.partials.field', ['name' => 'name', 'label' => 'Customer name', 'required' => true]) @include('admin.partials.field', ['name' => 'phone', 'label' => 'Phone', 'required' => true, 'placeholder' => '01XXXXXXXXX']) @include('admin.partials.field', ['name' => 'phone_alt', 'label' => 'Alternative phone', 'placeholder' => '01XXXXXXXXX'])
@include('partials.bd-location', ['cityId' => 'f_city', 'zoneId' => 'f_zone', 'city' => old('city'), 'part' => 'city', 'class' => $errors->has('city') ? 'is-invalid' : '']) @error('city')
{{ $message }}
@enderror
@include('partials.bd-location', ['cityId' => 'f_city', 'zoneId' => 'f_zone', 'zone' => old('zone'), 'part' => 'zone', 'class' => $errors->has('zone') ? 'is-invalid' : '']) @error('zone')
{{ $message }}
@enderror
@include('admin.partials.field', ['name' => 'address', 'label' => 'Full address', 'type' => 'textarea', 'required' => true, 'full' => true, 'rows' => 3]) @include('admin.partials.field', ['name' => 'note', 'label' => 'Note', 'type' => 'textarea', 'full' => true, 'rows' => 2, 'placeholder' => 'Size, color ba onno kichu'])

Payment

@include('admin.partials.field', ['name' => 'shipping', 'label' => 'Delivery charge (৳)', 'type' => 'number', 'value' => $shipping[$area], 'required' => true, 'attrs' => 'min="0" step="1"']) @include('admin.partials.field', ['name' => 'discount', 'label' => 'Discount (৳)', 'type' => 'number', 'value' => 0, 'attrs' => 'min="0" step="1"'])
Subtotal৳0
Delivery৳0
Discount−৳0
Total৳0
Cancel
@endsection @push('scripts') @endpush