@extends('layouts.app') @section('title', 'B2B Portal — Shipping Rule') @section('content') {{ $rule->exists ? 'Edit shipping rule' : 'New shipping rule' }} @if($errors->any()) @foreach($errors->all() as $e){{ $e }}@endforeach @endif @csrf @if($rule->exists) @method('PUT') @endif Name Type @foreach(['flat','per_kg','per_state','per_pincode'] as $t) type) === $t)>{{ $t }} @endforeach Priority Location All locations @foreach($locations as $loc) applies_to_location_id) == $loc->id)>{{ $loc->name }} @endforeach Active is_active))>Yes is_active))>No State (per_state) Pincode pattern (per_pincode) Flat amount Per-kg rate Min charge Free above amount Free above kg @endsection