@extends('layouts.app') @section('title','Shop') @section('content')

Order Online

@php $labels=['hosting'=>'Hosting Plans','domain'=>'Domain Registration','service'=>'Services','product'=>'Products']; @endphp @foreach($labels as $type=>$label) @if(isset($groups[$type]))

{{ $label }}

@foreach($groups[$type] as $p)

{{ $p->name }}

{{ $cur }}{{ number_format($p->price) }}/{{ $p->cycle }}

{{ $p->description }}

@auth
@csrf @if(in_array($type,['hosting','domain'])) @endif
@else Login to order @endauth
@endforeach
@endif @endforeach @endsection