UI
ERP System
Home
Dashboard
Shops
@if (isset($shop)) Edit Shop: {{ $shop->code }} @else Add New Shop @endif
Dashboard
/
Shops
/
{{ isset($shop) ? 'Edit' : 'Add New' }}
@if ($errors->any())
Please fix the following errors:
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf @if (isset($shop)) @method('PUT') @endif
Basic Information
Shop Code
Auto-generated
Assign Agent
@if (isset($selectedAgentId) && $selectedAgentId) {{-- When coming from agent dashboard, lock the agent --}} @php $selectedAgent = $agents->firstWhere('id', $selectedAgentId); @endphp
Agent assigned from dashboard
@else
Select Agent (Optional)
@foreach ($agents as $agent)
agent_id ?? '')) == $agent->id ? 'selected' : '' }}> {{ $agent->code }} - {{ $agent->name }}
@endforeach
@endif
Shop Name
*
Owner Name
Phone (Primary)
*
Primary contact number
Phone (Secondary)
Alternate contact number
Email
Shop Type
*
Select Type
shop_type ?? '')) == 'Retailer' ? 'selected' : '' }}> Retailer
shop_type ?? '')) == 'Distributor' ? 'selected' : '' }}> Distributor
shop_type ?? '')) == 'Wholesaler' ? 'selected' : '' }}> Wholesaler
shop_type ?? '')) == 'Supermarket' ? 'selected' : '' }}> Supermarket
shop_type ?? '')) == 'Other' ? 'selected' : '' }}>Other
Status
*
status ?? 'active')) == 'active' ? 'selected' : '' }}> Active
status ?? '')) == 'inactive' ? 'selected' : '' }}>Inactive
status ?? '')) == 'blocked' ? 'selected' : '' }}>Blocked
Location Details
Address
{{ old('address') ?? ($shop->address ?? '') }}
District
City
State
GPS Location
Latitude
Between -90 and 90 (15 decimal precision)
Longitude
Between -180 and 180 (15 decimal precision)
Get Current GPS Location
Shop Image
@if (isset($shop) && $shop->image)
Current Image
@endif
Preview
✕
Upload from Device
JPG, PNG, or WEBP (Max 5MB)
Or Capture Photo
Take Photo
Take Shop Photo
Capture
Cancel
Financial Details
Credit Limit (Rs.)
Default: Rs. 0.00
Cancel
{{ isset($shop) ? 'Update Shop' : 'Create Shop' }}