{{ csrf_field() }}
{!! trans('dashboard.bill.bill') !!}
@for ($i=0; $i < $categories_count; $i++) @endfor
# {{ trans('dashboard.product.name') }} {{ trans('dashboard.product.quantity_name') }} {{ trans('dashboard.product.price') }} {{ trans('dashboard.product.quantity') }}
{{ $i + 1 }} {!! Form::text("products[$i][product_name]", null, ['class' => 'form-control product_input' , 'placeholder' => trans('dashboard.product.name')]) !!} {!! Form::select("products[$i][quantity_name]", trans('dashboard.product.quantity_names'), null, ['class' => 'select2 form-control', 'placeholder' => trans('dashboard.product.quantity_name')]) !!} {!! Form::text("products[$i][product_price]", null, ['class' => 'form-control' , 'placeholder' => trans('dashboard.product.price')]) !!} {!! Form::number("products[$i][quantity]", null, ['class' => 'form-control' , 'placeholder' => trans('dashboard.product.quantity')]) !!}

{!! Form::text("release_date", now()->subDay()->format('Y-m-d'), ['class' => 'form-control flatpickr-basic', 'id' => 'fp-default', 'placeholder' => trans('dashboard.bill.release_date')]) !!}
{!! Form::select("customer_id", $customers, null, ['class' => 'select2 form-control', 'placeholder' => trans('dashboard.customer.customer')]) !!}
{!! Form::select("pay_type", trans('dashboard.bill.pay_types'), null, ['class' => 'select2 form-control', 'placeholder' => trans('dashboard.bill.pay_type') ]) !!}
{!! Form::text("amount_paid", null, ['class' => 'form-control' , 'placeholder' => trans('dashboard.bill.amount_paid')]) !!}
{!! Form::textarea("note", null, ['class' => 'form-control']) !!}