@extends('user.layouts')
@section('title', 'Business Profile View')
@section('header')
@endsection
@section('content')
{{ $view_business->description }}
@php
$services = is_array($view_business->service)
? $view_business->service
: explode(',', trim(str_replace(['[', ']', '"'], '', $view_business->service)));
@endphp
@if (!empty($services))
@foreach ($services as $service)
- {{ trim($service) }}
@endforeach
@else
- No services available
@endif
{{--
@if(isset($view_business->gallery) && !empty($view_business->gallery))
@foreach ($view_business->gallery as $picture)
@endforeach
@else
No images available.
@endif
--}}
@if(is_array($view_business->gallery))
@foreach($view_business->gallery as $image)
@endforeach
@else
{{ basename($view_business->gallery) }}
@endif
@endsection
@section('footer')
@endsection