@extends('layouts.app') @section('title', 'B2B Portal — Location Routing Rule') @section('content') {{ $rule->exists ? 'Edit routing rule' : 'New routing rule' }} @if($errors->any()) @foreach($errors->all() as $e){{ $e }}@endforeach @endif @csrf @if($rule->exists) @method('PUT') @endif Name (optional) Match type @foreach(['pincode','state','category','fallback'] as $t) match_type) === $t)>{{ $t }} @endforeach Match value Fulfil from location — pick — @foreach($locations as $loc) location_id) == $loc->id)>{{ $loc->name }} @endforeach Priority Active is_active))>Yes is_active))>No @endsection