feat: integrate dynamic geofence fetching, service area spatial boundaries, partner store profiles & editing with Leaflet maps, custom store portal icons, QR distribution charts with geographic/LGU filters, and optimize admin dashboards

This commit is contained in:
Super Admin
2026-07-04 18:30:46 +08:00
parent 8d82674e8f
commit a2cf8c2c75
44 changed files with 3854 additions and 99 deletions

View File

@@ -9,6 +9,8 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Str;
use MatanYadaev\EloquentSpatial\Objects\Polygon;
class ServiceArea extends Model
{
use HasFactory, HasTenant, SoftDeletes;
@@ -24,8 +26,16 @@ class ServiceArea extends Model
'code',
'status',
'description',
'boundary',
];
protected function casts(): array
{
return [
'boundary' => Polygon::class,
];
}
public function getRouteKeyName(): string
{
return 'uuid';