@extends('admin.layouts.app') @php $mode = "Add"; $action = route('role.pg.add'); if(!empty($pg_id)){ $mode = "Edit"; $action = route('role.pg.edit',$pg_id); } @endphp @section('content')