@extends('layouts.app') @section('title','Offer Details') @push('styles') {{-- Same fonts & blob animations as other pages --}} @endpush @section('content') @php $user = auth()->user(); @endphp
{{-- animated blobs --}}
{{-- top nav --}}
Other offers Offer Details
{{-- main card --}}
{{-- flash --}} @if(session('success'))
{{ session('success') }}
@endif {{-- offer card info --}}
@if($offer->operator?->logo) {{ $offer->operator?->name }} @else
{{ Str::limit($offer->operator?->name, 2, '') }}
@endif
{{ $offer->operator?->name ?? 'Operator' }}
{{ $offer->status === 'active' ? 'Active' : 'Inactive' }}

{{ $offer->title }}

৳{{ number_format($offer->sale_price ?: $offer->regular_price, 2) }}
@if($offer->sale_price > 0)
৳{{ number_format($offer->regular_price,2) }}
@endif
@if($offer->validity_days) Validity: {{ $offer->validity_days }} days
@endif @if($offer->data_gb) Data: {{ $offer->data_gb }} GB
@endif @if($offer->minutes) Minutes: {{ $offer->minutes }} @endif
{{-- purchase form --}}
@csrf {{-- MSISDN --}}
@error('msisdn')
{{ $message }}
@enderror
{{-- Reference --}}
@error('reference')
{{ $message }}
@enderror
{{-- PIN (4 digits) --}}
@error('login_pin')
{{ $message }}
@enderror
{{-- generic error block --}} @if ($errors->any() && !$errors->has('msisdn') && !$errors->has('reference') && !$errors->has('login_pin'))
Please check the form and try again.
@endif {{-- button --}}
Your current balance: ৳{{ number_format($user->balance ?? 0, 2) }}
@endsection