@extends('admin.layouts.app') @section('title', 'Shipping Management') @section('content')

Shipping Management

Configure shipping charges and classes

@if(session('success'))
{{ session('success') }}
@endif

Shipping Charges

Global shipping rates by area

@forelse($shippingCharges as $charge)

{{ $charge->name }}

৳{{ number_format($charge->amount) }}

{{ $charge->status ? 'Active' : 'Inactive' }}
@csrf @method('DELETE')
@empty

No shipping charges configured

@endforelse

Shipping Classes

Product-specific shipping overrides

@forelse($shippingClasses as $class)

{{ $class->name }}

@if(($class->type ?? 'fixed') === 'percentage') {{ number_format($class->amount) }}% @else ৳{{ number_format($class->amount) }} @endif

{{ $class->products_count }} products • {{ ucfirst($class->type ?? 'fixed') }}

{{ $class->status ? 'Active' : 'Inactive' }}
@csrf @method('DELETE')
@empty

No shipping classes configured

@endforelse
@endsection @push('scripts') @endpush