@extends('layouts.app') @php use Illuminate\Support\Facades\Auth; use Illuminate\Support\Str; @endphp @section('content')

Gas Types

Add New Gas Type
@if(session('success')) @endif
@if(Auth::user()->role === 'super_admin') @endif @forelse($gasTypes as $gasType) @if(Auth::user()->role === 'super_admin') @endif @empty @endforelse
Image Name Price Weight Stock StatusCompanyActions
@if($gasType->image_path) {{ $gasType->name }} @else
@endif
{{ $gasType->name }}
{{ Str::limit($gasType->description, 30) }}
{{ number_format($gasType->price, 2) }}
{{ $gasType->weight }} kg
@if($gasType->cylinder_size)
{{ $gasType->cylinder_size }}
@endif
{{ $gasType->stock_quantity }}
@if($gasType->is_available) Available @else Unavailable @endif
{{ $gasType->gasCompany->name }}
@csrf @method('DELETE')

No gas types found

Add your first gas type
{{ $gasTypes->links() }}
@endsection