@extends('layouts.panel') @section('title', 'Tarifas') @section('content')
@forelse ($tariffs as $tariff) @empty @endforelse
Cliente Línea Precio/kg Vigencia Estado Acciones
{{ $tariff->client ? ($tariff->client->business_name ?: $tariff->client->contact_name) : 'General' }} {{ $tariff->serviceLineLabel() }} ${{ number_format($tariff->price_per_kg, 0, ',', '.') }} {{ $tariff->valid_from->format('d-m-Y') }} — {{ $tariff->valid_to?->format('d-m-Y') ?? 'indefinido' }} @if ($tariff->isCurrentlyValid()) Vigente @else No vigente @endif
@csrf @method('DELETE')
No hay tarifas registradas aún.
{{ $tariffs->links() }}
@endsection