@extends('admin.template.master') @section('title')

B2B App Home page section update

@endsection @section('stylesheets') @endsection @section('main-content')

Update

@if(Session::has('message'))
{{Session('message')}}
@endif {!! Form::open(['url' => '/admin/b2b-app-home-page-sections/edit/'. $section->id ]) !!}
{!! Form::label('title','B2B Section Title' ) !!} {!! Form::text('title', $section->title, ['class' => 'form-control', 'placeholder' => 'B2B Section Title', 'id' => 'title']) !!} @if ($errors->has('title')) {!! $errors->first('title') !!} @endif
{!! Form::label('sub_title','B2B Section Sub Title' ) !!} {!! Form::text('sub_title', $section->sub_title, ['class' => 'form-control', 'placeholder' => 'B2B Section Sub Title', 'id' => 'sub_title']) !!} @if ($errors->has('sub_title')) {!! $errors->first('sub_title') !!} @endif
{!! Form::label('Status') !!} {!! Form::select('is_active', ['active' => 'active', 'inactive' => 'inactive'], $section->is_active, ['class' => 'form-control']) !!}
@if(count($products) > 0) @foreach($products as $p) @endforeach @else @endif
{!! Form::text('product_id[]', $p->product_id, ['class' => 'form-control', 'required' => 'required', 'placeholder' => 'Product ID', 'id' => 'product_id']) !!} {!! Form::text('discount_price[]', $p->discount_price, ['class' => 'form-control', 'placeholder' => 'Discount Price', 'id' => 'discount_price']) !!} {!! Form::text('ordering[]', $p->ordering, ['class' => 'form-control txt', 'required' => 'required', 'placeholder' => 'Ordering', 'id' => 'ordering']) !!}
{!! Form::text('product_id[]', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => 'Product ID', 'id' => 'product_id']) !!} {!! Form::text('discount_price[]', null, ['class' => 'form-control', 'placeholder' => 'Discount Price', 'id' => 'discount_price']) !!} {!! Form::text('ordering[]', 1, ['class' => 'form-control txt', 'required' => 'required', 'placeholder' => 'Ordering', 'id' => 'ordering']) !!}
{!! Form::close() !!}
@endsection @section('javascripts') @endsection