@extends('layouts.app') @section('page-title', 'Services') @push('styles') @endpush @section('content')
{{-- ======================================== PAGE HEADER ======================================== --}} {{-- ======================================== TABLE CARD ======================================== --}}
{{-- Desktop / Tablet Table --}}
@forelse($services as $service) @php $margin = $service->price > 0 ? round((($service->price - $service->cost_price) / $service->price) * 100, 1) : 0; @endphp @empty @endforelse
Code Name Description Cost Price Sale Price Actions
{{ $service->service_code }} {{ $service->name }} {{ $service->description ?? '—' }} ৳{{ number_format($service->cost_price, 2) }} ৳{{ number_format($service->price, 2) }} @if($margin > 0) {{ $margin }}% @endif
@csrf @method('DELETE')

No services found.

+ Add First Service
{{-- Mobile Card List (< 576px) --}}
@forelse($services as $service) @php $margin = $service->price > 0 ? round((($service->price - $service->cost_price) / $service->price) * 100, 1) : 0; @endphp
{{-- Top: name / desc | cost / price --}}
{{ $service->name }}
{{ $service->description ?? '—' }}
Cost ৳{{ number_format($service->cost_price, 2) }}
Price ৳{{ number_format($service->price, 2) }}
{{-- Bottom: code + margin | actions --}}
{{ $service->service_code }} @if($margin > 0) {{ $margin }}% margin @endif
Edit
@csrf @method('DELETE')
@empty

No services found.

+ Add First Service
@endforelse
@endsection