@extends('admin.template.master') @section('stylesheets') {!! Html::style('assets/admin/bower_components/select2/dist/css/select2.min.css') !!} @endsection @section('title')

Branch Address

@endsection @section('main-content')
@if(Session::has('error-message'))
{{Session('error-message')}}
@endif

Edit

{!! Form::open(['method' => 'PUT', 'url' => '/admin/branch-addresses/' . $branchAddress->id]) !!}
{!! Form::label('Branch') !!} {!! Form::select('branch_id', $branches, $branchAddress->branch_id, ['class' => 'form-control', 'placeholder' => 'Select branch', 'id' => 'branch_id']) !!} @if ($errors->has('branch_id')) {!! $errors->first('branch_id') !!}@endif
{!! Form::label('Name') !!} {!! Form::text('name', $branchAddress->name, ['class' => 'form-control', 'placeholder' => 'Name','id' => 'name']) !!} @if ($errors->has('name')) {!! $errors->first('name') !!} @endif
{!! Form::label('Address') !!} {!! Form::textarea('address', $branchAddress->address, ['class' => 'form-control', 'placeholder' => 'Address']) !!} @if ($errors->has('address')) {!! $errors->first('address') !!}@endif
{!! Form::label('Delivery Cost') !!} {!! Form::number('delivery_cost', $branchAddress->delivery_cost, ['class' => 'form-control', 'placeholder' => 'Delivery cost', 'step' => 'any']) !!} @if ($errors->has('delivery_cost')) {!! $errors->first('delivery_cost') !!} @endif
{!! Form::label('Status') !!} {!! Form::select('is_exist', [1 => 'Active', 0 => 'Inactive'], $branchAddress->is_exist, ['class' => 'form-control', 'id' => 'is_exist']) !!}
{!! Form::close() !!}
@endsection @section('javascripts') {!! Html::script('assets/admin/bower_components/select2/dist/js/select2.full.min.js') !!} @endsection