@php $template = auth()->user()->hasRole('buyer') ? 'dashboards.user.index' : 'dashboards.vendor.index'; @endphp @extends($template) @section('content')