{!! Form::select("branch_list[]",$branches , null, ['class' => 'select2 form-control branch_list' , 'multiple', 'data-placeholder' => trans('dashboard.branch.branches')]) !!}
{!! Form::select("category_id",$categories, isset($product_offer) ? $product_offer->product->category_id : null, ['class' => 'select2 form-control' , 'onchange' => 'getProducts(this.value)', 'placeholder' => trans('dashboard.category.category')]) !!}
@isset($product_offer)
{!! Form::select("product_id",$products, null, ['class' => 'select2 form-control selected_product' , 'placeholder' => trans('dashboard.product.product')]) !!}
@endisset
{!! Form::radio('offer_type', "discount", isset($product_offer) && $product_offer->offer_type == 'discount' ? 'checked' : null) !!} {{ trans('dashboard.product_offer.offer_types.discount') }}
{!! Form::radio('offer_type', "product", isset($product_offer) && $product_offer->offer_type == 'product' ? 'checked' : null) !!} {{ trans('dashboard.product_offer.offer_types.product') }}
@if (isset($product_offer) && $product_offer->offer_type == 'discount')
{!! Form::text("offer_percentage", null, ['class' => 'form-control', 'placeholder' => trans('dashboard.product_offer.offer_discount')]) !!}
@endif
@if (isset($product_offer) && $product_offer->offer_type == 'product')
{!! Form::select("offer_products[]",$offer_products , null, ['class' => 'select2 form-control' , 'multiple', 'data-placeholder' => trans('dashboard.product_offer.offer_products')]) !!}
@endif
{!! Form::text('expire_date' , isset($product_offer) && $product_offer->expire_date ? $product_offer->expire_date->format("Y-m-d") : null , ['class' => 'form-control expire_date' , 'placeholder' => trans('dashboard.product_offer.expire_date')]) !!}
@if (isset($product_offer) && $product_offer->image) @else @endif
@include('dashboard.layout.delete_modal') @section('vendor_styles') @endsection @section('page_styles') @endsection @section('vendor_scripts') @endsection @section('page_scripts') @endsection