@extends('admin.layouts.base') @section('title', 'Create Product') @section('content')
@php $method = 'PUT'; $url =[env('cms_base_url').'/Notification']; if(isset($id) && $id!=""){ $url =[env('cms_base_url').'/Notification/'.$id]; } @endphp
{{ Form::open(['url'=>$url, "id"=>"form1", 'files'=> true,'method' => $method]) }} Create Notification
{{ Form::field("text", "title",isset($values["title"])?$values["title"]:"",[],["layout"=>"v"]) }} {{ Form::field("textarea", "message",isset($values["message"])?$values["message"]:"",[],["layout"=>"v"]) }} {{ Form::field("radio", "type",isset($values["type"])?$values["type"]:"",$link_types,["layout"=>"v","inline"=>false]) }}
{{ Form::label("link_product", Ui::prettify(__('ui.'."link_product")), ['class' => "col-form-label"]) }} {{ Form::select('product_id', isset($values["product_id"])?$values["product_id"]:[], $products, array_merge(['class' => 'form-select'])) }}
{{ Form::field("text", "external_link",isset($values["external_link"])?$values["external_link"]:"",[],["layout"=>"v"]) }}
{{ Form::label("link_collection", Ui::prettify(__('ui.'."link_collection")), ['class' => "col-form-label"]) }} {{ Form::select('collection_id', isset($values["collection_id"])?$values["collection_id"]:[], $collections, array_merge(['class' => 'form-select'])) }}

Cancel Save & Send
{{ Form::close() }}
@endsection @push('script') {!! $validator->selector('#form1') !!} @endpush