@extends('layouts.admin') @section('heading', $shop->exists ? 'Edit shop' : 'Add shop') @section('subheading', $shop->exists ? 'Update shop details.' : 'Register a new shop in the system.') @section('content')
@csrf @if($shop->exists) @method('PUT') @endif @if(!$shop->exists)

Shop Owner login (used to sign in to the admin panel)

@endif @if ($errors->any())
{{ $errors->first() }}
@endif
@if($shop->logo) @endif
is_active) ? 'checked' : '' }} style="accent-color:#C2185B;">
Cancel
@if($shop->exists) @php $owner = $shop->users->where('type_id', 2)->first(); @endphp

Reset owner login

@if(!$owner)

No owner account found for this shop.

@else
@csrf @method('PUT')
@endif
@endif @endsection