@extends('layouts.ownerLayout') @section('title', 'Reglas de cotizador') @section('content')

Reglas de transporte para cotizador

Define reglas por ciudad/zona y modo fijo o por kilómetro.

Ir al cotizador
@if (!$canManageRules)
Tu usuario no tiene organización asignada.
@endif @if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
@endif
Nueva regla
@csrf
Reglas actuales
@forelse($items as $item) @empty @endforelse
Nombre Ciudad Zona Modo Config Estado Orden Acciones
{{ $item->name }} {{ $item->city }} {{ $item->zone_keywords ?: '-' }} {{ $item->pricing_mode === 'km' ? 'Por km' : 'Fijo' }} Base/Fijo: ${{ number_format($item->fixed_amount, 0, ',', '.') }}
Km base: {{ rtrim(rtrim(number_format($item->base_km, 2, '.', ''), '0'), '.') }}
xKm: ${{ number_format($item->per_km_amount, 0, ',', '.') }}
Mínimo: ${{ number_format($item->min_amount, 0, ',', '.') }}
{{ $item->is_active ? 'Activo' : 'Inactivo' }} {{ $item->sort_order }}
@csrf @method('DELETE')
@csrf @method('PUT')
Aún no hay reglas.
@endsection